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

API: DELETE Company Certificates #467

Closed
Tracked by #326
jjeroch opened this issue Jan 30, 2024 · 0 comments
Closed
Tracked by #326

API: DELETE Company Certificates #467

jjeroch opened this issue Jan 30, 2024 · 0 comments
Assignees
Labels
Sub-task A small piece of work that's part of a larger task.

Comments

@jjeroch
Copy link
Contributor

jjeroch commented Jan 30, 2024

Summary

DELETE Company Certificate

the implementation of this ticket depends on #471

 

Detail

Suggested API Endpoint: DELETE /api/administration/companydata/companyCertificate/document/{documentId}

 

When running the endpoint - first validate if the certificate is assigned to the same company_id as the acting user company_id

  • if yes, proceed (see below)
  • if no; stop and exception/error

Set the respective document inside the table portal.documents to "INACTIVE" and update the "last_date_changed" date as well as the "last_editor_id"

Afterwards set inside the table portal.company_certificates.status to "INACTIVE" 

 

....make sure that the documents can not get deleted via the following endpoint: /api/administration/Documents/{documentId} 

 

Validation:

  • Acting user must have the role „delete_certificates“ assigned

 

Related Tickets


DB Changes to enable the feature: #471

FrontEnd-Implementation Ticket: CPLP-3663

Backend API Development CPLP-3655, CPLP-3656, CPLP-3657


Components: N/A
Sprints: PI 12 - S1 - CPLP
Fix Versions: N/A
StoryPoints: N/A
Attachments: CPLP-3658-image-2023-12-27-13-15-51-660.png, CPLP-3658-image-2023-12-27-13-37-47-123.png

@jjeroch jjeroch added Back-End Sub-task A small piece of work that's part of a larger task. labels Jan 30, 2024
@jjeroch jjeroch added this to the Version CX Release 24.03 milestone Jan 30, 2024
@jjeroch jjeroch changed the title API: DELETE Company Certificates (ext: CPLP-3658) API: DELETE Company Certificates Jan 30, 2024
@jjeroch jjeroch removed the Back-End label Jan 30, 2024
@jjeroch jjeroch added this to Portal Jan 30, 2024
@jjeroch jjeroch moved this from NEW USER REQUEST to BACKLOG in Portal Jan 30, 2024
@github-project-automation github-project-automation bot moved this to NEW USER REQUEST in Portal Jan 30, 2024
@AnuragNagpure AnuragNagpure self-assigned this Feb 21, 2024
@AnuragNagpure AnuragNagpure moved this from BACKLOG to IN PROGRESS in Portal Feb 22, 2024
Phil91 added a commit to catenax-ng/tx-portal-backend that referenced this issue Mar 1, 2024
Phil91 added a commit to catenax-ng/tx-portal-backend that referenced this issue Mar 1, 2024
Phil91 added a commit that referenced this issue Mar 1, 2024
Refs: #467
Reviewed-by: Phil Schneider <[email protected]>
Co-authored-by: Phil Schneider <[email protected]>
@AnuragNagpure AnuragNagpure moved this from IN PROGRESS to IN REVIEW in Portal Mar 4, 2024
@jjeroch jjeroch removed the status in Portal Mar 31, 2024
@jjeroch jjeroch moved this to USER READY in Portal Mar 31, 2024
@msinamci msinamci closed this as completed Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sub-task A small piece of work that's part of a larger task.
Projects
Archived in project
Development

No branches or pull requests

3 participants