Skip to content

[O2B-1545] Create GAQ summary tables#2173

Open
isaachilly wants to merge 14 commits into
mainfrom
feature/O2B-1545/Create-GAQ-Summary-Tables
Open

[O2B-1545] Create GAQ summary tables#2173
isaachilly wants to merge 14 commits into
mainfrom
feature/O2B-1545/Create-GAQ-Summary-Tables

Conversation

@isaachilly

@isaachilly isaachilly commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

I have a JIRA ticket

  • branch and/or PR name(s) include(s) JIRA ID
  • issue has "Fix version" assigned
  • issue "Status" is set to "In review"
  • PR labels are selected

Notable changes for users:

  • N/A

Notable changes for developers:

  • N/A

Changes made to the database:

  • New table to store GAQ summaries and if and when they are invalidated.

Add GaqSummaryRepository and GaqSummaryInvalidationRepository and export them from the repositories index.

Update migration to replace the previous invalidated_at field with created_at and add updated_at to mirror default Sequelize tables.
Rename and change mcReproducible to be the coverage float not the boolean.
Add a calculation_failed boolean column to gaq_summaries. This allows us to know whether a summary has been attempted to be calculated but unsuccessful due to limited data etc.
Remove not-null constraints from several GAQ summary columns in the migration to allow NULL when values are unavailable.
Store invalidation timestamp directly on gaq_summaries instead of a separate gaq_summary_invalidations table.
Create an index on invalidated_at column of gaq_summaries table to improve query performance, as it is commonly used to fetch the invalidated summary queue.
Sequelize model omitted the primaryKey that migration file defines.
@isaachilly isaachilly requested a review from graduta June 19, 2026 15:51
@isaachilly isaachilly self-assigned this Jun 19, 2026
@isaachilly isaachilly added the DB label Jun 19, 2026
@codecov

codecov Bot commented Jun 19, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.75862% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 46.06%. Comparing base (838e6a8) to head (f2f5f79).

Files with missing lines Patch % Lines
lib/database/adapters/GaqSummaryAdapter.js 50.00% 3 Missing ⚠️
...ons/v1/20260223120000-create-gaq-summary-tables.js 66.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2173      +/-   ##
==========================================
+ Coverage   45.82%   46.06%   +0.23%     
==========================================
  Files        1039     1043       +4     
  Lines       17189    17218      +29     
  Branches     3138     3138              
==========================================
+ Hits         7877     7931      +54     
+ Misses       9312     9287      -25     

☔ 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

Development

Successfully merging this pull request may close these issues.

1 participant