Skip to content

Hide assigned routes until Dispatch publication - #418

Merged
OziinG merged 1 commit into
mainfrom
cc-289-dispatch-publication-gate
Sep 10, 2026
Merged

Hide assigned routes until Dispatch publication#418
OziinG merged 1 commit into
mainfrom
cc-289-dispatch-publication-gate

Conversation

@OziinG

@OziinG OziinG commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Closes #416

Change control: EVNSolution/clever-change-control#289
App dependency: EVNSolution/clever-routes-app#278

Outcome

  • Driver account route list, exact lookup, shared-scope lookup, and cached route-token access now hide READY routes whose current grouping child has no publishedAt timestamp.
  • Existing IN_PROGRESS routes remain visible and recoverable even when historical publication metadata is missing.
  • Dispatch publication remains the server-owned visibility boundary; the mobile UI is not used as a secrecy filter.
  • Driver linkage, vehicle assignment, customer notification, and Dispatch idempotency are unchanged.

Scope grouping

Concurrent Work Gate

Verification

  • targeted route/token/store-review tests after rebase: 46/46 pass
  • earlier full delivery-api suite: 2404 pass, 129 skipped
  • Prisma generate and validate: pass
  • typecheck: pass before and after rebase
  • lint: pass with 6 GB Node heap
  • delivery-api build: pass
  • git diff --check: pass

Context decision

  • This changes the server-owned driver route visibility contract. The corresponding app-side boundary is documented in docs/route-access-flow.md in the app PR.
  • Production deployment and live pre-Dispatch account lookup remain separate deployment evidence.

Constraint: Preserve already active routes even when older cached publication metadata is absent.

Rejected: Client-only filtering | cached route tokens would still expose unpublished routes.

Confidence: high

Scope-risk: moderate

Directive: Keep publishedAt as the driver visibility boundary for ready routes.

Tested: 30 targeted tests; Prisma generate and validate; typecheck; lint; 2404 delivery API tests; delivery API build.

Not-tested: Production deployment and live pre-Dispatch account lookup.
@OziinG OziinG linked an issue Sep 10, 2026 that may be closed by this pull request
@OziinG
OziinG merged commit adb3a4c into main Sep 10, 2026
2 checks passed
@OziinG
OziinG deleted the cc-289-dispatch-publication-gate branch September 10, 2026 12:18
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.

Hide assigned routes from drivers until Dispatch publication

1 participant