Repository navigation
Fix question logic - #92
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.