Skip to content

feat: POWER-4854 - Add sag and clearance#100

Merged
Prebz98 merged 6 commits intomainfrom
feat/POWER-4854-Add-sag-and-clearance-method
Apr 15, 2026
Merged

feat: POWER-4854 - Add sag and clearance#100
Prebz98 merged 6 commits intomainfrom
feat/POWER-4854-Add-sag-and-clearance-method

Conversation

@Prebz98
Copy link
Copy Markdown
Contributor

@Prebz98 Prebz98 commented Apr 14, 2026

Summary

Add sag and clearance method to the client.
Add examples for dotnet and python sdks.
Add tests for dotnet.

@Prebz98 Prebz98 requested a review from a team as a code owner April 14, 2026 11:26
Prebz98 and others added 3 commits April 14, 2026 13:28
- Add missing trailing period to summary
- Align lineId param description with implementation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Prebz98 Prebz98 force-pushed the feat/POWER-4854-Add-sag-and-clearance-method branch from 847570f to d102456 Compare April 14, 2026 11:33
@mHjertaker
Copy link
Copy Markdown
Contributor

mHjertaker commented Apr 14, 2026

Suggestion: Consider removing SagAndClearanceUrl.cs and the InternalsVisibleTo attribute from the .csproj.

The URL builder tests verify string interpolation and query param logic that's shared with every other endpoint (icing, conductor temperature, etc.), none of which have URL unit tests today. The BuildLatestSagAndClearanceUrl method follows the exact same pattern as BuildLatestIcingUrl, so there's no unique logic to protect against.

Adding InternalsVisibleTo to expose internals to the test project sets a precedent we don't use elsewhere in the SDK, and the tests don't justify it here.

If we want test coverage for this endpoint, an integration test following the existing GetAssets pattern would be more valuable, as it would verify the full round-trip (auth, URL construction, deserialization) through the public API rather than testing string constants in isolation. Something like a GetLatestSagAndClearance test under WhenAuthenticated/

@Prebz98 Prebz98 force-pushed the feat/POWER-4854-Add-sag-and-clearance-method branch from d102456 to 378651d Compare April 14, 2026 12:03
@Prebz98 Prebz98 merged commit 0b32c7e into main Apr 15, 2026
3 checks passed
@Prebz98 Prebz98 deleted the feat/POWER-4854-Add-sag-and-clearance-method branch April 15, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants