Skip to content

Number test cases permanently and label them for analysis - #295

Merged
mt0rm0 merged 5 commits into
devfrom
284-number-and-label-cases
Oct 16, 2026
Merged

mt0rm0 merged 5 commits into
devfrom
284-number-and-label-cases

Conversation

@mt0rm0

@mt0rm0 mt0rm0 commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Closes #284

Test cases get a permanent number, a readable tag, and labels to break results down by.

Migrations 0013_nummer_and_tag and 0014_case_labels convert 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

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.
@coderabbitai

coderabbitai Bot commented Oct 16, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cbb7bfe7-e743-467e-9c8e-32dcf2670c08

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mt0rm0
mt0rm0 merged commit ca54020 into dev Oct 16, 2026
5 checks passed
@mt0rm0
mt0rm0 deleted the 284-number-and-label-cases branch October 16, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant