Skip to content
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

Merged
merged 2 commits into from
Dec 6, 2023

Conversation

alexsilva-CGI
Copy link
Contributor

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:

@alexsilva-CGI alexsilva-CGI marked this pull request as ready for review November 10, 2023 13:40
Copy link
Contributor

@nicoprow nicoprow left a 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,
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

@nicoprow nicoprow left a 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.

@nicoprow nicoprow merged commit 6c9ecc7 into eclipse-tractusx:main Dec 6, 2023
8 checks passed
@nicoprow nicoprow deleted the feat/missing_task_error branch December 6, 2023 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants