Skip to content

Fix question logic - #92

Merged
RGilliard-ACF merged 7 commits into
mainfrom
fix-question-logic
Oct 28, 2026
Merged

RGilliard-ACF merged 7 commits into
mainfrom
fix-question-logic

Conversation

@RGilliard-ACF

Copy link
Copy Markdown
Collaborator

No description provided.

Gilliard Reggie and others added 7 commits October 23, 2026 16:39
dashboard.metrics.search: Better table rendering after modification
Simplify the commitChanges table-reshaping block with destructuring
instead of parallel-array index juggling, and rewrite getYearRange to
group consecutive years via the current run's tail. Both are
behavior-preserving aside from fixing empty-input ("undefined") and
lexicographic-sort edge cases in getYearRange.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Previously uqid was derived as a hash of question_id(s), so two distinct
questions that collided to the same question_id could never be given
distinct uqids, making them impossible to unlink.

Option A: mint uqid via new_uqid() (uuid4 hex), persisted and never
derived from question_id. Applied in PIRLinker.gen_uqid and
dashboard_utils.link.

Option B: make unlink addressable at (question_id, year) granularity.
match_year is optional (omitted preserves whole-question_id behavior);
when present, only that row is peeled. A single peeled row becomes
unlinked; a multi-row set moves to a fresh uqid; the source group
dissolves if one row remains. Thread base_year/match_year through the
dashboard (utilities.js) and review.py build dict_id.

Update tests for surrogate-uqid semantics.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
… some of the logic for returning questions had to change. This commit handles changing that logic
@RGilliard-ACF
RGilliard-ACF merged commit 090ad06 into main Oct 28, 2026
@RGilliard-ACF
RGilliard-ACF deleted the fix-question-logic branch October 28, 2026 14:31
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