Skip to content

fix(backend): clear encoded_node when recovery-published node's objec…#715

Merged
EmilFattakhov merged 1 commit into
mainfrom
fix/clear-encoded-node-on-recovery-publish
May 27, 2026
Merged

fix(backend): clear encoded_node when recovery-published node's objec…#715
EmilFattakhov merged 1 commit into
mainfrom
fix/clear-encoded-node-on-recovery-publish

Conversation

@EmilFattakhov
Copy link
Copy Markdown
Member

…t is already archived

After onObjectArchived runs, removeNodeDataByRootCid only strips encoded_node for nodes already published (block_published_on IS NOT NULL). Nodes published later via recovery get block_published_on set but never lose encoded_node, causing indefinite local payload retention.

Fix updateNodePublishedOn to conditionally clear encoded_node when the node's metadata is already marked archived. This is safe because at that point the data is confirmed on-chain and the archival cleanup won't fire again.

…t is already archived

After onObjectArchived runs, removeNodeDataByRootCid only strips
encoded_node for nodes already published (block_published_on IS NOT NULL).
Nodes published later via recovery get block_published_on set but never
lose encoded_node, causing indefinite local payload retention.

Fix updateNodePublishedOn to conditionally clear encoded_node when
the node's metadata is already marked archived. This is safe because at
that point the data is confirmed on-chain and the archival cleanup won't
fire again.

Co-authored-by: Cursor <cursoragent@cursor.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 26, 2026

Deploy Preview for auto-drive-storage ready!

Name Link
🔨 Latest commit 931f7a9
🔍 Latest deploy log https://app.netlify.com/projects/auto-drive-storage/deploys/6a15d76b0c4c7500075e4bdb
😎 Deploy Preview https://deploy-preview-715--auto-drive-storage.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@EmilFattakhov
Copy link
Copy Markdown
Member Author

Need to merge this one prior to #714

Copy link
Copy Markdown
Member

@jim-counter jim-counter left a comment

Choose a reason for hiding this comment

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

LGTM

@EmilFattakhov EmilFattakhov merged commit 8ac26e3 into main May 27, 2026
8 checks passed
@EmilFattakhov EmilFattakhov deleted the fix/clear-encoded-node-on-recovery-publish branch May 27, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants