Repository navigation
Number test cases permanently and label them for analysis - #295
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.
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.
YAML files carry testart, frageform and herkunft; a label missing from a file leaves the case's alone, so an older file cannot wipe labels set on screen. The reviewers' Word table sets Herkunft and Frageform, reads a Testart column when one is added, and turns a Fachbereich without a category into one of its own (WD 3 becomes WD3) rather than refusing the row. The Excel sheet and Word form gain an optional Testart field. Bereich and Testart are offered as lists that accept a value typed in. Herkunft is Erfassungsvorlage. The templates are regenerated and say Nummer, not Test-ID.
The Testfälle table shows Nr., Tag, Bereich and Testart as columns, with Frageform and Herkunft under the question, sorts by each, and filters by Bereich, Testart, Frageform, Herkunft and Status. A Labels button opens a panel to change the tag and the labels: inputs with suggestions from /labels, so a new value can be typed. Labels are saved before the tag, and an empty tag is generated again. The case form takes its Bereich suggestions from /labels instead of a fixed GO, GV, AR, and asks for a Testart when creating.
report.breakdown groups the cases of one round, or of every round, by one or more labels: per combination the number of cases, how many had at least one automatic finding and which, and the 4.3b agreement between Stufe 1 and the human. Counted per case like the trend, by the labels as they are now so a correction re-sorts past rounds. GET /aufschluesselung serves it, and the results view has an Aufschlüsselung section with a dimension picker.
|
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 #284
Test cases get a permanent number, a readable tag, and labels to break results down by.
FI-PRZ-003) is generated from the labels or set by hand, and stays unique.Migrations
0013_nummer_and_tagand0014_case_labelsconvert existing data: each old TF-ID becomes the case's tag, and labels are filled from what is already recorded. On the cluster they run through the migrate Job on sync.Checked on the local stack: migrated, emptied as decided ("start fresh"), and both reviewer files re-imported through the upload. That gave 33 cases, numbered 1 to 33, all labelled. Editing a label in the browser regenerated the tag, and filtering narrowed the table.
🤖 Generated with Claude Code