-
Notifications
You must be signed in to change notification settings - Fork 23
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
Certificate Management - enhance db attributes and API details #574
Labels
Sub-task
A small piece of work that's part of a larger task.
Milestone
Comments
Refinement still ongoing, but implementation started in parallel (local - no PR planned for now) |
Phil91
added a commit
to catenax-ng/tx-portal-backend
that referenced
this issue
Jun 24, 2024
@AnuragNagpure can you please adjust the validation for the sites to only allow BPNS numbers. Test Examples Success"BPNS0003726HZL98" Failing"BPNL0003726HZL98" |
6 tasks
ntruchsess
pushed a commit
to catenax-ng/tx-portal-backend
that referenced
this issue
Jul 16, 2024
6 tasks
|
ntruchsess
pushed a commit
that referenced
this issue
Jul 19, 2024
…details (#823) * additional attributes added * migration files with updated attributes added * implementation of additional added fields in company certificate table with changes in respective endpoints is done * tests: adjust unit tests for companyCertificates * Changes for BPNS implementation with updated test cases added * update version for framework.model Refs: #574 --------- Co-authored-by: Phil Schneider <[email protected]> Co-authored-by: Norbert Truchsess <[email protected]>
Phil91
pushed a commit
that referenced
this issue
Jul 30, 2024
…details (#823) * additional attributes added * migration files with updated attributes added * implementation of additional added fields in company certificate table with changes in respective endpoints is done * tests: adjust unit tests for companyCertificates * Changes for BPNS implementation with updated test cases added * update version for framework.model Refs: #574 --------- Co-authored-by: Phil Schneider <[email protected]> Co-authored-by: Norbert Truchsess <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TASK 1
Description:
As part of the backend change for the certificate function, the following new attributes need to be added to the
companies_certificate
table inside the portal database.external_certificate_number
?
: This attribute will store the external certificate number associated with the certificate.sites``?
: This attribute will store the list of sites where the certificate is applicable. (multi value field) // due to the need to have multiple values added, we need to create a new table (mapping table to store those data it cant be directly located insidecompanies_certificate
- details see below (sites are defined by BPN* - business partner number)validFrom``?
: This attribute will store the date from which the certificate is valid.validTill``?
: This attribute will store the date until which the certificate is valid.issuer``?
: This attribute will store the name of the certificate issuer; this is usually a company name such as "Deloitte", "Accenture", "ADAC", etc.validator``?
: This attribute will store the name of the validator who verified the certificate. The validator is given by the company ID. For the current moment this field will stay empty. No user input or backend logic to be implemented-trustlevel``?
: This attribute will store the trust level of the certificate.Note - all fields which have a
?
added are nullablecompanies_certificate
table in the portal database to include the new attributes.companies_certificate_assigned_sites
table; FKcompanies_certificate.id
and a new attributesite
companies_certificate.id
can be multiple times included insidecompanies_certificate_assigned_sites
but always with anothersite
attributeAcceptance Criteria:
companies_certificate
table should have the new attributes:external_certificate_number
,validFrom
,validUntil
,issuer
,trustlevel
, andvalidator
.companies_certificate_assigned_sites
created and linked to the existing tablecompanies_certificate
TASK 2
Description: enhance GET and POST endpoints with those new attributes
/certificates
to accept the new attributes in the request payload and store them in the database.external_certificate_number
?
sites``?
validFrom``?
validTill``?
issuer``?
-validator``?
-trustlevel``?
/certificates
to include the new attributes in the response payload.external_certificate_number
?
sites``?
validFrom``?
validTill``?
issuer``?
validator``?
-trustlevel``?
Acceptance Criteria:
/certificates
should accept the new attributes and store them in the database./certificates
should include the new attributes in the response payload.Endpoint:
POST /api/administration/companydata/companyCertificate
enhance the request body by adding the optional new fields:
external_certificate_number
- any number between 0 and 36 digits; optionalsites
- BPNS numbers; optional. If submitted validate if BPNS belongs to the BPNL of the submittor by using the bpdm supported endpoint of hirarchy (same as used adding bpn numbers to a user)validFrom
- date can not be in futurevalidUntil
- date can not be in the pastissuer
- issuer authority at the moment to be implemented as free text field of a company name such as "Deloitte", "Accenture", "ADAC", etc. - @jjeroch-trustlevel
- always empty-validator
- always emptyEndpoint:
GET /api/administration/companydata/companyCertificate
enhance the response body by adding the new fields:
external_certificate_number
sites
validFrom
validUntil
issuer
-trustlevel
validator
The text was updated successfully, but these errors were encountered: