Skip to content

Add persons who are neither student nor teacher (#30)#31

Merged
Edwinexd merged 3 commits into
masterfrom
fix/issue-30-neither-both-persons
Jul 6, 2026
Merged

Add persons who are neither student nor teacher (#30)#31
Edwinexd merged 3 commits into
masterfrom
fix/issue-30-neither-both-persons

Conversation

@Edwinexd

@Edwinexd Edwinexd commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Add persons who are neither student nor teacher

Closes #30 (data-only change).

Until now every Person was a Student or a Teacher (neither = 0), which let "join Teacher" shortcut solutions validate as correct on the not-in-role questions. This adds 4 persons who are neither student nor teacher so those shortcuts now produce a wrong result.

What changed

  • data/oracle.enc — 4 new OraclePerson entries (isStudent: false, isTeacher: false), appended at the end so existing course-instance / participation indices are untouched.
  • languages/{en,sv,de}.ts — appended 4 entries to each pack's positional personIds / postalCodes / phones arrays (verified all three at 25, in index order).
  • Regenerated public/languages/{en,sv,de}/{questionpool.json,data.sqlite3}.

Verified (English DB)

Person 25 · Student 17 · Teacher 6 · neither 4 · both 2

Blast radius

13 / 110 questions shift result counts (all Person-related): Q1A/B/E, Q2A–J, Q11A 15→19.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 14, 2026

Copy link
Copy Markdown

Deploying sql-validator with  Cloudflare Pages  Cloudflare Pages

Latest commit: 627d81a
Status:⚡️  Build in progress...

View logs

@Edwinexd Edwinexd force-pushed the fix/issue-30-neither-both-persons branch from 481ce7c to df7bfd4 Compare June 16, 2026 11:00
Reconcile the 4 neither-persons onto the merged PG+RA master: the oracle now
carries both the new persons and the pgQuery overrides, and all 6 data variants
(en/sv/de x sqlite/pg) are regenerated. Verified: Person 25 / Student 17 /
Teacher 6 / neither 4 / both 2, 0 generation errors.
@Edwinexd Edwinexd merged commit a827092 into master Jul 6, 2026
1 of 2 checks passed
@Edwinexd Edwinexd deleted the fix/issue-30-neither-both-persons branch July 6, 2026 10:06
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.

Fix 11 B

1 participant