Conversation
updating dotnet version to 10.0.303
updated docker file
Skip API scenarios without credentials
There was a problem hiding this comment.
🟡 Changes recommended
Response-model specification mismatches and the unimplemented Docker SDK pin must be corrected.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds the missing PSC notifications endpoint and addresses the vulnerable SourceLink dependency.
Changes:
- Adds PSC notification clients, URI construction, models, and tests.
- Removes explicit SourceLink package references.
- Updates the requested .NET SDK version.
File summaries
| File | Description |
|---|---|
PersonsWithSignificantControlDetailsUriBuilderTests.cs |
Tests notification URI generation. |
CompaniesHousePersonsWithSignificantControlDetailsClientTests.cs |
Tests notification deserialization. |
SearchResponseDeserializationScenarioTests.cs |
Imports the fallback search model namespace. |
PersonsWithSignificantControlDetailsUriBuilder.cs |
Builds notification endpoint URIs. |
IPersonsWithSignificantControlDetailsUriBuilder.cs |
Exposes notification URI construction. |
PersonWithSignificantControlNotifiedTo.cs |
Models notified company details. |
PersonWithSignificantControlNotificationsLinks.cs |
Models list links. |
PersonWithSignificantControlNotifications.cs |
Models the notification envelope. |
PersonWithSignificantControlNotificationLinks.cs |
Models item links. |
PersonWithSignificantControlNotification.cs |
Models notification items. |
ICompaniesHousePersonsWithSignificantControlDetailsClient.cs |
Adds the endpoint contract. |
CompaniesHousePersonsWithSignificantControlDetailsClient.cs |
Implements endpoint retrieval. |
CompaniesHouseClient.cs |
Exposes the endpoint publicly. |
CompaniesHouse.csproj |
Removes SourceLink dependency. |
CompaniesHouse.Extensions.Microsoft.DependencyInjection.csproj |
Removes SourceLink dependency. |
global.json |
Updates the requested SDK. |
Directory.Packages.props |
Removes SourceLink version management. |
Review details
- Files reviewed: 20/20 changed files
- Comments generated: 4
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Resolve PSC notification review comments
|
All review comments have been addressed in the latest updates:
@kevbite could you please re-review and approve PR #230 when you have a moment? Thanks |
|
Can we bump the Microsoft.SourceLink.GitHub version to latest without the vulnerability so that we still get source links back for people using the code? - Have a feeling we'll need to copy in the |
Thanks @kevbite, i`ll implemet it. |
Restore Source Link support
Summary
Complete the remaining endpoint catalog work by implementing the missing Persons with Significant Control notifications endpoint and resolve the CI restore failure caused by a vulnerable SourceLink dependency. #229
Changes
GET /company/{company_number}/persons-with-significant-control/{psc_id}/notificationsfilteritems_per_pagestart_indexMicrosoft.SourceLink.GitHub 8.0.0, which introduced vulnerableMicrosoft.Build.Tasks.Git 8.0.0.10.0.100to10.0.303..NET SDK 10.0.303.Why
The Companies House API specification included a PSC notifications endpoint that was not exposed by the client. This PR completes the missing endpoint implementation and brings the endpoint catalog in line with the specification.
The CI pipeline was also failing during restore because
NU1902treated the vulnerableMicrosoft.Build.Tasks.Git 8.0.0package as an error. Removing the obsolete SourceLink package and updating the SDK resolves that restore failure.Testing
dotnet restorepasses successfully.api-enumerationssubmodule is empty. CI initializes submodules recursively during checkout.