Skip to content

Update content errors - #820

Draft
axlewin wants to merge 5 commits into
mainfrom
hotfix/new-content-errors
Draft

Update content errors#820
axlewin wants to merge 5 commits into
mainfrom
hotfix/new-content-errors

Conversation

@axlewin

@axlewin axlewin commented Aug 14, 2026

Copy link
Copy Markdown
Contributor
  • Add a new content error for questions that are not marked "exact answer only" but don't have sig fig bounds set (the behaviour here is to default to 2 sig figs, but this is not made obvious to content developers).

  • Fix an issue where the duplicate ID content error was not applied to questions on the same page that had the same title (including no title).

If two title-less questions on the same page are given the same ID, the content flattener cannot distinguish between them so only one copy is in the Set of flattened content that is checked for duplicate IDs.

By giving the questions distinct titles, both questions are included in the flattened content Set and the duplicate ID content error is applied.
@codecov

codecov Bot commented Aug 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 41.00%. Comparing base (d9c5d5a) to head (488590a).

Files with missing lines Patch % Lines
...ava/uk/ac/cam/cl/dtg/segue/etl/ContentIndexer.java 50.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #820   +/-   ##
=======================================
  Coverage   41.00%   41.00%           
=======================================
  Files         550      550           
  Lines       23602    23606    +4     
  Branches     2848     2850    +2     
=======================================
+ Hits         9678     9680    +2     
- Misses      13052    13054    +2     
  Partials      872      872           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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