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

bug: 1082 use entity manager instead of repositories to fix duplicate… #1181

Merged
merged 3 commits into from
Jul 8, 2024

Conversation

ds-lcapellino
Copy link
Contributor

@ds-lcapellino ds-lcapellino commented Jul 8, 2024

… key errors

Description

Pre-review checks

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

resolves #1082

Copy link
Contributor

github-actions bot commented Jul 8, 2024

Integration Test Results

350 tests   349 ✅  1m 45s ⏱️
 41 suites    1 💤
 41 files      0 ❌

Results for commit c6c22bc.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Jul 8, 2024

Unit Test Results

208 tests   208 ✅  20s ⏱️
 55 suites    0 💤
 55 files      0 ❌

Results for commit c6c22bc.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Jul 8, 2024

✅ No Dependency Check findings were found

@ds-lcapellino ds-lcapellino force-pushed the bug/#1082-fix-duplicate-key-error-for-assets-sync branch 2 times, most recently from e6229cd to 6920aed Compare July 8, 2024 09:30
@ds-lcapellino ds-lcapellino force-pushed the bug/#1082-fix-duplicate-key-error-for-assets-sync branch from dd4c29c to c6c22bc Compare July 8, 2024 10:55
try {
repository.save(asset);
} catch (DataIntegrityViolationException ex) {
//retry save in case of ERROR: duplicate key value violates unique constraint "asset_pkey"
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add proper info message what happened here.

Copy link
Contributor

@ds-mwesener ds-mwesener 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-mwesener ds-mwesener merged commit 1114630 into main Jul 8, 2024
17 checks passed
@ds-mwesener ds-mwesener deleted the bug/#1082-fix-duplicate-key-error-for-assets-sync branch July 8, 2024 11:59
Copy link

sonarqubecloud bot commented Jul 8, 2024

Copy link

sonarqubecloud bot commented Jul 8, 2024

Quality Gate Passed Quality Gate passed for 'eclipse-tractusx_traceability-foss-frontend'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

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.

Parts not updated after resync via IRS
2 participants