-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2610 from HHS/OPS-441-disable-user-accounts-refac…
…toring Ops 441 disable user accounts refactoring
- Loading branch information
Showing
27 changed files
with
1,440 additions
and
376 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 changes: 108 additions & 0 deletions
108
backend/alembic/versions/2024_07_18_2032-3b569cc657d2_add_get_user_details_event.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
"""add GET_USER_DETAILS event | ||
Revision ID: 3b569cc657d2 | ||
Revises: d411fa4a071b | ||
Create Date: 2024-07-18 20:32:28.653497+00:00 | ||
""" | ||
|
||
from typing import Sequence, Union | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
from alembic_postgresql_enum import TableReference | ||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = "3b569cc657d2" | ||
down_revision: Union[str, None] = "f8ef3a3d90d7" | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.sync_enum_values( | ||
"ops", | ||
"opseventtype", | ||
[ | ||
"CREATE_BLI", | ||
"UPDATE_BLI", | ||
"DELETE_BLI", | ||
"SEND_BLI_FOR_APPROVAL", | ||
"CREATE_PROJECT", | ||
"CREATE_NEW_AGREEMENT", | ||
"UPDATE_AGREEMENT", | ||
"DELETE_AGREEMENT", | ||
"ACKNOWLEDGE_NOTIFICATION", | ||
"CREATE_BLI_PACKAGE", | ||
"UPDATE_BLI_PACKAGE", | ||
"CREATE_SERVICES_COMPONENT", | ||
"UPDATE_SERVICES_COMPONENT", | ||
"DELETE_SERVICES_COMPONENT", | ||
"CREATE_PROCUREMENT_ACQUISITION_PLANNING", | ||
"UPDATE_PROCUREMENT_ACQUISITION_PLANNING", | ||
"DELETE_PROCUREMENT_ACQUISITION_PLANNING", | ||
"LOGIN_ATTEMPT", | ||
"LOGOUT", | ||
"GET_USER_DETAILS", | ||
"CREATE_USER", | ||
"UPDATE_USER", | ||
"DEACTIVATE_USER", | ||
], | ||
[ | ||
TableReference( | ||
table_schema="ops", table_name="ops_event", column_name="event_type" | ||
), | ||
TableReference( | ||
table_schema="ops", | ||
table_name="ops_event_version", | ||
column_name="event_type", | ||
), | ||
], | ||
enum_values_to_rename=[], | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.sync_enum_values( | ||
"ops", | ||
"opseventtype", | ||
[ | ||
"LOGIN_ATTEMPT", | ||
"CREATE_BLI", | ||
"UPDATE_BLI", | ||
"DELETE_BLI", | ||
"CREATE_PROJECT", | ||
"CREATE_NEW_AGREEMENT", | ||
"UPDATE_AGREEMENT", | ||
"SEND_BLI_FOR_APPROVAL", | ||
"DELETE_AGREEMENT", | ||
"ACKNOWLEDGE_NOTIFICATION", | ||
"LOGOUT", | ||
"CREATE_USER", | ||
"UPDATE_USER", | ||
"DEACTIVATE_USER", | ||
"CREATE_BLI_PACKAGE", | ||
"UPDATE_BLI_PACKAGE", | ||
"CREATE_SERVICES_COMPONENT", | ||
"UPDATE_SERVICES_COMPONENT", | ||
"DELETE_SERVICES_COMPONENT", | ||
"CREATE_PROCUREMENT_ACQUISITION_PLANNING", | ||
"UPDATE_PROCUREMENT_ACQUISITION_PLANNING", | ||
"DELETE_PROCUREMENT_ACQUISITION_PLANNING", | ||
], | ||
[ | ||
TableReference( | ||
table_schema="ops", table_name="ops_event", column_name="event_type" | ||
), | ||
TableReference( | ||
table_schema="ops", | ||
table_name="ops_event_version", | ||
column_name="event_type", | ||
), | ||
], | ||
enum_values_to_rename=[], | ||
) | ||
# ### end Alembic commands ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.