Skip to content

OBPIH-7364 Enable deletion of a product source that has a package associated#5743

Merged
alannadolny merged 4 commits into
developfrom
ft/OBPIH-7364
Feb 2, 2026
Merged

OBPIH-7364 Enable deletion of a product source that has a package associated#5743
alannadolny merged 4 commits into
developfrom
ft/OBPIH-7364

Conversation

@alannadolny
Copy link
Copy Markdown
Collaborator

No description provided.

@alannadolny alannadolny self-assigned this Jan 29, 2026
@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 Jan 29, 2026

String bindOrInferLotNumber(ImportPackingListItem obj, Map source) {
String lotNumber = source['lotNumber']?.trim() ?: null
String lotNumber = source['lotNumber']
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

We decided to revert that change, because of: https://pihemr.atlassian.net/browse/OBPIH-7640?focusedCommentId=176936

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 29, 2026

Codecov Report

❌ Patch coverage is 12.50000% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 9.83%. Comparing base (1bb7314) to head (23be0d6).
⚠️ Report is 337 commits behind head on develop.

Files with missing lines Patch % Lines
...pih/warehouse/product/ProductPackageService.groovy 0.00% 4 Missing ⚠️
...g/pih/warehouse/data/ProductSupplierService.groovy 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             develop   #5743      +/-   ##
============================================
+ Coverage       9.12%   9.83%   +0.71%     
- Complexity      1170    1386     +216     
============================================
  Files            701     743      +42     
  Lines          45281   46386    +1105     
  Branches       10851   11033     +182     
============================================
+ Hits            4131    4563     +432     
- Misses         40497   41114     +617     
- Partials         653     709      +56     

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


void delete(Set<ProductPackage> productPackages) {
List<String> productPackageIds = productPackages*.id
productPackageIds.each(productPackageGormService.&delete)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

interesting with the & 🤔

One nitpicky comment: I think we should have delete method for one instance, not for list, so I would suggest introducing at least another delete method that would accept one ProductPackage instance that you would call here like:

 void delete(Set<ProductPackage> productPackages) {
        List<String> productPackageIds = productPackages*.id
        productPackageIds.each(delete(it))
}

void delete(ProductPackage productPackage) {
...
}

@alannadolny alannadolny merged commit c5212ec into develop Feb 2, 2026
7 checks passed
@alannadolny alannadolny deleted the ft/OBPIH-7364 branch February 2, 2026 14:40
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