Skip to content

Preserve existing array references and initialize new strict rules - #277

Open
jurei733 wants to merge 1 commit into
masterfrom
fix-array-reference-defaults
Open

jurei733 wants to merge 1 commit into
masterfrom
fix-array-reference-defaults

Conversation

@jurei733

@jurei733 jurei733 commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

New manually created rules for multiple-value variables now store valueArrayPos: 'ANY' explicitly, both when creating a code and when adding another rule set. Scalar rules and the existing generators keep their existing handling.

Existing coding schemes are preserved: an omitted array reference is displayed as “Bisherige Auswertung beibehalten”, with an explanation of its rule-wise matching. Opening and saving that choice leaves the serialized reference untouched. Selecting ANY, ANY_OPEN, a numeric position, sum or length remains an explicit edit. Existing omitted references also have a distinct short label.

Refs #276.
Related to iqb-berlin/responses#151, which corrects OR evaluation for explicitly stored ANY/ANY_OPEN references in TypeScript and .NET. That runtime correction needs a separate Responses release and dependency update in consumers; this PR does not point dependencies at an unpublished version.

Validation:

  • 892 library unit tests and 25 Schemer unit tests pass with coverage.
  • New regressions cover dialog labels and explicit selection, untouched legacy serialization/results, strict matching of newly created marking rules, metadata propagation when adding codes, and scalar compatibility.
  • Lint passes with 16 existing warnings.
  • Shared library build and Schemer production build/HTML packaging pass.
  • Combined local source check with the built Responses patch passes for new strict OR rules. Comparing the three supplied exports preserves the legacy results and changes only the explicit ANY/OR cases.
  • CI passes at head 69cf5643ce0cdbb0ab94b760e427cef7331441ca, including browser tests at the development server and packed Schemer HTML: https://github.com/iqb-berlin/coding-components/actions/runs/41074508577.
  • No migration of existing schemes, package publication, deployment or ticket closure.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 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-30T14:47:43.669342Z 69cf564 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.

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