Skip to content

Source wizard can retain an occupied priority rank during async file loading #1007

Not planned

Description

@athvin

Observed during the local make frontend run on 43c919c (only Dockerfiles changed from 3d456d8): mobile-safari tests/functional/grow.spec.ts:339 timed out clicking wizard-next in walkToReview. The page snapshot shows priority rank 1, existing crm=1, and the collision message; the Next button correctly stays disabled. 568 other functional tests passed, 139 were skipped. The preceding run on the TLS branch passed all 569.

Suspected race in frontend/src/components/sources/new-source-wizard.tsx: onFile captures nextFreeRank, awaits file.text(), then writes that captured rank. If the sources request resolves during the await, the effect may already have corrected the rank, after which the stale onFile value overwrites it without another nextFreeRank dependency change. This explanation is an inference from the code; reproduce it with controlled async ordering before fixing.

Acceptance: a component regression controlling both async operations, keep a user's explicit rank choice intact, and pass the full functional suite. Do not increase the click timeout or weaken the rank collision guard.

Local evidence on this machine: /tmp/er-553-ca-frontend.log and frontend/test-results/grow-new-source-wizard-act-2ee8c-sample-and-lands-on-the-run-mobile-safari/error-context.md in the pg-verify-full worktree. A complete functional rerun passed all 569 tests (139 skipped); the first failure remains evidence of a timing-dependent problem. Tracked separately from #1005's container-permission repair.

Activity

  1. added
    mvp
    on Nov 9, 2026
  2. added
    pruned
    on Nov 27, 2026
  3. athvin commented on Nov 27, 2026

    @athvin
    OwnerAuthor

    Closed in the second 2026-11-26 board prune. The board now targets only the API that customers use to build their own deduplication tooling. Everything else is bonus, and this card is one of those. It's labelled pruned and can be reopened later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    mvppruned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions