bcgov / foi-flow

Freedom of Information modernization
Apache License 2.0
4 stars 3 forks source link

Remove Master Data ENUM Identifier and use Data labelling #4707

Open abin-aot opened 7 months ago

abin-aot commented 7 months ago

Title of ticket:

Description

The purpose of this ticket is to remove, clean and optimize the way we use Master Data related ENUMs on the FOI FLOW , Document Reviewer code components. The idea is to avoid using AUTO GENERATED ID s on the ENUM, and use the DATA LABEL and/or CODE on ENUM, CONSTANTS - so while running BE migrating script if the next expected available value is not generated, then it should not break code and/or avoid updating IDs into the DB tables to match the sequence. Can discuss more in details!

Dependencies

Are there any dependencies?

DOD

abin-aot commented 7 months ago

@divyav-aot , @antsand : Please wait for 9.2 to release to complete to push to test-marshal

divyav-aot commented 7 months ago

File "/app/request_api/services/events/state.py", line 110, in __commentmessage comment = comment + f". Approved by {signgoffapproval['approvername']}, {signgoffapproval['approvertitle']} on {signgoffapproval['approveddate']}" TypeError: 'NoneType' object is not subscriptable above error also fixed as part of this ticket.

divyav-aot commented 6 months ago

Further improvement can be added for below components. This can be taken as another tech debt. foi-flow: DivisionalStages foi-docreviewer: DocumentPageFlags

divyav-aot commented 6 months ago

Increasing the effort as it includes more changes and e2e testing.

nimya-aot commented 6 months ago

Did regression testing. Noticed that Event queue is not working. Need to fix that. @antsand

image.png
divyav-aot commented 6 months ago

@nimya-aot event queue issue is fixed. please retest and let us know.

nimya-aot commented 6 months ago

@divyav-aot its working now