You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is the concept of needing to have the frontend tell when a Filing is OPEN/CLOSED
Do the following to create this status:
Add a new REOPEN UserActionType
Add a new /reopen endpoint for a filing that will create the REOPEN user action on the filing object
Use the filing_validator.py to add checks for the endpoint to make sure the filing exists (valid_filing_exists) and add a new check to verify the filing is not already open (use latest user action to determine)
Add a @model_validator(mode="after") to the FilingDTO to set a "state" field on the FilingDTO based on the following:
If the latest user action is SIGN, state should be CLOSED. Otherwise, state is OPEN
Add pytests
The text was updated successfully, but these errors were encountered:
After talks, the potential implementation of this has been modified.
Considering the following for this change:
Add a new REOPEN UserActionType
Make changes to the FilingDao and FilingDto
Add a new field called state (table should default to None)
Add a new state enum with OPEN and CLOSED values and set the new state field in the Dao/Dto to this.
Update alembic scripts to include new table changes
Add a new /reopen endpoint for a filing that will create the REOPEN user action on the filing object
Check state of filing using the filing_validator.py to add checks for the endpoint to make sure the filing exists (valid_filing_exists) and add a new check to verify the filing is not already open using the new state field added to the table
If OPEN, add a reopen user action and set new state to OPEN
If CLOSED, throw an error using filing validator
In the /post_filing endpoint
Set filing state to OPEN when filing is created
In the /sign_filing endpoint
Set filing state to CLOSED after signing is completed
There is the concept of needing to have the frontend tell when a Filing is OPEN/CLOSED
Do the following to create this status:
The text was updated successfully, but these errors were encountered: