Closed BCerki closed 1 month ago
Thanks @shon-button I assume I need to recreate this using a different user than bc-cas-dev? This is what I get on the add operator page:
Thanks @shon-button I assume I need to recreate this using a different user than bc-cas-dev? This is what I get on the add operator page:
@patriciarussellCAS Apologies for the lack of specific reproduction steps, I have updated the "Reachable at" comment to reflect the id to use: bc-cas-dev-secondary
Review notes: @shon-button & @zoeyli-46
@patriciarussellCAS for point 1, did you select business structure "general partnership"? because the partnership fields only show up if the business structure is general partnership.
After they click submit, it should have the snackbar instead of a confirmation page, but it should take them to the BCIERS dashboard where the "select operator" is now replaced with "operator - action required" This is in the prototype, and to be implemented in ticket #2048 which is coming next sprint! https://github.com/orgs/bcgov/projects/123/views/16?filterQuery=tiles&pane=issue&itemId=80445747
Thanks @zoeyli-46 That makes sense re: general partnership.
So the only thing that didn't work for me is that I was NOT sent back to the BCIERS dashboard. @shon-button is that something that's being addressed in a separate ticket or should that be part of this work?
RE: redirect to BCIERS dashboard, I have it as an AC in ticket #2048 https://github.com/orgs/bcgov/projects/123/views/16?filterQuery=tiles&pane=issue&itemId=80445747
Dependencies
Description:
The operator form has changed since reg part 1, so we can't just copy/paste the reg 1 files over.
Acceptance Criteria:
Given I am an external user When I add a new operator during the select operator workflow Then I see the latest operator form Figma
Given I am an external user When I click submit Then I see the confirmation message/page
Development Checklist:
API: Create Ninja Schema
cas-registration/bc_obps/registration/schema/v2/operator.py
createclass OperatorIn(ModelSchema)
cas-registration/bc_obps/registration/schema/v2/operator.py
createclass OperatorOutModelSchema)
cas-registration/bc_obps/registration/schema/v2/user_operator.py
createclass UserOperatorOutModelSchema)
API: Create Service
bc_obps/service/data_access_service/operator_service.py
create data access service to handle POST operatorcas-registration/bc_obps/service/operator_service_v2.py
create input and output service to handle POST operatorclass OperatorServiceV2\ def create_operator...
API: Create Endpoint
bc_obps/registration/api/v2/_user_operators/operators.py
similar tobc_obps/registration/api/v1/user_operators.py
API: Add Tests
bc_obps/registration/tests/endpoints/v2/_user_operators/test_current_v2.py
add tests for endpoint@router.post( "/v2/user-operators",...
bc_obps/service/operator_service_v2.py
add tests for servicesdef create_operator...
etc.FE
bciers/apps/administration/app/bceidbusiness/industry_user/select-operator/(request-access)/add-user-operator/page.tsx
similar tobciers/apps/registration1/app/(authenticated)/bceidbusiness/industry_user/dashboard/select-operator/(request-access)/user-operator/[id]/[formSection]/page.tsx
bciers/apps/administration/app/components/operators/OperatorForm.tsx
ensure theconst endpoint
POST url is correctbciers/apps/administration/app/components/operators/OperatorForm.tsx
ensure theconst method
is correctly usingconst [isCreatingState, setIsCreatingState] = useState(isCreating);
,, similar tobciers/apps/administration/app/components/contacts/ContactForm.tsx
bciers/apps/administration/tests/components/operators
add vitests as requiredDefinition 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: