bcgov / cas-registration

A web app for Registration in OBPS under the Clean Growth branch
Apache License 2.0
1 stars 1 forks source link

Reg\Select Registration Purpose #2169

Open andrea-williams opened 2 months ago

andrea-williams commented 2 months ago

Blocking #1962

Describe the task

We need to handle the scenario where an external user partially or fully submits an operation registration form, and then wants to change their selected registration purpose (RP), since this could impact the data associated with the registration.

The Reg Purpose may be changed in the multistep registration workflow (before the "Submit" button is clicked), or after submission, from the Operation Details page.

This requires writing a lot of backend manual logic to delete data when it becomes no longer relevant because the RP has changed.

Dev Checklist

Acceptance Criteria

Additional context

shon-button commented 2 months ago

AW:

Changing Registration Purpose for Moose and Russell, Patricia ENV:EX - I've been thinking a bit more about that dreaded topic, changing registration purpose. Here's our options as I see them:

(Easiest implementation) You can't change registration purpose. Specifically, the "Registration Purpose" field in the Edit Operation details page is non-editable, and in the multistep Registration form, once the user has submitted the first step of the form, they can't go back and change registration purpose. IMO we'll need to provide more help text than what we currently have in the wireframe, to help external users make sure they're selecting the correct registration purpose Some registration purposes can be changed. Some of the RPs are actually straightforward to change around, specifically "reporting", "regulated", and "potential reporting" don't have any differences in the data collected, so switching between them is easy. We could allow users to change amongst these RPs without creating any headaches for devs. It would only be Opt-ins, New Entrants, and EIOs that we'd have to forbid users from changing to/from. (probably the most user-friendly, but the most technically complex to implement) Users are permitted to change their selected registration purpose either after they've submitted their registration form (through the Edit Operation page) or by navigating back to the first step of the registration workflow (in cases where they haven't yet submitted their registration). Provides more grace room for external users to make mistakes, but is a lot more complex to implement. We'd have to perform data cleanup in some cases (e.g., deleting data fields that no longer apply to the new RP), and also have to conditionally render data fields in the Edit Operation page and enforce that missing data is provided before the user can submit their changes. for reference, I've created a table of how data would be impacted by changing RPs here

I think this is a topic we should bring to the biz area, and I think we need to make a decision on this pretty soon. Do you feel ready to talk about this with the biz area tomorrow? Or should we leave it until next Monday (or the following week?) Andrea's (brain) dumping ground A post on Miro provided by: https://miro.com

patriciarussellCAS commented 2 months ago

I'm moving this back into next sprint backlog so we can prioritize refinement and prep it for next sprint.

andrea-williams commented 1 month ago

Relevant notes from Registration Collab (Sept 17):

To Do:

andrea-williams commented 1 month ago

discussion with Patricia Oct 29: external users should be allowed to change their operation's registration purpose after registration (from the Operation Details page) in order to handle cases where the wrong RP has accidentally been selected