feat(tiering): clear stale view-only locks within tier + nav Pricing->Pro#2515
Merged
Merged
Conversation
…ricing->Pro Follow-up to the free/pro reframe (#2514): - Migration 260629-04: clears is_locked (view-only) for projects that should not be view-only under the new model — premium projects, pro-owned projects, and free projects within the free tier (<=526k recording minutes AND <=3 collaborators). Only free projects that genuinely exceed a free limit stay view-only. Computed against live 2026-06-29: 1,228 unlock, 215 stay locked. (Recording-over-limit set is baked in by id_arbimon since recording minutes live in legacy arbimon2, not Bio PG; collaborator axis read from the PG quota view. One-shot data correction; down is a no-op.) - navbar: top-bar menu item 'Pricing' -> 'Pro' (still links to the pricing route for now).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to the free/pro reframe (#2514).
View-only (
is_locked) cleanupThe legacy model locked projects (view-only: blocks edits/analyses/exports/member-changes) when a user exceeded the old per-tier project COUNT caps. Under the reframe those caps are gone, so most locks are now stale. Migration 260629-04 clears
is_lockedfor every project that should not be view-only:Computed against live (2026-06-29): 1,228 unlock, 215 stay locked (of 1,443). Recording-over-limit set is baked in by
id_arbimon(recording minutes live in legacy arbimon2, not Bio PG); collaborator axis read from the PG quota view. One-shot data correction;downis a no-op (lock state was a legacy-model artifact). No code path auto-re-locks (verified: only dormant downgrade/admin BLL paths writeis_locked).Nav
Top-bar menu item Pricing → Pro (still links to the pricing route for now).
Built + lint clean (cli
tsc, website vite-ssg). Migration applied live via biodiversity-cli-migrate after merge. Design: rfcx-local runbooks/DESIGN-arbimon-tier-rules-reframe-2026-06-29.md.