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

[Backend] Validation of Edit Notification Workflow #844

Closed
ds-mwesener opened this issue Apr 10, 2024 · 4 comments · Fixed by catenax-ng/tx-traceability-foss#1185 or catenax-ng/tx-traceability-foss#1203
Assignees
Labels
backend Backend related issues frontend Frontend related Issues

Comments

@ds-mwesener
Copy link
Contributor

ds-mwesener commented Apr 10, 2024

As ... , a supervisor
I want ... , to have a working edit notification workflow
so that ... . I can use it for editing notifications.

Specification

https://confluence.catena-x.net/pages/viewpage.action?pageId=69429778

Relates to

#622

Hints / Details

  • Within Create Edit Notification View #622 we did not implement business validation because story was already to high estimated.
  • Question to be clarified:
    • Is it allowed to remove all parts for investigations?
      • see specification (atleast one)
    • Is it allowed to remove all parts for alerts?
      • see specification (atleast one)
    • As the BPN is an optional field an alert will fail it not provided because we cannot retrieve a valid bpn for a receiver, how to handle this?
      • Suggestion by dev: Investigation (BPN = mandatory), Alert (BPN = mandatory)
  • check if FE validation is aligned

Acceptance Criteria

  • Implementation done related to decision

Out of Scope

  • ...
@github-project-automation github-project-automation bot moved this to inbox in Trace-X Apr 10, 2024
@ds-mwesener ds-mwesener changed the title Validation of Edit Notification Workflow Backend: Validation of Edit Notification Workflow Apr 10, 2024
@ds-mwesener ds-mwesener added the backend Backend related issues label Apr 10, 2024
@ds-mmaul ds-mmaul added the frontend Frontend related Issues label Apr 16, 2024
@ds-mmaul ds-mmaul moved this from inbox to backlog in Trace-X Apr 16, 2024
@ds-mwesener ds-mwesener moved this from backlog to next in Trace-X Apr 16, 2024
@ds-mwesener ds-mwesener changed the title Backend: Validation of Edit Notification Workflow [Backend] Validation of Edit Notification Workflow Apr 16, 2024
@ds-mwesener ds-mwesener self-assigned this Apr 16, 2024
@ds-mwesener ds-mwesener moved this from next to wip in Trace-X Apr 16, 2024
@ds-mwesener
Copy link
Contributor Author

Backend throws now a bad request if the affectedParts or bpn is missing from the create and edit notification request.
The frontend does not allow to create or edit the notification if those values are missing.

@RazvanZmau RazvanZmau moved this from wip to test in Trace-X Apr 19, 2024
@ds-mwesener ds-mwesener removed their assignment Apr 19, 2024
@ds-crehm
Copy link
Contributor

Removing / adding parts in "edit notification" does not work for investigations.

BPN validation does not work properly when creating:
grafik
It doesn't work properly when updating either:
grafik

The error message should be in English. And the order of the sentences should be consistent.

@ds-crehm ds-crehm reopened this Apr 24, 2024
@ds-crehm ds-crehm moved this from test to wip in Trace-X Apr 24, 2024
@ds-mwesener
Copy link
Contributor Author

ds-mwesener commented Apr 24, 2024

Message will be translated. 👍
If bpn is missing only the message about the missing attribute is shown. 👍
If the bpn is existing and wrong formatted only the error regarding the wrong format will be displayed 👍
No assets attached will lead to a bad request and not 500. 👍
Pagination changes does not trigger a reload of the assets and will stuck in loading screen. 👍

@ds-crehm
Copy link
Contributor

Error message is a lot better now. It can now be differentiated between having a missing or invalid BPN:
grafik
grafik
All other issues have been fixed.
Ready for review.

@ds-crehm ds-crehm reopened this Apr 25, 2024
@ds-crehm ds-crehm assigned ds-crehm and jzbmw and unassigned ds-crehm Apr 25, 2024
@ds-crehm ds-crehm moved this from test to review in Trace-X Apr 25, 2024
@ds-mwesener ds-mwesener mentioned this issue Apr 25, 2024
2 tasks
@jzbmw jzbmw closed this as completed Apr 30, 2024
@jzbmw jzbmw moved this from review to done in Trace-X Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend related issues frontend Frontend related Issues
Projects
Status: done
4 participants