Allow renaming custom eligibility checks - #518
Merged
prestoncabe merged 2 commits intoSep 27, 2026
Merged
Conversation
prestoncabe
force-pushed
the
512-ability-to-rename-custom-eligibility-checks
branch
from
September 27, 2026 16:21
5991c49 to
8b84912
Compare
A check's id was built from its name and kept after a rename, so the old name stayed reserved: creating a check with it, or renaming another check to it, was refused. New checks now get a generated id, and existing ids are treated as opaque. Published ids are still derived from the working id, so a check's versions stay linked across renames. Name uniqueness is enforced with a reservation document per owner, module and name, taken in a Firestore transaction so concurrent creates or renames cannot both claim a name. A reservation whose check no longer holds the name can be reclaimed after five minutes, so a failed request cannot block a name for good. The example import records which example check each imported check came from and matches on that, instead of an id built from the name. It now only adds what is missing, so re-importing no longer undoes a rename or rewrites an existing published version, and it refuses to duplicate a name used by another check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
prestoncabe
force-pushed
the
512-ability-to-rename-custom-eligibility-checks
branch
from
September 27, 2026 17:32
8b84912 to
2c30eaf
Compare
prestoncabe
deleted the
512-ability-to-rename-custom-eligibility-checks
branch
September 27, 2026 17:32
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.
Summary
Verification
Closes #512