-
Notifications
You must be signed in to change notification settings - Fork 1
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
submit report for approval #123
Conversation
I am testing this, and it looks like it works, but when I am filling out the form, I get an "unable to save form" error, and the logs show Edit: Investingation shows this was user error, I had forgot to put a grantee name in. |
It looks like it stays saying submitted even if you go to fill out a new report. If you skip to submit when submitting a second report, it shows this if you go through the whole second report properly, when you get to the submit stage, it says that it is submitted even before you select an approving manager and press select. |
ApprovingManagerId was previously being set to "" which postgres didn't like (since "" is not an integer). Can't simply set "valueAsNumber" because null values become 0. Explicitly set "0" to null
I think this was an actual bug I just pushed a fix up for. Null approving manager id came across the wire as an empty string |
I think I have the form proper resetting itself, this should be fixed. |
This solves a few problems. Reports are now properly reset when clicking "new" after submitting a report. Now components can receive the activity report id if needed (for example file upload).
Alright I think I have it nailed down, but let me know if you still see the same issue! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Conflicts: .circleci/config.yml
Description of change
A report can now be submitted for approval. Every page must be "completed" before a report can be submitted. A single manager must be assigned as the approving manager.
How to test
Or test it out on sandbox
Issue(s)
Checklist