Skip to content

馃悰(dev-instance) name the sample versions on every deploy - #4

Merged
YousefED merged 1 commit into
devfrom
fix/seed-named-versions
Oct 9, 2026
Merged

YousefED merged 1 commit into
devfrom
fix/seed-named-versions

Conversation

@YousefED

@YousefED YousefED commented Oct 9, 2026

Copy link
Copy Markdown

Purpose

The sample document of the dev instance must have its 15 named versions after every deploy.

Problem

The deploy of #1 used the yhub image of the upstream base. That image stored the content of the sample document, but it could not name the versions. The seed then stopped. The next deploys found a document with content and skipped it, so the named versions stayed missing.

Changes

  • The seed always runs the import, also when the document exists.
  • The import stores the content only when yhub has no content for the document.
  • The import adds only the named versions that are missing. The names are keyed on their time, so an existing name does not change.

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: named 15 new versions of 15 on the first deploy.
  3. Deploy again. Make sure that the log shows import: named 0 new versions of 15.

A deploy that stored the content of the sample document but stopped
before naming its versions left a document that the next deploys
skipped. The seed now always runs the import: the import stores the
content only when yhub has none, and adds the names that are missing.

Signed-off-by: yousefed <yousefdardiry@gmail.com>
@YousefED
YousefED merged commit d87d87e into dev Oct 9, 2026
17 of 18 checks 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