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
In order to have confidence in the workbook migration code as a product owner I want more testing around what was previously exploratory/nice-to-have app code.
The code around test tables is problematic, and I speak about it in the E2E documentation. There are ways to improve this dramatically, but it may not be worth it. In which case, despite how this code looks... not touching it might be the right thing to do.
sac_creation.py
Probably all of it. At the least, we need a way to map
historic field -> named range -> api_field
as well as provide a migration function. In essence, it would be good to have a dictionary of FieldMap structures (just like the workbooks) that do the work of creating the general info object. However, we would then take the FieldMap structures and, instead of filling a workbook, use them to create a JSON object that represents the general_info and audit_info objects in the SAC.
That would be the best way to clean this whole thing up. And, it would then be easy to integrate the general info form into the API end-to-end testing.
The text was updated successfully, but these errors were encountered:
At a glance
In order to have confidence in the workbook migration code
as a product owner
I want more testing around what was previously exploratory/nice-to-have app code.
workbook_creation.py
https://github.com/GSA-TTS/FAC/blob/main/backend/dissemination/workbooklib/workbook_creation.py
Tasks
setup_sac()
#2674workbook_loader()
#2675excel_creation.py
Tasks
set_single_cell_range()
#2677col_to_ndx()
#2678set_range()
#2679dbkey_to_test_report()
#2680The code around test tables is problematic, and I speak about it in the E2E documentation. There are ways to improve this dramatically, but it may not be worth it. In which case, despite how this code looks... not touching it might be the right thing to do.
sac_creation.py
Probably all of it. At the least, we need a way to map
historic field -> named range -> api_field
as well as provide a migration function. In essence, it would be good to have a dictionary of
FieldMap
structures (just like the workbooks) that do the work of creating the general info object. However, we would then take the FieldMap structures and, instead of filling a workbook, use them to create a JSON object that represents thegeneral_info
andaudit_info
objects in the SAC.That would be the best way to clean this whole thing up. And, it would then be easy to integrate the general info form into the API end-to-end testing.
The text was updated successfully, but these errors were encountered: