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

fix(irs-api):[#755] fix job callbacks called multiple times after com… #862

Merged
merged 3 commits into from
Aug 2, 2024

Conversation

ds-jhartmann
Copy link
Contributor

@ds-jhartmann ds-jhartmann commented Aug 1, 2024

…pletion

Description

Pre-review checks

Please ensure to do as many of the following checks as possible, before asking for committer review:

Copy link

github-actions bot commented Aug 1, 2024

Test Results

35 tests   - 1   34 ✅ +17   5m 18s ⏱️ - 1h 37m 46s
 1 suites ±0    0 💤 ± 0 
 1 files   ±0    1 ❌  - 18 

For more details on these failures, see this check.

Results for commit eb6794e. ± Comparison against base commit ee0845a.

This pull request removes 6 and adds 5 tests. Note that renamed tests count towards both.
BomLifecycle 'asPlanned' implementation ‑ End 2 End for BomLifecycle 'asPlanned' Vehicle Model B for MercedesBenz [BPNL00000003AVTH]
BomLifecycle 'asPlanned' implementation ‑ End 2 End for BomLifecycle 'asPlanned' Vehicle Model C for SAP [BPNL00000003AZQP]
IRS support for different aspect models ‑ BomLifecycle 'asBuilt' for testing "Batch"-Model [BPNL00000003B5MJ]
IRS support for different aspect models ‑ BomLifecycle 'asBuilt' for testing "JustInSequencePart-Model [BPNL00000000BJTL]
SingleLevelUsageAsBuilt ‑ End 2 End for OEM-B (MB) [BPN:BPNL00000003AVTH] (SerialPart 3.0.0, SingleLevelBomAsBuilt 3.0.0 , Batch 3.0.0)
SingleLevelUsageAsBuilt ‑ End 2 End for Tier A (ZF) [BPN:BPNL00000003B2OM] (SerialPart 3.0.0, SingleLevelBomAsBuilt 3.0.0 , Batch 3.0.0)
BomLifecycle 'asPlanned' implementation ‑ End 2 End for BomLifecycle 'asPlanned' Vehicle Model B for MercedesBenz [BPNL00000003AYRE]
BomLifecycle 'asPlanned' implementation ‑ End 2 End for BomLifecycle 'asPlanned' Vehicle Model C for SAP [BPNL00000003AYRE]
IRS support for different aspect models ‑ BomLifecycle 'asBuilt' for testing "Batch"-Model [BPNL00000003AYRE]
IRS support for different aspect models ‑ BomLifecycle 'asBuilt' for testing "JustInSequencePart-Model [BPNL00000003AYRE]
SingleLevelUsageAsBuilt ‑ End 2 End for Tier A (ZF) [BPN:BPNL00000003AYRE] (SerialPart 3.0.0, SingleLevelBomAsBuilt 3.0.0 , Batch 3.0.0)

Copy link

sonarcloud bot commented Aug 1, 2024

Copy link
Contributor

@dsmf dsmf left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +86 to 89
if (!urlValidator.isValid(callbackUri.toString())) {
log.warn(INVALID_CALLBACK_URL, callbackUri);
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this also checked when creating a job? And if so, is the double check necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The callback URL is only validated for right protocol at job creation.
Perhaps it would make more sense to validate the URL at job creation instead of when the callback is executed but that goes beyond the scope of this bug

Copy link
Contributor

@ds-lcapellino ds-lcapellino left a comment

Choose a reason for hiding this comment

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

LGTM

@ds-jhartmann ds-jhartmann merged commit 513bc56 into main Aug 2, 2024
17 checks passed
@ds-jhartmann ds-jhartmann deleted the fix/755-duplicate-callbacks branch August 2, 2024 07:30
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