Skip to content

Keep assignee on onboarding requests even after resolving#3691

Merged
pmachapman merged 1 commit intomasterfrom
feature/keep-assignee-resolved-onboarding-requests
Feb 17, 2026
Merged

Keep assignee on onboarding requests even after resolving#3691
pmachapman merged 1 commit intomasterfrom
feature/keep-assignee-resolved-onboarding-requests

Conversation

@Nateowami
Copy link
Collaborator

@Nateowami Nateowami commented Feb 17, 2026

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:

  1. Stop clearing the assignee when the request is resolved
  2. Update the status calculation to not assume that a request that has an assignee is in progress.

This change is Reviewable

@codecov
Copy link

codecov bot commented Feb 17, 2026

Codecov Report

❌ Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.82%. Comparing base (8182c42) to head (4bc29b7).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...c/SIL.XForge.Scripture/Models/OnboardingRequest.cs 0.00% 6 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

@pmachapman pmachapman self-assigned this Feb 17, 2026
@pmachapman pmachapman force-pushed the feature/keep-assignee-resolved-onboarding-requests branch from 6ae8037 to 6b9e72d Compare February 17, 2026 18:36
@pmachapman pmachapman self-requested a review February 17, 2026 18:36
Copy link
Collaborator

@pmachapman pmachapman left a comment

Choose a reason for hiding this comment

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

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";

@Nateowami Nateowami force-pushed the feature/keep-assignee-resolved-onboarding-requests branch from 6b9e72d to b0735c3 Compare February 17, 2026 19:33
Copy link
Collaborator

@pmachapman pmachapman left a comment

Choose a reason for hiding this comment

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

:lgtm:

@pmachapman reviewed 1 file and all commit messages, made 1 comment, and resolved 1 discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on Nateowami).

@pmachapman pmachapman force-pushed the feature/keep-assignee-resolved-onboarding-requests branch from b0735c3 to 4bc29b7 Compare February 17, 2026 19:36
@pmachapman pmachapman enabled auto-merge (squash) February 17, 2026 19:36
@pmachapman pmachapman merged commit e1566a8 into master Feb 17, 2026
21 checks passed
@pmachapman pmachapman deleted the feature/keep-assignee-resolved-onboarding-requests branch February 17, 2026 19:45
Copy link
Collaborator Author

@Nateowami Nateowami left a comment

Choose a reason for hiding this comment

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

@Nateowami made 1 comment.
Reviewable status: :shipit: 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.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments