Open andrea-williams opened 2 months ago
Might not need this to be a separate ticket because we won't need a separate API endpoint - can just query the status
on the operation by its ID. However, saving this ticket for now because the suggested test cases might be useful in the near future.
Do we need any specific AC to differentiate between and LFO and SFO? Do SFOs have to include a facility in order to proceed? I think they do but wasn't sure where that landed.
@andrea-williams , for this one: an operation must have at least one Operation Representative with a mailing address tied to their contact info. If this is not the case, the status should be Draft
. None of the fields in the address model are mandatory, so just checking if there's a foreign key doesn't tell us much. Are all of street address, municipality, province and postal code necessary to be considered a complete address?
@andrea-williams , for this one:
an operation must have at least one Operation Representative with a mailing address tied to their contact info. If this is not the case, the status should be Draft
. None of the fields in the address model are mandatory, so just checking if there's a foreign key doesn't tell us much. Are all of street address, municipality, province and postal code necessary to be considered a complete address?
I'm going to tentatively say yes. The only argument there might be against that is if the contact info is not within Canada (and therefore province & postal code won't apply). I'd recommend for now assuming that all of (mailing address, municipality, province, postal code) are required.
This highlights a potential larger issue I want to loop @patriciarussellCAS in on - during development of Reg 1 the indication was that contact info for all people would be restricted to Canada. I get the sense that's no longer necessarily the case, but wanted to double check with you? I'm thinking mostly of cases like "multiple operators" for an operation or parent companies - will contacts for those companies always be within Canada?
Thanks @andrea-williams and @BCerki - this is on my list to discuss with BA at next week's collab. Here's what I think are the key questions:
Andrea - regarding address information for multiple operators and parent companies, I would expect those would need to be international, but I can confirm that as well.
Did I miss anything?
@andrea-williams , me again...
if an operation's registration category is New Entrant but there is no record for the operation in the new_entrant table, or if the record in new_entrant is incomplete
--we don't have a new entrant table. I think the required new entrant stuff is only the signed statuatory declaration?if an operation's registration category is Opt-in but there is no record for that operation in the opt_in table, or if the record in opt_in is incomplete
--everything in opted_in_operation_detail
is optional. Am I just checking for the existence of the foreign key?/v2/operations/{operation_id}/registration/submission
before the update_status
service runs. If the anything is incomplete, the status won't be changed to registered, but should I also throw an exception (or something?) to give the user feedback that the status couldn't be changed to registered?
Describe the task
We need to add functionality to our API that indicates whether a given operation is "fully registered".
A "fully registered" operation has data for all fields that are required in Reg Part 2, and an external user has officially submitted the registration form (i.e., they've clicked all 3 checkboxes on the last step of the form - see here).
No frontend work associated with this ticket.
Acceptance Criteria
Draft
Draft
Draft
Draft
Draft
Draft
new_entrant
table, or if the record in new_entrant is incomplete, the status should beDraft
- see #1906opt_in
table, or if the record in opt_in is incomplete, the status should beDraft
- see #1952Registered
Note: the operation status should be updated to "Registered" immediately after successful submission of the registration form. BORO IDs and BCGHG IDs will be manually issued later, so it is possible for an operation to have a status of "Registered" but be missing one/both a BORO ID or BCGHG ID
Development Checklist
Additional context