Skip to content

OBPIH-6993 fix3. filter multiple products when downloading transactio…#5580

Merged
ewaterman merged 3 commits intodevelopfrom
bug/OBPIH-6993-4
Oct 30, 2025
Merged

OBPIH-6993 fix3. filter multiple products when downloading transactio…#5580
ewaterman merged 3 commits intodevelopfrom
bug/OBPIH-6993-4

Conversation

@ewaterman
Copy link
Member

…n report

✨ Description of Change

Link to GitHub issue or Jira ticket: https://pihemr.atlassian.net/browse/OBPIH-6993

Description: When querying the transaction report, the datatables plugin sends products=1,2 but when downloading the report as CSV it sends products=1&products=2. Grails can auto handle the latter, but the former we needed to handle manually. The bug was caused because I wasn't properly handling the latter scenario. I modified the datatables solution to split the params like the CSV download was doing which let me remove the TODO and fix the bug.

@ewaterman ewaterman self-assigned this Oct 29, 2025
@github-actions github-actions bot added type: bug Addresses unintended behaviours of the app domain: frontend Changes or discussions relating to the frontend UI domain: backend Changes or discussions relating to the backend server labels Oct 29, 2025
selectedProducts.forEach(productId => {
data.push({ name: "products", value: productId });
});
}
Copy link
Member Author

Choose a reason for hiding this comment

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

This is what makes it produce products=1&products=2 which is the preferred approach

@codecov
Copy link

codecov bot commented Oct 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 8.50%. Comparing base (1bb7314) to head (19b916a).
⚠️ Report is 169 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff              @@
##             develop   #5580      +/-   ##
============================================
- Coverage       9.12%   8.50%   -0.63%     
+ Complexity      1170    1111      -59     
============================================
  Files            701     707       +6     
  Lines          45281   45446     +165     
  Branches       10851   10884      +33     
============================================
- Hits            4131    3863     -268     
- Misses         40497   41008     +511     
+ Partials         653     575      -78     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Co-authored-by: Kacper Chełstowski <[email protected]>
@ewaterman ewaterman merged commit f5206b8 into develop Oct 30, 2025
7 checks passed
@ewaterman ewaterman deleted the bug/OBPIH-6993-4 branch October 30, 2025 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: backend Changes or discussions relating to the backend server domain: frontend Changes or discussions relating to the frontend UI type: bug Addresses unintended behaviours of the app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants