forked from eclipse-tractusx/traceability-foss
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #982 from catenax-ng/feature/416-get-report-data-f…
…rom-import Feature/416 get report data from import
- Loading branch information
Showing
34 changed files
with
1,844 additions
and
894 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
docs/src/docs/arc42/runtime-view/data-provisioning/return-import-report.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
= Scenario 1: Receive import report | ||
|
||
This section describes what happens when the user wants to get a report of the imported assets associated to a importJobId. | ||
In this example, the user requests an import report. | ||
|
||
[plantuml,target=import-report-receive,format=svg] | ||
.... | ||
include::../../../../uml-diagrams/arc42/runtime-view/data-provisioning/import-report-receive.puml[] | ||
.... | ||
|
||
==== Overview | ||
|
||
When a user requests an import report, TraceX-FOSS checks if the user has an adequate role ('ROLE_ADMIN', 'ROLE_SUPERVISOR'). | ||
If yes, then the endpoint returns an import report to the given importJobId. | ||
|
||
If the importJobId is not known to Trace-X, an HTTP 404 error is returned. |
39 changes: 39 additions & 0 deletions
39
docs/src/uml-diagrams/arc42/runtime-view/data-provisioning/import-report-receive.puml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@startuml | ||
skinparam monochrome true | ||
skinparam shadowing false | ||
autonumber "<b>[000]" | ||
|
||
actor TraceXApiConsumer | ||
activate TraceXApiConsumer | ||
|
||
box "Trace-X FOSS" #LightGrey | ||
participant TraceXAPI | ||
activate TraceXAPI | ||
participant ImportController | ||
activate ImportController | ||
participant ImportService | ||
activate ImportService | ||
participant ImportJobRepository | ||
activate ImportJobRepository | ||
participant JpaImportJobRepository | ||
activate JpaImportJobRepository | ||
database TracexDatabase | ||
|
||
TraceXApiConsumer -> TraceXAPI : GET /assets/import/report/{importJobId} | ||
TraceXAPI -> ImportController : getImportReport | ||
ImportController -> ImportService : getImportJob(importJobId) | ||
ImportService -> ImportJobRepository: getImportJob(importJobId) | ||
ImportJobRepository -> JpaImportJobRepository: getReferenceById(importJobId) | ||
JpaImportJobRepository -> TracexDatabase : find import job with associated assets | ||
|
||
JpaImportJobRepository <-- TracexDatabase | ||
ImportJobRepository <-- JpaImportJobRepository | ||
ImportService <-- ImportJobRepository | ||
ImportController <-- ImportService | ||
TraceXAPI <-- ImportController | ||
TraceXApiConsumer <-- TraceXAPI : map ImportJob to ImportReportResponse | ||
|
||
|
||
|
||
|
||
@enduml |
Oops, something went wrong.