eclipse-tractusx / sig-release

https://eclipse-tractusx.github.io/sig-release
Apache License 2.0
7 stars 7 forks source link

Offer Change Process - Offer Deletion Flow #328

Open jjeroch opened 8 months ago

jjeroch commented 8 months ago

Description: This issue outlines the development of a new flow for deleting offers within portal-marketplaces. The Offer Deletion Flow will allow offer providers to remove offers that are no longer valid or needed. This functionality must be implemented with careful consideration to prevent accidental deletions and to maintain data integrity.

Objectives:

Pre-requisites:

Tasks:

  1. Backend Development:

    • Create an API endpoint for offer deletion (DELETE /api/offers/{offerId}).
    • Implement logic to check user permissions and offer status before deletion.
    • Ensure cascading updates/deletions are handled for related entities (e.g., offers linked to promotions).
  2. Frontend Development:

    • Design and implement a 'Delete' button in the offer management interface.
    • Add a confirmation dialog to prevent accidental deletions.
    • Connect the frontend with the backend deletion API.
  3. Database Updates:

    • Update database triggers or stored procedures if necessary to handle the deletion process.

Acceptance Criteria:

Test Scenarios:

  1. Delete an offer with no active transactions and verify it is removed from the system.
  2. Attempt to delete an offer with active transactions and ensure the process is blocked.
  3. Verify that users without deletion permissions cannot remove offers.
  4. Confirm that all related data is either updated or deleted as appropriate.
  5. Check that the system logs the deletion event with sufficient details for auditing.

Dependencies:

Notes:

Tags: [Backend], [Frontend], [Database], [Permissions], [Deletion]

stephanbcbauer commented 2 months ago

Was presented in the open planning ⇾ developing is done by portal, committer are defined

stephanbcbauer commented 1 month ago

Hello @jjeroch , @jjeroch

Since the feature is a 24.08 feature and the development phase is coming to an end, we need a status on the feature.

If you need any clarification, please get in touch, thank you very much. Stephan

jjeroch commented 2 weeks ago

Back to backlog. No commitment for delivery Removed the milestone