Skip to content

OBPIH-7542 Include items with no expiration date in the reorder report#5592

Merged
kchelstowski merged 2 commits intodevelopfrom
ft/OBPIH-7542-fix
Nov 3, 2025
Merged

OBPIH-7542 Include items with no expiration date in the reorder report#5592
kchelstowski merged 2 commits intodevelopfrom
ft/OBPIH-7542-fix

Conversation

@kchelstowski
Copy link
Collaborator

✨ Description of Change

Link to GitHub issue or Jira ticket:

Description:


📷 Screenshots & Recordings (optional)

@kchelstowski kchelstowski self-assigned this Nov 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 Nov 3, 2025
@codecov
Copy link

codecov bot commented Nov 3, 2025

Codecov Report

❌ Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 8.50%. Comparing base (1bb7314) to head (523dc50).
⚠️ Report is 174 commits behind head on develop.

Files with missing lines Patch % Lines
...ehouse/inventory/ProductAvailabilityService.groovy 0.00% 7 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             develop   #5592      +/-   ##
============================================
- Coverage       9.12%   8.50%   -0.63%     
+ Complexity      1170    1116      -54     
============================================
  Files            701     711      +10     
  Lines          45281   45572     +291     
  Branches       10851   10904      +53     
============================================
- Hits            4131    3874     -257     
- Misses         40497   41124     +627     
+ Partials         653     574      -79     

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

if (expirationFilter == ExpirationFilter.REMOVE_EXPIRED_STOCK) {
return Restrictions.and(Restrictions.ge("ii.expirationDate", new Date()), Restrictions.gt("quantityOnHand", 0))
}
return Restrictions.and(Restrictions.between("ii.expirationDate", new Date(), new Date() + expirationFilter.days), Restrictions.gt("quantityOnHand", 0))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Previously, if this was not REMOVE_EXPIRED_STOCK you had exp date between today and today + exp filter days, now for this case, you have exp date greater than today + exp filter days (or null). Is this expected? Or should it still be a range with today's date and a today's date plus expiration filter days?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@awalkowiak yeah, previously I implemented the opposite, so I INCLUDED only those that e.g. expire in 30 days. Now I switched the logic to REMOVE them as expected.

@kchelstowski kchelstowski merged commit c011d3f into develop Nov 3, 2025
7 checks passed
@kchelstowski kchelstowski deleted the ft/OBPIH-7542-fix branch November 3, 2025 12:15
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.

2 participants