Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Increase default activity page size to 20 #2712

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

nicksellen
Copy link
Member

This is not a full fix, but slightly improves the situation for now.

The problem is that we order activities by a column that is not unique-enough, see this discussion encode/django-rest-framework#7888

If a group has a lot of activities at the same start time it
can cause not all of them to be returned.

Increasing the page size somewhat mitigates the effect but
it really needs to be resolved in the DRF CursorPagination.
Copy link

codecov bot commented Mar 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.67%. Comparing base (e17e2e7) to head (71ee8d6).
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2712      +/-   ##
==========================================
- Coverage   73.69%   73.67%   -0.02%     
==========================================
  Files         404      404              
  Lines       44225    44236      +11     
  Branches     2440     2449       +9     
==========================================
  Hits        32593    32593              
- Misses      11632    11643      +11     

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

@nicksellen nicksellen merged commit 3b2b77e into master Mar 18, 2024
6 of 7 checks passed
nicksellen added a commit that referenced this pull request Mar 26, 2024
Some material icons were being wrongly detected as font-awesome ones
e.g. "fastfood"

Reviewed-on: https://codeberg.org/karrot/karrot-frontend/pulls/2712
Co-authored-by: Nick Sellen <git@nicksellen.co.uk>
Co-committed-by: Nick Sellen <git@nicksellen.co.uk>
@nicksellen nicksellen deleted the fix/activity-pagination-size branch March 26, 2024 16:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant