Open marcellmueller opened 3 weeks ago
Blocking
label is added for PO checking other mentioned tickets, not development work
I believe this is blocking #2094 but please correct me if I'm wrong.
I believe this is blocking #2094 but please correct me if I'm wrong.
It doesn't block development, but it does block manual testing of 2094. Everything's a new entrant until 2094 is in
Note that there's a bug (https://github.com/orgs/bcgov/projects/122/views/2?filterQuery=facility&pane=issue&itemId=79778537) that prevents continuing past the facilities page for LFOs.
Describe the task
The Operation Registration form is meant to conditionally show form pages such as the
New Entrant Operation
andOpted-in Operation
based on what the user selects for theRegistration Purpose
question. We have logic for this partially implemented inOperationRegistrationPage.tsx
, however even though a user can only select one they can be assigned multiple options in the backend based on this criteria:Acceptance Criteria
purpose
Registration purpose
in the case that there are multiple purposes. An array with all of the purposes or the one that they selected/is relevant to displaying the extra form pages (New Entrant/Opted-in)? @Sepehr-Sobhani might have some thoughts on this :) (Sep: I think we can have a resolver to send what we are actually looking for by calling all registration purposes on the operation and returns'Opted-in Operation'
ifOPTED_IN_OPERATION
is one of those purposes and'New Entrant Operation'
ifNEW_ENTRANT_OPERATION
is one and ...~ There can only be 1 registration purpose selected in the UI. The case of having multiple reporting purposes only applies to the backend => Sep: This is correct if we don't want to fetch the purpose from the backend.OperationOut
Django Ninja schemaOperationRegistrationPage.tsx
tests