-
Notifications
You must be signed in to change notification settings - Fork 7
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
Automate Conversion of Workbooks to IR JSON and Update Test Logic #4326
Comments
What do you think about moving this change to the validation step? If validation could (optionally) consume IR and skip the workbook parsing process entirely, that could open up pathways for consuming non-workbook data. I'm thinking of things like revising and re-disseminating reports (resubmission-ish), interactively editing workbook data (far future), and possibly even merging duplicate reports. If something like this makes sense, the tests could specify either the IR pathway or the full workbook pathway depending on what we want to test. |
FWIW, the Python validations only operate on the IR. We convert the workbook to the IR, and that is the last time we look at the workbook. We apply a few cleanup transformations to the IR (in some cases), and then we do all of our validations on the IR. At the end, we convert the IR to the internal JSON object notation only because we wanted to keep the JSON Schema validation as a backstop. But, I might not understand the question. We don't currently store the IR, which might stand in the way of some things. |
Ah, ok that makes sense! To make my earlier comment more concise: what if, instead of tweaking the test logic to accept IR, we tweaked the intake logic to accept either a workbook or IR? |
#4354) * #4326 Converted workbook fixtures into json fixtures * #4326 Updated logic to extract data from both xlsx and json files * #4326 Updated test cases * Added logic to convert xlsx files into json * Linting * #4326 Linting * #4326 bug fix * Updated fixture files to accomodate * Removed dead code
Description:
Currently, the FAC application uses a set of workbooks for testing, which are stored in various locations:
audit
apphistorical_migration
appshould_pass
andshould_fail
.The test logic reads each workbook file and converts it into a JSON format called the IR model, which is then used for validation checks and other test-related processes.
Task:
This task is to implement the following enhancements:
Automate Workbook-to-IR Conversion:
Update Test Logic:
The text was updated successfully, but these errors were encountered: