-
Notifications
You must be signed in to change notification settings - Fork 23
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
chore(contracts):1105 provided tables for all types of contracts to save th… #1191
Conversation
✅ No Dependency Check findings were found |
Integration Test Results347 tests 346 ✅ 1m 52s ⏱️ Results for commit bc9e917. ♻️ This comment has been updated with latest results. |
Unit Test Results209 tests 209 ✅ 21s ⏱️ Results for commit bc9e917. ♻️ This comment has been updated with latest results. |
@Setter | ||
@NoArgsConstructor | ||
@Entity | ||
@SuperBuilder |
Check notice
Code scanning / CodeQL
Use of default toString() Note
Default toString(): AssetAsBuiltEntity inherits toString() from Object, and so is not suitable for printing.
@Setter | ||
@NoArgsConstructor | ||
@Entity | ||
@SuperBuilder |
Check notice
Code scanning / CodeQL
Use of default toString() Note
...se/tractusx/traceability/integration/assets/infrastructure/base/IrsCallbackControllerIT.java
Fixed
Show fixed
Hide fixed
…rsistent # Conflicts: # CHANGELOG.md
…persistent' into feature/1105-contractagreement-persistent
|
||
private final JpaContractAgreementNotificationRepository contractAgreementRepository; | ||
|
||
public ContractNotificationRepositoryImpl(EdcContractAgreementService edcContractAgreementService, ObjectMapper objectMapper, EdcContractAgreementService edcContractAgreementService1, JpaContractAgreementNotificationRepository contractAgreementRepository) { |
Check notice
Code scanning / CodeQL
Useless parameter Note
|
||
private final JpaContractAgreementViewRepository contractAgreementRepository; | ||
|
||
public ContractViewRepositoryImpl(EdcContractAgreementService edcContractAgreementService, ObjectMapper objectMapper, EdcContractAgreementService edcContractAgreementService1, JpaContractAgreementViewRepository contractAgreementRepository, ObjectMapper objectMapper1) { |
Check notice
Code scanning / CodeQL
Useless parameter Note
|
||
private final JpaContractAgreementViewRepository contractAgreementRepository; | ||
|
||
public ContractViewRepositoryImpl(EdcContractAgreementService edcContractAgreementService, ObjectMapper objectMapper, EdcContractAgreementService edcContractAgreementService1, JpaContractAgreementViewRepository contractAgreementRepository, ObjectMapper objectMapper1) { |
Check notice
Code scanning / CodeQL
Useless parameter Note
repository.save(asset); | ||
} catch (DataIntegrityViolationException ex) { | ||
//retry save in case of ERROR: duplicate key value violates unique constraint "asset_pkey" | ||
log.info("Asset with id {} already exists in the database. The record will be updated instead.", asset.getId()); | ||
enrichAssetBaseByContractAgreements(repository, asset); |
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.
wouldn't this cause the contract to be added twice to the assets? Or is it handled via contract agreement 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.
In case of an exception there will be a rollback correct? Therefore I assumed that this will not be duplicated.
@@ -0,0 +1,28 @@ | |||
package org.eclipse.tractusx.traceability.contracts.domain.service; |
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.
License header
@@ -0,0 +1,28 @@ | |||
package org.eclipse.tractusx.traceability.contracts.domain.service; |
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.
license header
@@ -0,0 +1,28 @@ | |||
package org.eclipse.tractusx.traceability.contracts.domain.service; |
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.
license header
@@ -0,0 +1,31 @@ | |||
package org.eclipse.tractusx.traceability.contracts.domain.service; |
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.
license header
.../traceability/contracts/infrastructure/repository/ContractAgreementAsBuiltSpecification.java
Outdated
Show resolved
Hide resolved
...raceability/contracts/infrastructure/repository/ContractAgreementAsPlannedSpecification.java
Outdated
Show resolved
Hide resolved
...eability/contracts/infrastructure/repository/ContractAgreementNotificationSpecification.java
Outdated
Show resolved
Hide resolved
@@ -1,2 +1,33 @@ | |||
-- Drop the view if it exists | |||
DROP VIEW IF EXISTS contract_agreement_view; | |||
CREATE VIEW contract_agreement_full AS |
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.
Do we need a license header here?
…rsistent # Conflicts: # tx-backend/src/main/java/org/eclipse/tractusx/traceability/common/config/ApplicationStartupConfig.java
…tracts/infrastructure/repository/ContractAgreementAsBuiltSpecification.java Co-authored-by: Lucas Capellino <[email protected]>
Co-authored-by: Lucas Capellino <[email protected]>
Quality Gate passed for 'eclipse-tractusx_traceability-foss-frontend'Issues Measures |
Quality Gate failed for 'Trace-X Root'Failed conditions |
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.
LGTM
…em accordingly.
Description
Pre-review checks
Please ensure to do as many of the following checks as possible, before asking for committer review:
resolves #1105