Skip to content

Fix pagination after bulk updates on the bulletins page#72

Merged
tarekio merged 2 commits intomainfrom
BYNT-1304-After-bulk-update-the-page-shows-30-results
Jan 24, 2025
Merged

Fix pagination after bulk updates on the bulletins page#72
tarekio merged 2 commits intomainfrom
BYNT-1304-After-bulk-update-the-page-shows-30-results

Conversation

@apodacaduron
Copy link
Copy Markdown
Contributor

@apodacaduron apodacaduron commented Jan 20, 2025

Jira Issue

  1. 1304

Description

This PR addresses an issue where the bulletins page refetches data with incorrect pagination after a bulk update, causing the table to display more items than initially selected (e.g., more than 10 records when set to show 10).

Steps to Reproduce:
Navigate to the bulletins page.
Ensure the database contains at least 11 records.
Set the table to display only 10 records per page.
Select multiple checkboxes and perform a bulk update.
After the bulk update is completed, observe that the page sends a request with page=undefined&per_page=undefined, resulting in the endpoint defaulting to per_page=30 and displaying more records than expected.

Checklist

  • Tests added/updated
  • Documentation updated (if needed)
  • New strings prepared for translations

API Changes (if applicable)

  • Permissions checked
  • Endpoint tests added

Additional Notes

[Any other relevant information]

@apodacaduron apodacaduron requested a review from tarekio January 20, 2025 21:58
@apodacaduron apodacaduron self-assigned this Jan 20, 2025
@apodacaduron apodacaduron changed the title remove boolean flag from refresh fn Ensure fix pagination after bulk updates on the bulletins page Jan 20, 2025
@apodacaduron apodacaduron changed the title Ensure fix pagination after bulk updates on the bulletins page Fix pagination after bulk updates on the bulletins page Jan 20, 2025
@tarekio tarekio requested a review from level09 January 21, 2025 20:14
@tarekio tarekio merged commit c2c7c15 into main Jan 24, 2025
@tarekio tarekio deleted the BYNT-1304-After-bulk-update-the-page-shows-30-results branch January 24, 2025 21:48
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