-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat (Gate) - Added new error for missing task in orchestrator #618
Feat (Gate) - Added new error for missing task in orchestrator #618
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Proposal for a new error type when encountering missing task IDs.
errorRequests.addAll(sharingStatesWithoutTasks.map { sharingState -> | ||
SharingStateService.ErrorRequest( | ||
SharingStateService.SharingStateIdentifierDto(sharingState.externalId, sharingState.businessPartnerType), | ||
BusinessPartnerSharingError.SharingProcessError, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this would be a good opportunity to introduce another Sharing Error Type that is specific to having a missing Task-ID
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a new type named MissingTaskID for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
I will refrain from merging this pull request until we branch of to the next BPDM version increment.
Description
This PR adds a new error message to a sharing state, when a request is done to the orchestrator with the task-id, but no related task is found.
Related issues: #589
Pre-review checks
Please ensure to do as many of the following checks as possible, before asking for committer review: