Skip to content

Set labels on import and through the templates - #292

Merged
mt0rm0 merged 1 commit into
284-number-and-label-casesfrom
287-labels-on-import
Oct 16, 2026
Merged

mt0rm0 merged 1 commit into
284-number-and-label-casesfrom
287-labels-on-import

Conversation

@mt0rm0

@mt0rm0 mt0rm0 commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Closes #287

Labels now come in with the cases, through every way of importing them.

  • YAML: testart, frageform and herkunft are read and exported. A label missing from the file leaves the case's label as it is, so re-importing an older file cannot wipe labels set on screen. A changed label or category counts as an update. The category accepts any valid code.
  • Reviewers' Word table: Herkunft is "Prüfer-Vorlage", Frageform comes from the Allgemein/Konkret marker, and a "Testart" column is read if somebody adds one. A Fachbereich without a category becomes its own (WD 3 → WD3) instead of failing the row. Only a source without any Aktenzeichen still fails.
  • Excel sheet and Word form: an optional Testart field. Bereich and Testart are open lists: Excel gives no error for a value typed in, and the Word form uses a combo box. Herkunft is "Erfassungsvorlage". The templates are regenerated, and their guidance says Nummer instead of Test-ID.
  • The vorlagen and cases READMEs describe the labels.

🤖 Generated with Claude Code

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

mt0rm0 commented Oct 16, 2026

Copy link
Copy Markdown
Contributor Author

Other infos

  • Evaluation: 445 passed (new: label tests for YAML, the reviewer table and the Excel sheet). mypy src clean.
  • Both real reviewer files, read without importing: 16 + 17 cases, every one with Bereich, Herkunft Prüfer-Vorlage and Frageform. Testart is empty, since their table has no such column; it gets set on screen (Show and edit number, tag and labels in Administration #288).
  • Tests that used XX/ZZ as an invalid category now use a malformed one, since those are valid codes in an open list. The test that removed a column by position now finds it by header, because Testart moved Ausgangsfrage one column to the right.

@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: dda68f02-d275-4c61-b205-2c17974e1db2

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 d932cd0 into 284-number-and-label-cases Oct 16, 2026
5 checks passed
@mt0rm0
mt0rm0 deleted the 287-labels-on-import branch October 16, 2026 14:02
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