Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix breakdown API pagination when using event metrics #2562

Merged
merged 3 commits into from
Jan 5, 2023

Conversation

vinibrsl
Copy link
Contributor

@vinibrsl vinibrsl commented Jan 3, 2023

This commit fixes a bug where the subsequent breakdown API pages had the same items as the first page. The fix sorts the underlying ClickHouse query by timestamp, keeping the same order between requests, as we use OFFSET/LIMIT pagination.

Closes #2561

This commit fixes a bug where the subsequent breakdown API pages had
the same items as the first page. The fix sorts the underlying
ClickHouse query by timestamp, keeping the same order between requests,
as we use OFFSET/LIMIT pagination.
@vinibrsl vinibrsl requested a review from a team January 3, 2023 19:09
@bundlemon
Copy link

bundlemon bot commented Jan 3, 2023

BundleMon

Unchanged files (7)
Status Path Size Limits
static/css/app.css
515.19KB -
static/js/dashboard.js
297.45KB -
static/js/app.js
12.13KB -
static/js/embed.host.js
5.58KB -
static/js/embed.content.js
5.06KB -
tracker/js/plausible.js
748B -
static/js/applyTheme.js
314B -

No change in files bundle size

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@vinibrsl vinibrsl force-pushed the breakdown-api-pagination branch 2 times, most recently from c4cb566 to a930bd4 Compare January 5, 2023 01:01
@vinibrsl vinibrsl merged commit 4503895 into master Jan 5, 2023
@vinibrsl vinibrsl deleted the breakdown-api-pagination branch January 5, 2023 01:14
@vinibrsl vinibrsl mentioned this pull request Jan 20, 2023
2 tasks
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.

API pagination's duplicates
3 participants