Skip to content

refactor: use net/http method constants and dedupe url-signing key literal - #21

Merged
Pijukatel merged 3 commits into
masterfrom
claude/eloquent-tesla-roitr8
Aug 12, 2026
Merged

refactor: use net/http method constants and dedupe url-signing key literal#21
Pijukatel merged 3 commits into
masterfrom
claude/eloquent-tesla-roitr8

Conversation

@Pijukatel

@Pijukatel Pijukatel commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Internal consistency cleanup found while auditing the client for improvement opportunities. No public interface change.

What changed

  • Replaced raw HTTP-method string literals ("PUT", "DELETE", "POST") and the non-idiomatic http_MethodHead constant with the standard net/http method constants already used elsewhere in the client
  • Extracted the three duplicated "urlSigningSecretKey" literals in the dataset / key-value-store public-URL builders into one named constant
  • Fixed a factually wrong Task.Unpublish docstring (it claimed Actor write permission was required; verified against the live API that only task write permission is needed)

Compatibility

  • Non-breaking; ClientVersion bumped to 0.8.1

…teral

Internal consistency cleanup, no public interface change: replace raw HTTP-method
string literals ("PUT", "DELETE", "POST") and the non-idiomatic http_MethodHead
constant with the standard net/http constants already used elsewhere in the client,
and extract the three duplicated "urlSigningSecretKey" literals in the dataset/
key-value-store public-URL builders into one named constant.
@github-actions github-actions Bot added this to the 147th sprint - Tooling team milestone Aug 11, 2026
@github-actions github-actions Bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Aug 11, 2026
claude added 2 commits August 11, 2026 10:43
…rement

Verified against the live API that TaskClient.Unpublish only requires write
permission to the task itself, not its Actor as the docstring (copied
verbatim from the JS reference) claimed. tests/task_test.go's
TestTaskPublishUnpublish already asserted the correct behavior; the
docstring was the factually wrong side of the contradiction.
PR #21 bumped ClientVersion twice (0.8.0->0.8.1 for the net/http-constant
and url-signing-literal refactor, then 0.8.1->0.8.2 for the Unpublish
docstring fix), producing two CHANGELOG sections for what is a single PR.
Collapse both changes into one 0.8.1 patch bump and merge the CHANGELOG
sections accordingly.
@Pijukatel
Pijukatel merged commit f6d3a24 into master Aug 12, 2026
2 checks passed
@Pijukatel
Pijukatel deleted the claude/eloquent-tesla-roitr8 branch August 12, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants