Skip to content

feat(aci): add hits to workflow group history response header#102439

Merged
ameliahsu merged 1 commit into
masterfrom
mia/aci/workflow-history-count-hits
Oct 30, 2025
Merged

feat(aci): add hits to workflow group history response header#102439
ameliahsu merged 1 commit into
masterfrom
mia/aci/workflow-history-count-hits

Conversation

@ameliahsu

Copy link
Copy Markdown
Contributor

adds X-Hits and X-Max-Hits to the response headers so that we know how many objects the full query contains, even if the response itself is paginated, so we can display the count in the UI in the pagination caption

@ameliahsu ameliahsu requested a review from a team as a code owner October 30, 2025 21:05
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 30, 2025
self.user,
WorkflowGroupHistorySerializer(),
)
assert resp["X-Hits"] == "4"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Grouped Results Mismatch Expected Hits

The X-Hits assertion expects "4", but the query groups WorkflowFireHistory records by group. The test data contains two distinct groups, so X-Hits correctly reports "2" grouped results, not the 4 individual records.

Additional Locations (1)

Fix in Cursor Fix in Web

@codecov

codecov Bot commented Oct 30, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #102439      +/-   ##
===========================================
+ Coverage   75.54%    80.90%   +5.36%     
===========================================
  Files        8819      8825       +6     
  Lines      389819    389983     +164     
  Branches    24799     24799              
===========================================
+ Hits       294475    315509   +21034     
+ Misses      94982     74112   -20870     
  Partials      362       362              

@ameliahsu ameliahsu merged commit 961f0e6 into master Oct 30, 2025
76 of 78 checks passed
@ameliahsu ameliahsu deleted the mia/aci/workflow-history-count-hits branch October 30, 2025 21:30
isabellaenriquez pushed a commit that referenced this pull request Oct 31, 2025
adds X-Hits and X-Max-Hits to the response headers so that we know how
many objects the full query contains, even if the response itself is
paginated, so we can display the count in the UI in the pagination
caption
shashjar pushed a commit that referenced this pull request Nov 4, 2025
adds X-Hits and X-Max-Hits to the response headers so that we know how
many objects the full query contains, even if the response itself is
paginated, so we can display the count in the UI in the pagination
caption
andrewshie-sentry pushed a commit that referenced this pull request Nov 13, 2025
adds X-Hits and X-Max-Hits to the response headers so that we know how
many objects the full query contains, even if the response itself is
paginated, so we can display the count in the UI in the pagination
caption
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants