Repository navigation
Give every case a permanent number and an editable tag - #290
Merged
Merged
Conversation
The Test-ID was both the identity rounds pointed at and a label carrying the
category. They are split: nummer is a global running number, never changed
and never reused; tag is a readable label, generated as <category>-<nnn> or
set by hand, unique, and kept once set by hand.
Migration 0013 numbers existing cases in creation order, keeps each Test-ID as
its tag, and turns the per-category counters into generic ones. The API, the
YAML format, the review queue, the report and the frontend address and show
cases by number and tag. PUT /cases/{nummer}/tag sets a tag; an empty one
hands it back to the generator.
Contributor
Author
Other infos
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Closes #285
The Test-ID (
TF-GO-014) did two jobs: it was the identity that rounds, reports and links pointed at, and a label carrying the category. A label has to be correctable and an identity must not change, so they are split.nummer: a global running number from a counter that never hands one back, also not after withdrawal. Every API path, the YAML format, the review queue and the report sheets now refer to it.tag: a readable label, generated as<Kategorie>-<nnn>(e.g.GO-001, no moreTF-) or set by hand withPUT /api/eval/cases/{nummer}/tag. Unique, with a 409 naming the conflict. A hand-set tag is markedtag_manuelland kept; an empty one hands it back to the generator, which skips tags taken by hand. Label cases by Bereich, Testart, Frageform and Herkunft with open value lists #286 extends the generated form with the Testart.0013_nummer_and_tag: numbers existing cases in creation order, keeps each Test-ID as its tag, and turnstest_id_sequencesinto genericcounters, so tags generated for a category continue where its Test-IDs stopped. Downgrade restores the old shape.nummerreplacestest_id. Atagthat differs from the case's is applied and marked as set by hand.--allow-new-idsseeds with a given number and advances both counters past it.nummerandtag. The Testfälle table has an "Nr." column sorted numerically, with the tag beside the number. The full editing UI is Show and edit number, tag and labels in Administration #288.🤖 Generated with Claude Code