gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings

← Pull requests

#21move a repository into an organization in Settings (#53)

mergedw55-rename-org → mainby Gitoria · head 014d2b7f

  • successKunibert: kunibertKunibert review

Verdicts

  • Kunibertrequested changes on an earlier head 499f25f2

People’s approvals

Reviews

  1. Kunibertappcommented014d2b7f · current head · 2026-11-17 19:22:16 UTC

    The four open implementation and cleanup findings are fixed. The new replay test does not exercise the delayed-first-hello regression.

    Correctness (1 new, 0 still open)

    Per-move snapshots fix the audience overwrite, and observer cleanup now runs on failure. The replay regression test still exercises the wrong framework path.

    Spec (0 new, 0 still open)

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

    Standards (0 new, 0 still open)

    The new helper parameters are typed; no remaining standards findings.

    Gates: not run

  2. Kunibertappcommented1859d506 · earlier head · 2026-11-17 17:41:53 UTC

    The snapshot fixes immediate delivery, but replay can still apply another move's permissions. The new helper parameters and browser-test cleanup also need corrections.

    Correctness (1 new, 2 still open)

    T2 and T5 remain reachable during event replay because later moves overwrite earlier audience snapshots. The new observer tabs also lack cleanup on test failure.

    Still open from earlier rounds:

    • T2 lib/repos.hl:403 no rule: Remove moved repositories from open organization lists
    • T5 project.hl:170 no rule: Restrict removal events to the repository's previous readers

    Spec (0 new, 0 still open)

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

    Standards (1 new, 0 still open)

    Two parameters in the new helpers violate L10's typing requirement.

    Gates: not run

  3. Kunibertapprequested changes499f25f2 · earlier head · 2026-11-17 16:08:51 UTC

    Three earlier findings are fixed. The new removal event leaks private repository metadata and still misses one source-list cleanup case.

    Correctness (1 new, 1 still open)

    The removal audience admits unauthorized viewers of public organizations and excludes some previously authorized viewers of private organizations.

    Still open from earlier rounds:

    • T2 lib/repos.hl:403 no rule: Remove moved repositories from open organization lists

    Spec (0 new, 0 still open)

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

    Standards (0 new, 0 still open)

    The L10 and F18 violations are fixed; no new standards violations found.

    Gates: not run

  4. Kunibertappcommenteded3b922b · earlier head · 2026-11-17 15:15:34 UTC

    Two UI edge cases remain in organization moves. The changed code also violates two documented Hybriel standards.

    Correctness (2 new, 0 still open)

    The selector loses the current organization after changing away from it, and open source-organization lists retain moved repositories.

    Spec (0 new, 0 still open)

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

    Standards (2 new, 0 still open)

    The diff violates L10's typed-parameter requirement and F18's requirement for list records to carry IDs.

    Gates: not run

Threads

  1. components/settings.hl:121outdated · resolvedKunibert

    1. Kunibert2026-11-17 15:15:34 UTC

      🔹 Minor · Correctness: no rule: Keep the original organization available while editing

      Organization members can create repositories they own inside another user's organization. For such a repository, selecting None or an owned organization makes foreignOrg false and removes the original organization from the choices, so the user cannot undo that selection without reloading. Base this extra option and its visibility on repo.org rather than editable renameOrg.

    2. Kunibert2026-11-17 16:08:51 UTC

      Fixed: the extra option now uses repo.org and remains available when renameOrg changes.

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

    1. Kunibert2026-11-17 15:15:34 UTC

      🔹 Minor · Correctness: no rule: Remove moved repositories from open organization lists

      Moving a public repository from organization A to B emits repoChanged with the new organization. An observer's open A list ignores that event because components/orglist.hl only upserts rows whose organization matches, leaving the moved repository listed until reload. Update the move notification and list handler to remove the repository from its source organization.

    2. Kunibert2026-11-17 16:08:51 UTC

      Still fails for someone added only to a repository in a private organization: after their last visible repository leaves, orgFor returns null and filters out repoLeftOrg, leaving their open list stale. Determine removal eligibility from readership before the move.

    3. Kunibert2026-11-17 17:41:53 UTC

      Immediate delivery is fixed, but a delayed first WebSocket hello can still miss removal after two moves: the second move overwrites leaving[id] with readers excluding the first organization's members. hl:web rechecks that snapshot during replay, leaving their original row stale. Retain each move's audience separately.

    4. Kunibert2026-11-17 19:22:16 UTC

      Fixed: each removal retains its own readership snapshot, so later moves no longer overwrite its recipients.

  3. components/settings.hl:45outdated · resolvedKunibert

    1. Kunibert2026-11-17 15:15:34 UTC

      🔹 Minor · Standards: L10: Type the filter callback parameter

      .kunibert/HL-STANDARD.md L10 says "Type every function parameter." The new filter callback leaves o untyped; declare it as Hybrid o.

    2. Kunibert2026-11-17 16:08:51 UTC

      Fixed: the callback parameter is now Hybrid o.

  4. lib/orgs.hl:64outdated · resolvedKunibert

    1. Kunibert2026-11-17 15:15:34 UTC

      🔹 Minor · Standards: F18: Preserve IDs on organization choice records

      .kunibert/HL-STANDARD.md F18 requires View lists to iterate "over records with an id." These records feed the new options loop but contain only slug and label. Include id = o.id so the options have stable record keys.

    2. Kunibert2026-11-17 16:08:51 UTC

      Fixed: organization choice records now retain id and @id.

  5. project.hl:170outdated · resolvedKunibert

    1. Kunibert2026-11-17 16:08:51 UTC

      🔶 Major · Correctness: no rule: Restrict removal events to the repository's previous readers

      Private repositories can exist inside public organizations. Because orgFor admits anonymous viewers of a public organization, moving a private repository out broadcasts its stable ID and former organization to anonymous observers, revealing a repository they could never see. Authorize recipients against the repository's readership before the move, and cover an anonymous observer in the regression test.

    2. Kunibert2026-11-17 17:41:53 UTC

      The live-send case is fixed, but replay still leaks metadata: move from private organization A to public B, make the repository public, then move again. The latest snapshot is open, so replaySinceRender can send A's earlier removal to an anonymous tab whose first hello was delayed. Keep an immutable snapshot per move, identified in the event, throughout the replay window.

    3. Kunibert2026-11-17 19:22:17 UTC

      Fixed: the event's unique moveId selects that move's immutable permissions during replay.

  6. tests/repo-rename.mjs:441outdated · resolvedKunibert

    1. Kunibert2026-11-17 17:41:53 UTC

      🔹 Minor · Correctness: no rule: Close observer tabs when the browser test fails

      With HL_CDP_URL, a timeout before line 459 skips both observer close calls. The outer finally disconnects the shared browser and only cleans up pg, leaving anon and bobPage open. Close these pages in finally, or use Browser.close(), which already closes all targets this driver created.

    2. Kunibert2026-11-17 19:22:17 UTC

      Fixed: both observer pages are now closed in finally.

  7. lib/repos.hl:57outdated · resolvedKunibert

    1. Kunibert2026-11-17 17:41:53 UTC

      🔹 Minor · Standards: L10: Type parameters on both new audience helpers

      .kunibert/HL-STANDARD.md L10 says "Type every function parameter." readersBefore(r) and hearsRepoLeft(String id, userId) add untyped parameters; declare Hybrid r and String userId.

    2. Kunibert2026-11-17 19:22:17 UTC

      Fixed: both helper parameters now have explicit types.

  8. tests/repo-rename.mjs:461Kunibert

    1. Kunibert2026-11-17 19:22:16 UTC

      🔹 Minor · Correctness: no rule: Exercise first-hello replay in the regression test

      The observer remains connected throughout the moves and disconnects only here. Reconnection sends again=true and replays the existing tab log without rechecking audiences, so this test also passes with the previous overwritten-snapshot bug. Delay the observer's first hello until after the moves to exercise replaySinceRender and verify that the earlier private removal is withheld.

Conversation

Nobody has written here yet.

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