Closed zoeyli-46 closed 1 week ago
@andrea-williams , in 1952 the registration purpose and operation are many-to-many; in this ticket it's one-to-many. Thoughts? I've done it as one-to-many in https://github.com/bcgov/cas-registration/pull/1990/files but I think many-to-many might actually make more sense
@andrea-williams , in 1952 the registration purpose and operation are many-to-many; in this ticket it's one-to-many. Thoughts? I've done it as one-to-many in https://github.com/bcgov/cas-registration/pull/1990/files but I think many-to-many might make more sense
@andrea-williams is on vacation! @Sepehr-Sobhani , thoughts?
I reviewed the PR for this ticket and I believe your implementation is correct. With this approach, each operation can have multiple purposes, and we can query all purposes of an operation using the related_name
. Another way to implement this would be to have a ManyToMany field in the RegistrationPurpose
data model, but on the front end, we only allow for one option to choose from. This approach eliminates the need to use TimeStampedModel
for the RegistrationPurpose
data model.
@patriciarussellCAS
Note: 'Register an Operation` a multi-step process, reachable at: https://cas-bciers-frontend-dev.apps.silver.devops.gov.bc.ca/registration/register-an-operation
Review Note:
Description:
As an industry user, given that the operation has been added to my operator, I can register the operation for IRC approval.
Acceptance Criteria:
Given that I am on the Operations grid and clicked Add and Register an Operation, or if I am on the Registration dashboard (or main BCIERS dashboard) and clicked Register an Operation, Then I am brought to the first page of the Register an Operation form: the Operation Information page https://www.figma.com/design/LsDmLDCdnJqI8UahyqvOD8/BCIERS-Designs?node-id=10222-8&t=rBpJCzhxRzIMrjwm-4
Given that I opened the dropdown menu, The options are presented in the following order:
Restrictions User can only pick 1 option
Given that I select the Regulated Operation, Reporting Operation, New Entrant or Opt-in as the registration category Then the page shows the form field for Regulated products
~Given that I select opt in or new entrant, then an extra bubble appears in the stepper as step 4, after facility information~ pulled out into tickets #1906 and #1952
Development Checklist:
[x] Create new enum class
RegistrationCategory
with options: 'Potential Reporting Operation', 'Reporting Operation', 'Regulated Operation', 'Opt-in Operation', 'New Entrant Operation', 'Electricity Import Operation'[x] modify
Operation
model to add a one-to-many relationship between an operation and registration categories (operations can have multiple registration categories, although for usability purposes on the front-end external users will only be able to select one category, the other applicable ones will be automatically applied)[x] re-introduce regulated_products for operations (this work was partially completed during Registration Part 1 and was then commented out; some additional work may still need to be done). There should be a many-to-many relationship between
regulated_product
andoperation
[x] each step of the Registration workflow form should hit a different API endpoint
[ ] Meets the DOD
Definition of Ready (Note: If any of these points are not applicable, mark N/A)
·Definition of Done (Note: If any of these points are not applicable, mark N/A)
Notes:
Dependencies