Skip to content

OBPIH-6821 Try next sequence number if generating an order number fails#4948

Merged
awalkowiak merged 1 commit intodevelopfrom
bug/OBPIH-6821-retry-PO-id-generation
Nov 20, 2024
Merged

OBPIH-6821 Try next sequence number if generating an order number fails#4948
awalkowiak merged 1 commit intodevelopfrom
bug/OBPIH-6821-retry-PO-id-generation

Conversation

@ewaterman
Copy link
Member

✨ Description of Change

A concise summary of what is being changed. Please provide enough context for reviewers to be able to understand the change and why it is necessary. If the issue/ticket already provides enough information, you can put "See ticket" as the description.

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

Description: See ticket for details, but this PR fixes an issue where an organization's sequence number falls out of sync with the order numbers that we have generated for POs. Essentially the PR adds a retry mechanism where if the id we generate is not unique, check the next 10 sequence numbers if they're available.

@ewaterman ewaterman self-assigned this Nov 19, 2024
@github-actions github-actions bot added type: bug Addresses unintended behaviours of the app domain: backend Changes or discussions relating to the backend server labels Nov 19, 2024
@codecov
Copy link

codecov bot commented Nov 19, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 7.63%. Comparing base (96e3580) to head (87104a6).
Report is 83 commits behind head on develop.

Files with missing lines Patch % Lines
...ehouse/order/PurchaseOrderIdentifierService.groovy 78.57% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             develop   #4948      +/-   ##
============================================
+ Coverage       7.61%   7.63%   +0.01%     
- Complexity       810     818       +8     
============================================
  Files            600     600              
  Lines          42243   42253      +10     
  Branches       10268   10272       +4     
============================================
+ Hits            3216    3224       +8     
  Misses         38564   38564              
- Partials         463     465       +2     

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

@ewaterman
Copy link
Member Author

@awalkowiak feel free to have someone take over this PR if we want to close it before the sprint ends since I'm out for the rest of the week.

@awalkowiak awalkowiak merged commit 445ab99 into develop Nov 20, 2024
@awalkowiak awalkowiak deleted the bug/OBPIH-6821-retry-PO-id-generation branch November 20, 2024 16:36
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: bug Addresses unintended behaviours of the app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants