-
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
Adds an output year parameter #789
base: master
Are you sure you want to change the base?
Conversation
@GoFroggyRun Would you mind taking a look at this? I tried to copy the same code that was used for the However, nothing happens when I select a new year. |
@hdoupe I'm working on this, and might have some ways to deal with it. However, my local run hangs on "a few seconds remaining", even on current master. Do we have systematic ways to resolve such local issue? |
Great thanks @GoFroggyRun. The issue is that the time per run is calibrated for the AWS machines. They seem to run a year of calculations at around 30 seconds or less while I get times closer to 60-70 seconds locally. The hanging results because TaxBrain thinks the calculations should be ready but they are actually still finishing up. This can be verified by checking the output of the log files in This can be a little annoying but since it doesn't cause any problems in production I just ignore it. |
@hdoupe, after playing with TaxBrain a bit, I actually don't see an easy way to separate "start year" and "output year", where TaxBrain seems to assume the two to be always the same. The only way to modify output year that I am aware of is to change the Are there, theoretically, any ways to have TaxBrain in, say, year 2017 on the input page while in year 2018 for output pages? |
@GoFroggyRun asked
I think so. It will take a little bit more work on the back-end once the front-end is set up to send and receive an output start year. One approach is to use the input start year to create the reform here and the output start year when you submit the reform here. That way the reform is specified with the input year and the Tax-Calculator start year is the output start year. |
Cool. Thanks for your explanation. If this is the case, then we shouldn't be surprised at
Right? We won't see anything happen until back-end has something similar to Would it be more reasonable to have a variable added on backend first so that we can fully test functionalities more adequately while working on the potential output year dropdown button? |
@GoFroggyRun When I first tried to put this PR together, I couldn't get anything to happen when I changed the year. However, I just checked out the PR and got the following result: Previously, nothing happened when I clicked a different start year in the drop down menu. I'm not completely sure why it's working now and it didn't before. Thanks for reviewing. I'll keep working on this PR and let you know if I have any more problems. |
Resolves #763. This PR adds an output start year parameter.