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

Publishing Assets in frontend #535

Closed
8 tasks done
ds-jleyh opened this issue Dec 22, 2023 · 4 comments · Fixed by catenax-ng/tx-traceability-foss#940 or catenax-ng/tx-traceability-foss#944
Closed
8 tasks done
Assignees
Labels
data_ingest Issues regarding the Feature of data ingest frontend Frontend related Issues pip12 Issues which are plannen in the PIP 12 event

Comments

@ds-jleyh
Copy link
Contributor

ds-jleyh commented Dec 22, 2023

As an admin
I want to be able to publish assets
so that I can import them into the Trace-X app

Link

Hints / Details

Acceptance Criteria

  • Once one assetasbuilt or asplanned is selected, a button will be displayed for publishing assets
  • Button can only be clicked as admin (otherwise greyed out with hover and tooltip)
  • Click on button opens a view and takes as input all selected assets
  • On view opening the get policies api is called and delivers values for dropdown
  • The selected assetIds will be displayed in a list
  • One dropdown is displayed which provides a list of policies (single select) (Mandatory)
  • Click on submit requests the backend api for publishing assets
  • Only assets not in status PERSISTENT are able to be published

Out of Scope

  • ...
@ds-jleyh ds-jleyh added the frontend Frontend related Issues label Dec 22, 2023
@github-project-automation github-project-automation bot moved this to inbox in Trace-X Dec 22, 2023
@ds-jleyh
Copy link
Contributor Author

ds-jleyh commented Dec 22, 2023

⛔ is blocked by #534
⛔ blocks #536

@jzbmw jzbmw added the data_ingest Issues regarding the Feature of data ingest label Jan 9, 2024
@jzbmw jzbmw changed the title [FE][DATA_PROVISIONING] Publishing Assets in frontend Publishing Assets in frontend Jan 9, 2024
@ds-mwesener ds-mwesener added the BLOCKED Issues are blocked by other issues label Jan 16, 2024
@ds-mwesener ds-mwesener moved this from inbox to backlog in Trace-X Jan 16, 2024
@jzbmw jzbmw added the pip12 Issues which are plannen in the PIP 12 event label Jan 17, 2024
@ds-mwesener ds-mwesener removed the BLOCKED Issues are blocked by other issues label Jan 23, 2024
@jzbmw jzbmw moved this from backlog to next in Trace-X Jan 23, 2024
@ds-mwesener ds-mwesener moved this from next to wip in Trace-X Jan 24, 2024
ds-mmaul added a commit that referenced this issue Jan 29, 2024
@ds-mmaul ds-mmaul moved this from wip to review in Trace-X Jan 29, 2024
@ds-mmaul
Copy link
Contributor

Ready for review with catenax-ng#944

@ds-mwesener
Copy link
Contributor

Code reviewed. @ds-alexander-bulgakov please test.

@ds-mwesener ds-mwesener removed their assignment Jan 31, 2024
ds-mwesener pushed a commit that referenced this issue Jan 31, 2024
ds-mwesener pushed a commit that referenced this issue Jan 31, 2024
ds-mwesener pushed a commit that referenced this issue Jan 31, 2024
ds-mwesener pushed a commit that referenced this issue Jan 31, 2024
ds-mwesener pushed a commit that referenced this issue Jan 31, 2024
@ds-alexander-bulgakov
Copy link
Contributor

No issues could be found during QA-review on e2e-a, text was checked either in english and german. See AC overview:

  • Once one assetasbuilt or asplanned is selected, a button will be displayed for publishing assets -> DONE
  • Button can only be clicked as admin (otherwise greyed out with hover and tooltip) -> DONE
  • Click on button opens a view and takes as input all selected assets -> DONE
  • On view opening the get policies api is called and delivers values for dropdown -> DONE
  • The selected assetIds will be displayed in a list -> DONE
    • Manufacturer-Name and id of selected assets are available in "Assets selected" table.
  • One dropdown is displayed which provides a list of policies (single select) (Mandatory) -> DONE
    • publish only available after selection of policy
  • Click on submit requests the backend api for publishing assets -> DONE
    • Request-Body for POST https://traceability-e2e-a.dev.demo.catena-x.net/api/assets/publish:
      { "assetIds": [ "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa02", "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa03", ... ], "policyId": "db33c1bd-6ec2-475f-ae5e-088bbf8b073e" }
    • Popup after publishing appears, see german version: "Anfrage zur Veröffentlichung der Produkte war erfolgreich"
  • Only assets not in status PERSISTENT are able to be published -> DONE
    • "Publish" button is grayed out if at least one selected asset is not in status TRANSIENT. Tooltip text for mouseover: "One or more selected parts are not in the required import state "TRANSIENT"
  • Status of published assets is changed to "IN SYNCHRONISATION".

Ticket is ready for PO-review, FYI @jzbmw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data_ingest Issues regarding the Feature of data ingest frontend Frontend related Issues pip12 Issues which are plannen in the PIP 12 event
Projects
Status: done
5 participants