gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings

← Pull requests

#20separate names and addresses, rename repositories in Settings (#53)

mergedw54-repo-rename-pr → mainby Gitoria · head 9f7ce8d8

  • successKunibert: kunibertKunibert review

Verdicts

  • Kunibertapproved

People’s approvals

Reviews

  1. Kunibertappapproved9f7ce8d8 · current head · 2026-11-15 23:35:58 UTC

    Most previous findings are addressed, with no new findings in the delta. The push race, receiver deployment order, and merge-rule helper placement remain open.

    Correctness (0 new, 2 still open)

    The changes address notification deduplication, status-query scaling, and stale page titles. Safe coordination with in-flight pushes and the receiver deployment order remain blocking.

    Still open from earlier rounds:

    • T1 lib/events-helpers.hl:44 no rule: renamed webhook URLs break the existing review receiver
    • T3 lib/repos.hl:339 no rule: detect active pushes in the separate SSH container

    Spec (0 new, 0 still open)

    No ticket or issue is linked, so there are no spec findings.

    Standards (0 new, 1 still open)

    The typing, list mutation, and organization helper findings are fixed. The L16 finding about merge-rule wording remains open.

    Still open from earlier rounds:

    • T13 lib/statuses.hl:146 L16: Move merge-rule wording into the status helpers

    Gates: not run

  2. Kunibertapprequested changesc3d95b6e · earlier head · 2026-11-15 22:37:13 UTC

    Renaming can break automated reviews, replay ticket updates, and interrupt SSH pushes. Status lookup scaling, Back navigation, and documented Hybriel standards also need attention.

    Correctness (5 new, 0 still open)

    Found problems with webhook compatibility, ticket notification deduplication, SSH push detection, status-table scans, and stale window titles.

    Spec (0 new, 0 still open)

    No ticket or issue is linked, so there are no spec findings.

    Standards (8 new, 0 still open)

    Changed lines violate L10 parameter typing, L16 helper placement, and F18 list mutation rules.

    Gates: not run

Threads

  1. lib/events-helpers.hl:44outdatedKunibert

    1. Kunibert2026-11-15 22:37:13 UTC

      🔶 Major · Correctness: no rule: renamed webhook URLs break the existing review receiver

      After a rename, events carry new repo.api and repo.clone URLs. The existing receiver in kunibert/lib/intake.hl:100–101 compares both against its configured URLs and returns 403 repo_mismatch, stopping automated reviews despite the old URLs forwarding correctly. Coordinate a compatible receiver/config change before enabling rename and document the deploy order, or preserve the configured URLs for connected apps.

    2. Kunibert2026-11-15 23:35:58 UTC

      Kunibert's companion fix 6ee0d2e is merged, but this PR still needs an explicit requirement to deploy that receiver first. The README recommendation alone does not protect deployments using the old URL comparisons.

  2. lib/repos.hl:359outdated · resolvedKunibert

    1. Kunibert2026-11-15 22:37:13 UTC

      🔶 Major · Correctness: no rule: preserve ticket notification deduplication when renaming

      This moves memberships and forwards but leaves ticketlinks.db keys under the old slug. lib/tickets.hl:139 and :152 use that slug to deduplicate notifications, so the next push repeats historical comments and reapplies 'review' to tickets fixed by previously merged PRs, potentially reopening completed tickets. Migrate these keys during rename or use the immutable repository ID with backward compatibility.

    2. Kunibert2026-11-15 23:35:58 UTC

      Fixed: moveTicketLinks migrates the notification deduplication keys, including during rename-back.

  3. lib/repos.hl:339outdatedKunibert

    1. Kunibert2026-11-15 22:37:13 UTC

      🔶 Major · Correctness: no rule: detect active pushes in the separate SSH container

      docker-compose.yml runs gitoria-sshd in a separate PID namespace, so this ps cannot see its receive-pack processes. An SSH receive-pack waiting for input has no quarantine directory or Git lock yet; rename can therefore move its repository while that push still uses the old object-directory path. Use a shared filesystem lock held by both push transports and rename.

    2. Kunibert2026-11-15 23:35:58 UTC

      Still open: lib/repos.hl:358–360 leaves the old path absent between mv and ln, so an active SSH receive-pack can still access a missing object directory. The new test leaves receive-pack idle without completing a push. Use a shared push/rename lock or an atomic path switch.

  4. lib/statuses.hl:136outdated · resolvedKunibert

    1. Kunibert2026-11-15 22:37:13 UTC

      🔶 Major · Correctness: no rule: bound the context suggestion query

      Opening Settings with a connected app, or selecting an app, materializes every status from every repository, including summaries up to 65,536 characters. Status history grows per commit/app/context without retention, making this small suggestion consume unbounded global memory and processing time. Query an index scoped to repository and app, project only needed fields, and stream results or maintain the latest context separately.

    2. Kunibert2026-11-15 23:35:59 UTC

      Fixed: the appId index and projected cursor replace global materialization; the database engine rebuilds the index for existing rows.

  5. components/settings.hl:732outdated · resolvedKunibert

    1. Kunibert2026-11-15 22:37:13 UTC

      🔹 Minor · Correctness: F5: Back restores a stale repository window title

      Visit Code, navigate to Settings, save a new Name, then press Back. This updates only Settings' __title; the kept Code component restores its previous title because repoChanged updates the parent row without updating page titles. Reload shows the new name instead. Update the title-owning pages, including kept pages, when repoChanged arrives.

    2. Kunibert2026-11-15 23:35:59 UTC

      Fixed: the pages now handle repoChanged and update their own window titles, including while kept for Back navigation.

  6. components/list.hl:70outdated · resolvedKunibert

    1. Kunibert2026-11-15 22:37:13 UTC

      🔹 Minor · Standards: L10: Type the changed creation callbacks and parameters

      .kunibert/HL-STANDARD.md L10 says 'Type every function parameter.' The changed input callbacks at lines 70 and 99 leave e untyped; gitoriaCreateRepo, gitoriaCreateOrg and makeRepo at lines 173, 177 and 185 also retain untyped parameters. Add Hybrid event/session types, String text types and Boolean visibility types.

    2. Kunibert2026-11-15 23:35:59 UTC

      Fixed: the changed creation handlers and callbacks now have typed parameters.

  7. components/settings.hl:233outdated · resolvedKunibert

    1. Kunibert2026-11-15 22:37:13 UTC

      🔹 Minor · Standards: L10: Type the changed callback and new session parameters

      .kunibert/HL-STANDARD.md L10 says 'Type every function parameter.' The changed select handler leaves e untyped, and the new gitoriaAppContext, gitoriaRenameRepo and gitoriaSetRepoTitle faces leave session untyped. Annotate these parameters as Hybrid.

    2. Kunibert2026-11-15 23:36:00 UTC

      Fixed: the select event and new server-face session parameters are typed.

  8. components/orglist.hl:223outdated · resolvedKunibert

    1. Kunibert2026-11-15 22:37:13 UTC

      🔹 Minor · Standards: L10: Type the organization-name face's session

      .kunibert/HL-STANDARD.md L10 says 'Type every function parameter.' The new gitoriaSetOrgTitle face leaves session untyped; declare Hybrid session.

    2. Kunibert2026-11-15 23:36:00 UTC

      Fixed: gitoriaSetOrgTitle now declares Hybrid session.

  9. lib/orgs.hl:17outdated · resolvedKunibert

    1. Kunibert2026-11-15 22:37:13 UTC

      🔹 Minor · Standards: L10: Type every parameter in the modified organization writer

      .kunibert/HL-STANDARD.md L10 says 'Type every function parameter.' The modified putOrg declaration types only title. Add String types for slug and owner, and Boolean for priv.

    2. Kunibert2026-11-15 23:36:00 UTC

      Fixed: putOrg now types every parameter.

  10. lib/repos.hl:113outdated · resolvedKunibert

    1. Kunibert2026-11-15 22:37:13 UTC

      🔹 Minor · Standards: L10: Type the modified repository function parameters

      .kunibert/HL-STANDARD.md L10 says 'Type every function parameter.' The changed nameTaken, createOrg and createRepoIn declarations at lines 113, 116 and 139 retain untyped parameters. Type their text, Boolean and Hybrid member-list parameters.

    2. Kunibert2026-11-15 23:36:00 UTC

      Fixed: nameTaken, createOrg and createRepoIn now type their parameters.

  11. components/list.hl:148outdated · resolvedKunibert

    1. Kunibert2026-11-15 22:37:13 UTC

      🔹 Minor · Standards: F18: Update organization rows through the list API

      .kunibert/HL-STANDARD.md F18 requires lists to be 'changed by push, upsert(record) and one-argument remove(id).' This changed line rebuilds orgs with concat. Insert or update the returned organization through the framework list API.

    2. Kunibert2026-11-15 23:36:00 UTC

      Fixed: creation updates keyed records with upsert, then preserves display order with newestFirst.

  12. lib/repos.hl:390outdated · resolvedKunibert

    1. Kunibert2026-11-15 22:37:13 UTC

      🔹 Minor · Standards: L16: Move organization row formatting into a helper

      .kunibert/HL-STANDARD.md L16 says to 'move formatting/parsing/noise and shared helpers to lib/util.hl or lib/<topic>-helpers.hl.' orgRowOf formats presentation rows without table access; move it beside rowOf in lib/repos-helpers.hl.

    2. Kunibert2026-11-15 23:36:01 UTC

      Fixed: orgRowOf now lives in lib/repos-helpers.hl.

  13. lib/statuses.hl:146outdatedKunibert

    1. Kunibert2026-11-15 22:37:13 UTC

      🔹 Minor · Standards: L16: Move merge-rule wording into the status helpers

      .kunibert/HL-STANDARD.md L16 says to 'move formatting/parsing/noise and shared helpers to lib/util.hl or lib/<topic>-helpers.hl.' requiredRule only formats Settings text; move it into lib/statuses-helpers.hl alongside the existing status wording helpers.

    2. Kunibert2026-11-15 23:36:01 UTC

      Still open: requiredRule remains in lib/statuses.hl:144. Move this presentation-only wording to lib/statuses-helpers.hl as L16 requires.

Conversation

Nobody has written here yet.

Only the owner and the members of this repository can comment here.