Skip to content

Sequential tier release and tier reordering - #1350

Merged
daveearley merged 2 commits into
developfrom
feature/sequential-tier-release
Sep 15, 2026
Merged

daveearley merged 2 commits into
developfrom
feature/sequential-tier-release

Conversation

@daveearley

Copy link
Copy Markdown
Contributor

What

  • Release tiers in order: new switch on tiered products. A later tier is locked until every earlier tier with a quantity sells out (live reservations count) or passes its sale end date. Locked tiers stay visible, greyed, as "Not yet on sale". The state is derived on every read and re-checked at checkout; nothing is stored beyond the flag.
  • Tier reordering: tiers in the product drawer can be dragged into order.
  • Widget tidy-up: tiered products no longer show a sold-out badge on the header while the rows are expanded, and rows inherit the product-level reason (sales ended / not started) instead of "Not available".

Notes

  • Saving with the switch on requires a quantity on every tier except the last.
  • Locked state uses the tier's own stock (sold + reserved vs quantity), not the occurrence- or capacity-capped number, so a full date on a recurring event doesn't unlock the next tier.
  • No new queries on the public event endpoint.

Tests

  • Unit: domain predicate, filter service, checkout validator, request rule, tier order invariant.
  • E2E: locked → unlocked → sold-out flow, header badge expanded vs collapsed, switch validation and persistence, drag reorder.

Later tiers stay locked until earlier tiers sell out or end, derived at read time
and enforced at checkout. Tiers can be dragged into order in the product drawer.
Tiered products show one availability badge per tier instead of an extra one on
the header.
@railway-app

railway-app Bot commented Sep 15, 2026

Copy link
Copy Markdown

🚅 Deployed to the Hi.Events-pr-1350 environment in Hi.Events

Service Status Web Updated
Hi.Events Frontend ✅ Success (View Logs) Web Sep 15, 2026 at 4:53 pm UTC
Hi.Events Scheduler ✅ Success (View Logs) Sep 15, 2026 at 4:50 pm UTC
Hi.Events Queue Worker ✅ Success (View Logs) Sep 15, 2026 at 4:49 pm UTC
Hi.Events API ✅ Success (View Logs) Web Sep 15, 2026 at 4:47 pm UTC
1 service not affected by this PR
  • Maildev

@railway-app
railway-app Bot temporarily deployed to Hi.Events / Hi.Events-pr-1350 September 15, 2026 16:38 Destroyed
@railway-app
railway-app Bot temporarily deployed to Hi.Events / Hi.Events-pr-1350 September 15, 2026 16:42 Destroyed
@github-actions

Copy link
Copy Markdown
Contributor

✅ E2E · smoke

✅ Passed ❌ Failed ⚠️ Flaky ⏭️ Skipped ⏱️ Duration
26 0 0 0 1m 2s

View run

@daveearley
daveearley merged commit 4eda865 into develop Sep 15, 2026
10 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant