Skip to content

馃悰(dev-instance) store the sample content only once - #5

Merged
YousefED merged 1 commit into
devfrom
fix/seed-store-once
Oct 9, 2026
Merged

YousefED merged 1 commit into
devfrom
fix/seed-store-once

Conversation

@YousefED

@YousefED YousefED commented Oct 9, 2026

Copy link
Copy Markdown

Purpose

Every deploy must keep the sample document as it is. The deploy must not store its content again.

Problem

The import tested for an empty document with lastClock === '0'. But yhub returns '0' also after the clock-0 row that the import writes itself. So each deploy after the first one stored the content of the sample document again, in one more row. The log of the deploy of #4 shows import: stored the history for a document that already had its content.

Changes

  • The import reads the stored updates of the document. It stores the content only when there is no stored update.

How to test

  1. Merge this PR into dev.
  2. Make sure that the "Dev instance" workflow is successful, and that its log shows import: yhub already holds the content and import: named 0 new versions of 15.

The import tested for an empty document with the last clock of yhub,
but the last clock stays 0 after the row the import writes itself. So
every deploy stored the content of the sample document again. The
import now looks for stored updates instead.

Signed-off-by: yousefed <yousefdardiry@gmail.com>
@YousefED
YousefED merged commit 703f45d into dev Oct 9, 2026
1 check passed
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.

1 participant