Repository navigation
Label cases by Bereich, Testart, Frageform and Herkunft - #291
Merged
Merged
Conversation
Testart, Frageform and Herkunft join the Kategorie on the case, not its versions, so correcting a label creates no version. Kategorie and Testart are open lists: the built-in values are always offered, and a value typed in is offered while a case uses it and gone once none does. A generated tag is now <Kategorie>-<Testart code>-<nnn> and follows label changes; a hand-set one stays. The Testart "Grenzfall · außerhalb des Bestands" keeps a draft's grenzfall flag in step. Migration 0014 fills the new labels for existing cases from what is already recorded.
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 #286
Every case now carries four labels, so a round can be broken down by what each case is meant to test.
WD3.PRZ,GAB, …); a typed-in one gets its first three letters.Labels live on the case, not its versions:
PATCH /api/eval/cases/{nummer}/labelscorrects them without creating a version.GET /api/eval/labelsreturns the values to offer per dimension, built-in ones first, then those in use, so a value added by hand disappears once no case uses it. Nothing stores the list itself.A generated tag is now
<Kategorie>-<Testart code>-<nnn>, e.g.FI-PRZ-001, orFI-001without a Testart, and follows label changes. A tag set by hand stays.Choosing the Testart "Grenzfall · außerhalb des Bestands" sets the draft's
grenzfallflag, and choosing another unsets it. An approved version keeps its flag, since it is what a round measured against.Migration
0014_case_labelsfills the new labels for existing cases: Herkunft fromgrund_fuer_aufnahmeor the feedback origin, Frageform from the reviewer note, Testart only for Grenzfälle.🤖 Generated with Claude Code