Skip to content

Show failed coding scheme validation explicitly - #275

Open
jurei733 wants to merge 1 commit into
masterfrom
fix/schemer-validation-failure
Open

jurei733 wants to merge 1 commit into
masterfrom
fix/schemer-validation-failure

Conversation

@jurei733

Copy link
Copy Markdown
Collaborator

When coding-scheme validation throws, the Schemer currently clears the problem list and marks the variables as OK. Opening “Prüfe Syntax Kodierschema” then reports “keine Probleme gefunden”.

Track whether validation completed successfully. Failed or unperformed validation now opens “Kodierschema konnte nicht geprüft werden.”, and affected variable markers show a neutral unchecked state. A later successful validation restores the normal result.

Validation:

  • 884 library unit tests and 25 Schemer unit tests pass with coverage.
  • Regression tests cover failure after a previous success, recovery, and checking before validation has run.
  • The embedded browser regression exercises a real validator exception and a corrected host update in both the development server and packed Schemer HTML.
  • Library build, Schemer build/pack and lint pass; lint reports 16 existing warnings.

Related: iqb-berlin/studio-lite#1873 and iqb-berlin/studio-lite#1965.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T14:56:48.335285Z 1fc4767 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1fc47678bf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

}
this.schemerService.codingScheme.variableCodings.forEach(v => {
if (!this.validationSucceeded()) {
this.codingStatus[v.id] = 'UNCHECKED';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Render unchecked status neutrally in selection dialogs

When validation throws and the user opens the Export, Delete, or Copy dialog, this new UNCHECKED value is passed to SelectVariableDialogComponent, where every status other than OK or WARNING is rendered with the red problem-error class. Consequently, variables whose validation result is explicitly unknown are presented as confirmed errors in those dialogs, contradicting the neutral gray marker in the main list; handle UNCHECKED separately in the shared selection dialog.

Useful? React with 👍 / 👎.

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