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

Enforce project line submission at timecard submission #881

Closed
tbaxter-18f opened this issue Jan 14, 2019 · 5 comments · Fixed by #933
Closed

Enforce project line submission at timecard submission #881

tbaxter-18f opened this issue Jan 14, 2019 · 5 comments · Fixed by #933

Comments

@tbaxter-18f
Copy link
Contributor

In some cases, somehow, when a user submits a timecard the project lines will not be marked as submitted. This will present to the user as an undefined error, and can be seen in the admin by the project lines having red "unsubmitted" checks when the timecard itself has been entered.

We need to determine why the project lines have their own "submitted' independent of the timecard "submitted'. If they're not needed, remove them. If they are, be sure that they're in sync and don't throw an error.

@tbaxter-18f
Copy link
Contributor Author

If you have to manually resolve this, you can delete the unsubmitted project lines in the Tock admin, then have the user re-submit their time card.

@Jkrzy
Copy link
Contributor

Jkrzy commented Jan 23, 2019

I've been unable to replicate inconsistency between Timecard.submitted and TimeCardObject.submitted`.

However I don't believe a discrepancy there would prevent submission of a Timecard.

TimeCardObject.submitted is functionally a copy of Timecard.submitted and any instance where it is evaluated should be replaced with timecard__submitted. It looks like the only place its used at the moment is in the utilization reports.

@tbaxter-18f
Copy link
Contributor Author

Yes, timecard.submitted is definitely used. You can see the inconsistency if you force an error on a tock submission -- apparently, judging from Slack conversations, leaving out required notes is the easiest way -- then view the submission in the Tock admin. You'll get a "submitted" timecard with unsubmitted timecardobjects.

That said, I understand you'd prefer to pull that work into a separate issue, which I'm totally fine with.

@tbaxter-18f
Copy link
Contributor Author

@Jkrzy is this resolved with the merge of #886 above?

@Jkrzy
Copy link
Contributor

Jkrzy commented Feb 12, 2019

No, thanks for the reminder @tbaxter-18f that didn't address an assessment/refactoring of TimeCardObject.submitted. I'll follow-up later this week with a plan to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants