Skip to content

K2GO-592 fix(forgejo): refresh the example repos after the seed so each repo shows its status - #820

Merged
luisguzman-adfa merged 1 commit into
mainfrom
fix/K2GO-592-forgejo-seed-repo-description
Nov 22, 2026
Merged

luisguzman-adfa merged 1 commit into
mainfrom
fix/K2GO-592-forgejo-seed-repo-description

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

What changes

  • tools/forgejo-seed.sh runs refresh_forgejo (the same refresh as "Update repos") right after seed_forgejo ends with success. Best-effort: a refresh problem does not fail the seed.

Why

Only the repo refresh writes the status description of a seeded repo (Last Update, Last Attempt, Status). After a new Forgejo install the descriptions stayed empty until the first "Update repos". Every install path (first install, Settings > Module management, the module action sheet, "Install repos") goes through this script, so all of them now get the descriptions. No new function and no new state: the description keeps its one writer (_fj_write_desc, called by the refresh).

Steps to QA

Baseline (main):

  1. Install Forgejo with the example repos and wait for the seed to end.
  2. GET /forgejo/api/v1/repos/search?q=knowledgetogo shows an empty description.

Change (this branch, box script on the box):

  1. Do the same steps.
  2. Each of the repos KnowledgeToGo, CodeOnTheGo and addons has the description with Last Update, Last Attempt and Status: updatable. The seed log also shows the refresh lines.

Verifications

  • Evidence (Samsung A16, Forgejo 17.0.2) is in the Jira ticket K2GO-592: empty descriptions after the seed alone, filled descriptions after the chained seed (seed plus refresh in 31 s).
  • Two-pass code review done.
  • Coordination: the app fix of the same ticket is a separate PR (no shared files).

Notes

  • tools/* is not dash-node, so there is no version bump. A box that is already deployed gets this script with the next dash-node update.
  • The seed takes about 30 s more (one git fetch --depth 20 per repo, right after the clone).

…ch repo shows its status

Only the repo refresh writes the status description of a seeded repo, so after a new
install the descriptions stayed empty until the first "Update repos". The seed now runs
the same refresh right after it ends (best-effort).
@luisguzman-adfa
luisguzman-adfa merged commit 354e2d4 into main Nov 22, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the fix/K2GO-592-forgejo-seed-repo-description branch November 22, 2026 06:05
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