Closed jjeroch closed 4 months ago
@AnuragNagpure note that I enhanced the new attribute value details ++ the info that the seeding data will also need to get updated.
@AnuragNagpure
remove FrameworkAgreement... from Policies Add one FrameworkAgreement policy
assign all useCases to the framework policy add for all previous existing frameworks an attribute with the value after FrameworkAgreement. and add the version example: FrameworkAgreement.behavioraltwin = behavioraltwin:1.0
for traceability there need to be the versions 1.0, 1.1 & 1.2 that means 3 entries in the attribute table create a new table policy_attribute_assigned_use_cases with a link from policy_attribute to use_case (relation between the tables is many to many) to create the table a new migration is needed. please add seeding for this new table
/cc @jjeroch
Summary
Update policy hub seeding data to the latest and greatest policy definition. Following changes are needed
Details
The policy namespaces (leftOperand and rightOperand values) got recently updated and need to get adjusted for the policy hub
Membership this new structure has a direct impact on the following endpoints
GET /api/policy-hub/policy-content
POST /api/policy-hub/policy-content
Dismantler this new structure has a direct impact on the following endpoints
GET /api/policy-hub/policy-content
POST /api/policy-hub/policy-content
Dismantler with Brand this new structure has a direct impact on the following endpoints
GET /api/policy-hub/policy-content
POST /api/policy-hub/policy-content
Framework Credential this new structure has a direct impact on the following endpoints
GET /api/policy-hub/policy-content
POST /api/policy-hub/policy-content
*note; the sub-type is the UseCase such as "traceability", "pcf", etc.
Purpose this new structure has a direct impact on the following endpoints
GET /api/policy-hub/policy-content
POST /api/policy-hub/policy-content
Result of the policy with the specific data
Framework - example traceability
NEW Policy Attribute(s)
for the frameworkAgreement we need to add the following sub-types
CircularEconomy => technicalKey: FrameworkAgreement => value: circulareconomy => version: 1.0
DemandCapacity => technicalKey: FrameworkAgreement => value: demandcapacity => version: 1.0
Puris => version "1.0" => technicalKey: FrameworkAgreement => value: puris => version: 1.0
BusinessPartner => version "1.0" => technicalKey: FrameworkAgreement => value: businesspartner => version: 1.0
TO BE REMOVED Policy Attribute(s)
following policies need to get removed