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

Error handling for missing locked task. #918

Merged
merged 4 commits into from
May 17, 2024

Conversation

kbecker42
Copy link

  • Added error handler for missing task in get_task_id_and_duration_for_project_user.

@kbecker42 kbecker42 requested a review from n00rsy May 16, 2024 20:22
@kbecker42 kbecker42 added the bug label May 16, 2024
@coveralls
Copy link

coveralls commented May 16, 2024

Pull Request Test Coverage Report for Build 9130056302

Details

  • 6 of 6 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.001%) to 93.947%

Totals Coverage Status
Change from base Build 9118554551: 0.001%
Covered Lines: 17134
Relevant Lines: 18238

💛 - Coveralls

Copy link

@n00rsy n00rsy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks

"Project {}, User {}, Task Id {} - task not found in get_task_id_and_duration_for_project_user()."
.format(project_id, user_id, task_id))

if task_project_id and int(task_project_id) == project_id:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

optional refactor: instead of checking task_project_id on this line, we can add a continue statement after line 802.

@kbecker42 kbecker42 merged commit ff6ea99 into main May 17, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants