Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Epic: improve testing around core/critical E2E functions #2672

Closed
11 tasks done
jadudm opened this issue Nov 1, 2023 · 0 comments
Closed
11 tasks done

Epic: improve testing around core/critical E2E functions #2672

jadudm opened this issue Nov 1, 2023 · 0 comments
Labels

Comments

@jadudm
Copy link
Contributor

jadudm commented Nov 1, 2023

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

Preview Give feedback
  1. eng
    phildominguez-gsa sambodeme
  2. eng
    sambodeme
  3. eng
    phildominguez-gsa
  4. eng
    sambodeme
  5. eng
    sambodeme

excel_creation.py

Tasks

Preview Give feedback
  1. phildominguez-gsa
  2. phildominguez-gsa
  3. phildominguez-gsa
  4. phildominguez-gsa

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.

@jadudm jadudm changed the title E2E refactor: improve testing around core/critical functions Epic: improve testing around core/critical functions Nov 1, 2023
@jadudm jadudm changed the title Epic: improve testing around core/critical functions Epic: improve testing around core/critical E2E functions Nov 1, 2023
@danswick danswick added the eng label Dec 11, 2023
@github-project-automation github-project-automation bot moved this to Triage in FAC Dec 11, 2023
@github-project-automation github-project-automation bot moved this from Triage to Done in FAC Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

3 participants