-
Notifications
You must be signed in to change notification settings - Fork 32
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
Modify webapp backend to process all user input as files #619
Comments
Let me add something to the #619 comment by @talumbau. |
@brittainhard and @PeterDSteinberg, |
@martinholmer said
I agree. I think this would take care of the TaxBrain GUI input bugs (#596, #598, #607, and #609). |
With the merge of PSLmodels/Tax-Calculator#1505, Tax-Calculator now supports a JSON reform interface that maps very naturally to the TaxBrain GUI interface. Currently, TaxBrain supports two separate but similar workflows: a GUI interface and a file upload interface. For the GUI interface, there is a significant amount of code that processes the user's input to create a job for submission to the worker nodes. There is a separate path of control to take a file-based input and submit that to the worker nodes. A way to reduce complexity of TaxBrain would be to unify these flows. To do this, code would be written to transform a user's input to a JSON reform (represented in memory as a dictionary) in the style of PSLmodels/Tax-Calculator#1505. For example, this user input:
Would be something like:
Once this works is completed, the workflows would look like this:
File based reform:
GUI-based reform:
After the new work is done, a lot of code could be removed from TaxBrain (e.g. the
expand_arrays
functions,package_up_vars
, etc.) and there would only be one flow of control for submitting jobs to the worker nodes.cc @MattHJensen, @brittainhard, @PeterDSteinberg, @martinholmer
The text was updated successfully, but these errors were encountered: