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

Show more records, records items per page #306

Merged
merged 3 commits into from
Nov 22, 2023

Conversation

Xpirix
Copy link
Collaborator

@Xpirix Xpirix commented Nov 15, 2023

Please find below a GIF of the show more button and elements per page options:

Show_more

@codecov-commenter
Copy link

Codecov Report

Attention: 32 lines in your changes are missing coverage. Please review.

Comparison is base (2057611) 37.76% compared to head (573590b) 34.40%.

Files Patch % Lines
qgis-app/plugins/tests/test_plugin_list.py 21.05% 30 Missing ⚠️
qgis-app/plugins/views.py 0.00% 2 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #306      +/-   ##
==========================================
- Coverage   37.76%   34.40%   -3.36%     
==========================================
  Files          96       66      -30     
  Lines        3948     3784     -164     
==========================================
- Hits         1491     1302     -189     
- Misses       2457     2482      +25     

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

@@ -605,6 +605,8 @@ def get_context_data(self, **kwargs):
context.update(self.additional_context)
context["current_sort_query"] = self.get_sortstring()
context["current_querystring"] = self.get_querystring()
context["per_page_list"] = [20, 50, 75, 100]
context["show_more_items_number"] = context["paginator"].per_page + 50
Copy link
Collaborator

Choose a reason for hiding this comment

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

It should be based on the number from per_page_list

Copy link
Collaborator Author

@Xpirix Xpirix Nov 20, 2023

Choose a reason for hiding this comment

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

Yes, you're right. I have fixed it.

@Xpirix Xpirix requested a review from dimasciput November 20, 2023 12:08
@dimasciput dimasciput merged commit 8d9b0a0 into qgis:master Nov 22, 2023
2 checks passed
@Xpirix Xpirix deleted the show_more_records branch January 2, 2024 06:18
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.

3 participants