Skip to content

OBPIH-7287 Cycle count assignment fixes#5350

Merged
awalkowiak merged 11 commits intoft/OBPIH-7287-cycle-count-assignmentfrom
OBPIH-7287
Jun 27, 2025
Merged

OBPIH-7287 Cycle count assignment fixes#5350
awalkowiak merged 11 commits intoft/OBPIH-7287-cycle-count-assignmentfrom
OBPIH-7287

Conversation

@alannadolny
Copy link
Collaborator

No description provided.

@alannadolny alannadolny self-assigned this Jun 26, 2025
@github-actions github-actions bot added domain: frontend Changes or discussions relating to the frontend UI domain: backend Changes or discussions relating to the backend server domain: l10n Changes or discussions relating to localization & Internationalization labels Jun 26, 2025
@codecov
Copy link

codecov bot commented Jun 26, 2025

Codecov Report

❌ Patch coverage is 5.26316% with 36 lines in your changes missing coverage. Please review.
✅ Project coverage is 8.40%. Comparing base (98c23e6) to head (aa9d34b).

Files with missing lines Patch % Lines
...g/pih/warehouse/inventory/CycleCountService.groovy 0.00% 33 Missing ⚠️
...main/org/pih/warehouse/inventory/CycleCount.groovy 25.00% 3 Missing ⚠️
Additional details and impacted files
@@                            Coverage Diff                            @@
##             ft/OBPIH-7287-cycle-count-assignment   #5350      +/-   ##
=========================================================================
- Coverage                                    8.41%   8.40%   -0.01%     
- Complexity                                   1016    1017       +1     
=========================================================================
  Files                                         664     664              
  Lines                                       44081   44112      +31     
  Branches                                    10656   10662       +6     
=========================================================================
+ Hits                                         3708    3709       +1     
- Misses                                      39805   39835      +30     
  Partials                                      568     568              

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


// Access to the information about available cycle count items before creating the cycle count
List<AvailableItem> getItemsAvailableForCycleCount() {
CycleCountProductAvailabilityService cycleCountProductAvailabilityService = Holders.grailsApplication.mainContext.getBean(CycleCountProductAvailabilityService)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't like the idea of loading service in the domain. Is there an option to do this inside the service instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I also don't like that, but nothing better comes to my mind.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I would just calculate it and concatenate with toJson result, or perhaps ou could just add a transient with setter for this one 🤔

@awalkowiak awalkowiak merged commit c8fc4f5 into ft/OBPIH-7287-cycle-count-assignment Jun 27, 2025
7 checks passed
@awalkowiak awalkowiak deleted the OBPIH-7287 branch June 27, 2025 11:35
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 domain: l10n Changes or discussions relating to localization & Internationalization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants