-
Notifications
You must be signed in to change notification settings - Fork 22
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 #276 from catenax-ng/feature/update-commit-message…
…-pattern Megre from catena-x
- Loading branch information
Showing
39 changed files
with
1,029 additions
and
207 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: "Check if CHANGELOG file was modified in PR" | ||
|
||
on: | ||
pull_request: | ||
branches: main | ||
paths-ignore: | ||
- '**/*.md' | ||
- '**/*.txt' | ||
- '.config/**' | ||
- '.github/**' | ||
- 'docs/**' | ||
- 'local/**' | ||
|
||
jobs: | ||
analyze: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
|
||
name: changelog-check | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Check if CHANGELOG file was changed | ||
id: changelog-changed | ||
uses: tj-actions/changed-files@v40 | ||
Check warning on line 26 in .github/workflows/changelog-changes.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
|
||
with: | ||
files: | | ||
CHANGELOG.md | ||
- name: Echo result if CHANGELOG file was changed | ||
if: steps.changelog-changed.outputs.any_changed == 'true' | ||
run: | | ||
for file in ${{ steps.changelog-changed.outputs.all_changed_files }}; do | ||
echo "$file was changed" | ||
done | ||
- name: Find previous comment in PR | ||
if: steps.changelog-changed.outputs.any_changed == 'false' | ||
uses: peter-evans/find-comment@v2 | ||
id: find-comment | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
comment-author: 'github-actions[bot]' | ||
body-includes: CHANGELOG file was not updated! Make sure to include important changes. | ||
|
||
- name: Create or update comment in PR | ||
if: steps.changelog-changed.outputs.any_changed == 'false' | ||
uses: peter-evans/create-or-update-comment@v3 | ||
Check warning on line 49 in .github/workflows/changelog-changes.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
|
||
with: | ||
comment-id: ${{ steps.find-comment.outputs.comment-id }} | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
CHANGELOG file was not updated! Make sure to include important changes. | ||
edit-mode: replace |
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
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
66 changes: 66 additions & 0 deletions
66
docs/src/docs/arc42/runtime-view/ess-top-down/ess-top-down-scenario-1.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,66 @@ | ||
= Scenario 1: Register an Ess-Investigation-Order | ||
|
||
This section describes what happens when user creates an ess order. | ||
|
||
== Register an Ess-Investigation-Order | ||
|
||
[plantuml,target=submodel-processing,format=svg] | ||
.... | ||
include::../../../../uml-diagrams/runtime-view/use-case-ess-top-down/3_ess_top_down_sequence-RegisterEssInvestigationOrder.puml[] | ||
.... | ||
|
||
|=== | ||
| Step | Actor | Action | Details | ||
|
||
| [000] | ||
| Client | ||
| Sends a POST request to `/ess/bpn/investigation/orders` | ||
| Includes JSON payload with parameters like "bomLifecycle," "batchSize," "callbackUrl," "incidentBPNSs," "keys," and "timeout." | ||
|
||
| [001] | ||
| IRS | ||
| Initiates initial order processing | ||
| Begins asynchronous processing of ESS process for "incidentBPNSs" and tuples of "globalAssetId" and "BPN." | ||
|
||
| [002] | ||
| IRS | ||
| Registers callback | ||
| Establishes a callback mechanism with the provided callback URL. | ||
|
||
| [003] | ||
| Client | ||
| Receives 201 success response | ||
| Indicates successful registration of the order. | ||
|
||
| [004] | ||
| Client | ||
| Sends a GET request to `/irs/orders/{orderId}` | ||
| Requests information for a specific orderId. | ||
|
||
| [005] | ||
| IRS | ||
| Processes GET request | ||
| Initiates processing of the requested orderId. | ||
|
||
| [006] | ||
| IRS | ||
| Sends a 200 response with order payload | ||
| Returns the details of the processed order. | ||
|
||
| [007] | ||
| Client | ||
| Optionally initiates batch completion | ||
| Completes the batch processing if required. | ||
|
||
| [008] | ||
| Client | ||
| Sends a POST request to `/irs/orders/{orderId}/batches/'{batchId}'` | ||
| Initiates batch processing for a specific orderId and batchId. | ||
|
||
| [009] | ||
| IRS | ||
| Sends BatchShell with jobs | ||
| Returns details of the batch with associated jobs. | ||
|
||
|=== | ||
|
106 changes: 106 additions & 0 deletions
106
docs/src/docs/arc42/runtime-view/ess-top-down/ess-top-down-scenario-2.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,106 @@ | ||
= Scenario 1: Register an Ess-Investigation-Job | ||
|
||
This section describes what happens when user creates an ess job. | ||
|
||
== Register an Ess-Investigation Job | ||
|
||
[plantuml,target=submodel-processing,format=svg] | ||
.... | ||
include::../../../../uml-diagrams/runtime-view/use-case-ess-top-down/4_ess_top_down_sequence_RegisterEssInvestigationJob.puml[] | ||
.... | ||
|
||
|=== | ||
| Step | Actor | Action | Details | ||
|
||
| [000] | ||
| Requestor | ||
| Sends a POST request to `/ess/bpn/investigations` | ||
| Includes JSON payload with parameters such as "bomLifecycle," "callbackUrl," "incidentBpns," and "key" containing "bpn" and "globalAssetId." | ||
|
||
| [001] | ||
| IRS | ||
| Registers an IRS ess incident job | ||
| Initiates the registration of an IRS ess incident job based on the received request. | ||
|
||
| [002] | ||
| IRS, DiscoveryFinder, EDCDiscoveryService, EDC, dDTR | ||
| Look up shells for the given globalAssetId | ||
| Conducts a lookup and retrieves AAS (Asset Administration Shell) for the specified globalAssetId. | ||
|
||
| [003] | ||
| IRS -> SubmodelServer | ||
| Sends a GET request for SingleLevelBomAsPlanned | ||
| Initiates a request to the SubmodelServer for the SingleLevelBomAsPlanned. | ||
|
||
| [004] | ||
| SubmodelServer -> IRS | ||
| Receives SingleLevelBomAsPlanned | ||
| Sends back the SingleLevelBomAsPlanned data to the IRS. | ||
|
||
| [005] | ||
| IRS | ||
| Extracts childCXIds from SingleLevelBomAsPlanned | ||
| Processes and extracts childCXIds from the received SingleLevelBomAsPlanned. | ||
|
||
| [006] | ||
| Loop (for each childCXId) | ||
| IRS, DiscoveryFinder, EDCDiscoveryService | ||
| Get EDC endpoint for Tier1, Retrieves the EDC endpoint for Tier1 based on the childCXId. | ||
|
||
| [007] | ||
| IRS, EDCTier1, dDTRTier1 | ||
| Look up shells for the given globalAssetId | ||
| Conducts a lookup and retrieves AAS for the specified globalAssetId in Tier1. | ||
|
||
| [008] | ||
| IRS -> SubmodelServer | ||
| Sends a request to get PartAsPlanned | ||
| Initiates a request to the SubmodelServer to get PartAsPlanned. | ||
|
||
| [009] | ||
| SubmodelServer <- IRS | ||
| Receives PartAsPlanned | ||
| Gets PartAsPlanned data from the SubmodelServer. | ||
|
||
| [010] | ||
| IRS | ||
| Validity Check on PartAsPlanned validityPeriod | ||
| Checks the validity period of PartAsPlanned. | ||
|
||
| [011] | ||
| IRS -> SubmodelServer | ||
| Sends a GET request for PartSiteInformationAsPlanned | ||
| Requests PartSiteInformationAsPlanned from the SubmodelServer. | ||
|
||
| [012] | ||
| IRS -> IRS | ||
| Extracts catenaXsiteId from PartSiteInformationAsPlanned | ||
| Processes and extracts catenaXsiteId from PartSiteInformationAsPlanned. | ||
|
||
| [013] | ||
| IRS | ||
| Matches "incidentBpns" and catenaXsiteId | ||
| Checks for a match between "incidentBpns" and catenaXsiteId. | ||
|
||
| [014] | ||
| IRS | ||
| Detects the supplyChainImpacted on the first tier level | ||
| Identifies the supply chain impacted on the first tier level and provides information. | ||
|
||
| [015] | ||
| Requestor <- IRS | ||
| Responds part-chain infected | ||
| Receives the response indicating the part-chain infection. | ||
|
||
| [016] | ||
| IRS | ||
| Continues the loop | ||
| Continues the loop for the remaining childCXIds. | ||
|
||
| [017] | ||
| Loop (end) | ||
| IRS | ||
| Loop completion | ||
| Completes the loop for all childCXIds. | ||
|
||
|=== |
Oops, something went wrong.