Skip to content

Add endpoint to fetch metadata about projects for onboarding script#3679

Merged
marksvc merged 2 commits intomasterfrom
feature/onboarding-request-project-metadata
Feb 12, 2026
Merged

Add endpoint to fetch metadata about projects for onboarding script#3679
marksvc merged 2 commits intomasterfrom
feature/onboarding-request-project-metadata

Conversation

@Nateowami
Copy link
Collaborator

@Nateowami Nateowami commented Feb 11, 2026

This change is Reviewable

@codecov
Copy link

codecov bot commented Feb 11, 2026

Codecov Report

❌ Patch coverage is 0% with 35 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.84%. Comparing base (e4eb54c) to head (7e7b4d0).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...ture/Controllers/OnboardingRequestRpcController.cs 0.00% 35 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3679      +/-   ##
==========================================
- Coverage   81.91%   81.84%   -0.08%     
==========================================
  Files         618      618              
  Lines       38568    38603      +35     
  Branches     6311     6290      -21     
==========================================
  Hits        31594    31594              
- Misses       6000     6048      +48     
+ Partials      974      961      -13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@marksvc marksvc self-assigned this Feb 11, 2026
Copy link
Collaborator

@marksvc marksvc left a comment

Choose a reason for hiding this comment

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

@marksvc reviewed 1 file and all commit messages, and made 3 comments.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @Nateowami).


-- commits line 2 at r1:
Inserting a d will make enpoint more on point.


src/SIL.XForge.Scripture/Controllers/OnboardingRequestRpcController.cs line 510 at r1 (raw file):

            }

            SFProject project = _realtimeService

I understand that SFProject here should be SFProject? since a null value was returned.
I understand that an existing example in the code was also SFProject, but let's use SFProject? for this new code.


src/SIL.XForge.Scripture/Controllers/OnboardingRequestRpcController.cs line 518 at r1 (raw file):

            }

            object result = new

I'm used to seeing the RPC files call into service files for the implementation. I won't complain about that here, but I do think it will be cleaner if we don't start to let implementation creep into the RPC files.

@Nateowami Nateowami force-pushed the feature/onboarding-request-project-metadata branch from f41b349 to 24315c4 Compare February 12, 2026 00:38
@Nateowami Nateowami changed the title Add enpoint to fetch metadata about projects for onboarding script Add endpoint to fetch metadata about projects for onboarding script Feb 12, 2026
@Nateowami Nateowami force-pushed the feature/onboarding-request-project-metadata branch 2 times, most recently from def0ad1 to 4d3bb54 Compare February 12, 2026 01:33
@Nateowami Nateowami force-pushed the feature/onboarding-request-project-metadata branch from 4d3bb54 to 4a92067 Compare February 12, 2026 03:13
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 3 comments.
Reviewable status: 0 of 1 files reviewed, 3 unresolved discussions (waiting on @marksvc).


-- commits line 2 at r1:

Previously, marksvc wrote…

Inserting a d will make enpoint more on point.

Fixed. Thanks.


src/SIL.XForge.Scripture/Controllers/OnboardingRequestRpcController.cs line 510 at r1 (raw file):

Previously, marksvc wrote…

I understand that SFProject here should be SFProject? since a null value was returned.
I understand that an existing example in the code was also SFProject, but let's use SFProject? for this new code.

Done. However, I'm not sure we've actually improved anything by doing that. Is there a reason we haven't turned on the actual warnings for null references? There would be a few hundred warnings.


src/SIL.XForge.Scripture/Controllers/OnboardingRequestRpcController.cs line 518 at r1 (raw file):

Previously, marksvc wrote…

I'm used to seeing the RPC files call into service files for the implementation. I won't complain about that here, but I do think it will be cleaner if we don't start to let implementation creep into the RPC files.

I know; we usually have a service class that is separate from the RPC controller. And while I appreciate the separation of concerns, very often for me it just obfuscates what each RPC method actually does. If I Ctrl+Click to view the implementation, it takes me to the interface. I have to right click and choose "Go to implementations". And then usually I lose context and have trouble jumping back. For things where the service needs more logic, it can make sense. But for this controller I thought it would be simpler to put everything in one place.

Copy link
Collaborator

@marksvc marksvc left a comment

Choose a reason for hiding this comment

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

@marksvc reviewed 1 file and all commit messages, made 2 comments, and resolved 2 discussions.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Nateowami).


src/SIL.XForge.Scripture/Controllers/OnboardingRequestRpcController.cs line 510 at r1 (raw file):

Previously, Nateowami wrote…

Done. However, I'm not sure we've actually improved anything by doing that. Is there a reason we haven't turned on the actual warnings for null references? There would be a few hundred warnings.

Hmm. Right. I know that at one time we needed to do transitions of code from not using nullable types, to using nullable types. Maybe this file isn't configured to require it. I made a note to look into it.


src/SIL.XForge.Scripture/Controllers/OnboardingRequestRpcController.cs line 518 at r1 (raw file):

Previously, Nateowami wrote…

I know; we usually have a service class that is separate from the RPC controller. And while I appreciate the separation of concerns, very often for me it just obfuscates what each RPC method actually does. If I Ctrl+Click to view the implementation, it takes me to the interface. I have to right click and choose "Go to implementations". And then usually I lose context and have trouble jumping back. For things where the service needs more logic, it can make sense. But for this controller I thought it would be simpler to put everything in one place.

Okay. Yeah that is annoying about Ctrl+Click.

@marksvc marksvc enabled auto-merge (squash) February 12, 2026 22:22
@marksvc marksvc merged commit 785f596 into master Feb 12, 2026
22 of 23 checks passed
@marksvc marksvc deleted the feature/onboarding-request-project-metadata branch February 12, 2026 22:29
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