Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ceramic publish history #245

Merged
merged 12 commits into from
Mar 21, 2024
Merged

Ceramic publish history #245

merged 12 commits into from
Mar 21, 2024

Conversation

m0ar
Copy link
Contributor

@m0ar m0ar commented Mar 19, 2024

This PR mainly adds tracking of ceramic commitID's in NodeVersion, but due to some recent changes in the backend also patches a bunch of regressions.

Notable changes:

  • Bumped docker base image to same node version as nvmrc (+cascading fixes)
  • Add public IPFS node to compose cluster (can be used for testing publish)
  • We no longer depend on GRPC which speeds up builds quite a bit! 🐎
  • Upgrades to several IPFS related packages
  • TOGGLE_CERAMIC env no longer necessary due to (hopefully) idempotent stream tracking

@m0ar m0ar added the enhancement New feature or request label Mar 19, 2024
@m0ar m0ar requested review from hubsmoke and kadamidev March 19, 2024 16:40
@m0ar m0ar self-assigned this Mar 19, 2024
@m0ar
Copy link
Contributor Author

m0ar commented Mar 19, 2024

(this may not build until this is merged and final codex package versions get published: desci-labs/desci-codex#42)

Copy link
Contributor

@kadamidev kadamidev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice package bumps and type fixes across the board 👍

"@opentelemetry/auto-instrumentations-node": "^0.37",
"@penseapp/discord-notification": "^2.0.9",
"@prisma/client": "4.2.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the downgrade here? though bullish on the other version bumps

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's an upgrade to 4.10.1, see line below :)

never,
PublishReqBody
> & {
user: User; // added by auth middleware
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool we should do this more frequently in other areas and make a generic type for this as its common across many reqs
Generally 2 variants, req.user, and req.user + req.node

@@ -5,7 +5,7 @@ import { base32 } from "multiformats/bases/base32";
import { CID } from "multiformats/cid";

export const convertUUIDToHex = (uuid: string) => {
const decoded = decode(uuid + ".");
const decoded = decode(uuid);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this decode fine if the uuid does include a period at the end?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it'll keep any ./= padding, but we slice the first 32 bytes on the next line regardless so they don't get put in the contracts

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dots simply mean "data has ended but here are some more chars to make a full byte", so they'll decode to = which is base64 padding

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reminded me to downgrade url-safe-base64 in nodes-lib btw, thanks

@m0ar m0ar force-pushed the m0ar/ceramic-publish-history branch 2 times, most recently from 587938e to cd1b89a Compare March 21, 2024 09:19
@m0ar m0ar force-pushed the m0ar/ceramic-publish-history branch from 51131f4 to 0e1a818 Compare March 21, 2024 12:17
@m0ar m0ar merged commit 42ec6ef into develop Mar 21, 2024
2 of 3 checks passed
@m0ar m0ar deleted the m0ar/ceramic-publish-history branch April 9, 2024 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants