Skip to content

OBPIH-7337 export recount enhancements#5303

Merged
awalkowiak merged 2 commits intodevelopfrom
ft/OBPIH-7337-export-recount-enhancements
Jun 6, 2025
Merged

OBPIH-7337 export recount enhancements#5303
awalkowiak merged 2 commits intodevelopfrom
ft/OBPIH-7337-export-recount-enhancements

Conversation

@ewaterman
Copy link
Member

✨ Description of Change

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

Description: Modified CycleCountService.getRecountFormXls to also export the value of “Quantity Recounted“, "Root Cause", “Comment“, “User Recounted“, and “Date Recounted“.


📷 Screenshots & Recordings (optional)

Screenshot from 2025-06-03 09-59-13

@ewaterman ewaterman self-assigned this Jun 3, 2025
@github-actions github-actions bot added type: feature A new piece of functionality for the app domain: backend Changes or discussions relating to the backend server labels Jun 3, 2025
@ewaterman
Copy link
Member Author

I was investigating this ticket this morning after poker planning and ended up essentially implementing it while I was figuring stuff out so I decided to finish it 🤷


// Build a map to make it easier to group the count and recount items into one row in the XLS.
// The outer map is keyed on [product code + lot + bin]. The inner map is keyed on count index.
MultiKeyMap<String, Map<Integer, CycleCountItemDto>> countItemsMap = [:]
Copy link
Member Author

@ewaterman ewaterman Jun 3, 2025

Choose a reason for hiding this comment

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

I quite like MultiKeyMap and MultiKey. I find them very useful as a way to avoid needing to make nested maps (though in this rare case I also have a nested map for convenience).

https://commons.apache.org/proper/commons-collections/apidocs/org/apache/commons/collections4/map/MultiKeyMap.html

Copy link
Collaborator

Choose a reason for hiding this comment

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

nitpicky, but I think an interface should be the type, so in this case it should probably be:

IterableMap<String, Map<Integer, CycleCountItemDto>> countItemsMap = new MultiKeyMap()

in the same way that we declare a list - we don't do:

ArrayList<String> = new ArrayList<>()

but

List<String> = new ArrayList<>()

@ewaterman ewaterman requested a review from SebastianLib June 3, 2025 17:25
@codecov
Copy link

codecov bot commented Jun 3, 2025

Codecov Report

❌ Patch coverage is 0% with 40 lines in your changes missing coverage. Please review.
✅ Project coverage is 8.29%. Comparing base (a15b5a9) to head (550a037).
⚠️ Report is 105 commits behind head on develop.

Files with missing lines Patch % Lines
...g/pih/warehouse/inventory/CycleCountService.groovy 0.00% 38 Missing ⚠️
...y/org/pih/warehouse/inventory/CycleCountDto.groovy 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             develop   #5303      +/-   ##
============================================
- Coverage       8.34%   8.29%   -0.05%     
+ Complexity      1002     994       -8     
============================================
  Files            649     649              
  Lines          43650   43684      +34     
  Branches       10579   10591      +12     
============================================
- Hits            3642    3625      -17     
- Misses         39446   39499      +53     
+ Partials         562     560       -2     

☔ 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.

@awalkowiak awalkowiak requested a review from alannadolny June 4, 2025 08:44
@awalkowiak awalkowiak merged commit f9d8f0d into develop Jun 6, 2025
8 checks passed
@awalkowiak awalkowiak deleted the ft/OBPIH-7337-export-recount-enhancements branch June 6, 2025 08:51
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 type: feature A new piece of functionality for the app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants