Keep assignee on onboarding requests even after resolving#3691
Keep assignee on onboarding requests even after resolving#3691pmachapman merged 1 commit intomasterfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3691 +/- ##
=======================================
Coverage 81.82% 81.82%
=======================================
Files 619 619
Lines 38619 38618 -1
Branches 6317 6317
=======================================
Hits 31601 31601
- Misses 6044 6056 +12
+ Partials 974 961 -13 ☔ View full report in Codecov by Sentry. |
6ae8037 to
6b9e72d
Compare
pmachapman
left a comment
There was a problem hiding this comment.
Just one nit!
@pmachapman reviewed 2 files and all commit messages, and made 2 comments.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on Nateowami).
src/SIL.XForge.Scripture/Models/OnboardingRequest.cs line 45 at r1 (raw file):
{ bool hasAssignee = !String.IsNullOrEmpty(AssigneeId); bool isResolved = !String.IsNullOrEmpty(Resolution) && Resolution != "unresolved";
Nit: In C# we normally use lowercase string, i.e.
bool hasAssignee = !string.IsNullOrEmpty(AssigneeId);
bool isResolved = !string.IsNullOrEmpty(Resolution) && Resolution != "unresolved";I am surprised your dev environment didn't give you the "IDE0049 Name can be simplified" warning?
Code quote:
bool hasAssignee = !String.IsNullOrEmpty(AssigneeId);
bool isResolved = !String.IsNullOrEmpty(Resolution) && Resolution != "unresolved";6b9e72d to
b0735c3
Compare
pmachapman
left a comment
There was a problem hiding this comment.
@pmachapman reviewed 1 file and all commit messages, made 1 comment, and resolved 1 discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on Nateowami).
b0735c3 to
4bc29b7
Compare
Nateowami
left a comment
There was a problem hiding this comment.
@Nateowami made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved.
src/SIL.XForge.Scripture/Models/OnboardingRequest.cs line 45 at r1 (raw file):
Previously, pmachapman (Peter Chapman) wrote…
Nit: In C# we normally use lowercase string, i.e.
bool hasAssignee = !string.IsNullOrEmpty(AssigneeId); bool isResolved = !string.IsNullOrEmpty(Resolution) && Resolution != "unresolved";I am surprised your dev environment didn't give you the "IDE0049 Name can be simplified" warning?
Thanks for the review. Fixed.
My editor does show this, but not as a warning.
I interpreted it as "You could completely drop String here and write IsNullOrEmpty(AssigneeId), which I wasn't sure I wanted to do, since I generally prefer to err on the side of over-qualifying names.

Previously resolving an onboarding request cleared the assignee. It was requested that the assignee stay on the request, so it's possible to look back at requests and see who handled them.
This necessitated two changes:
This change is