Skip to content

Fix search returning irrelevant results#226

Merged
jeremy merged 1 commit intomainfrom
search
Mar 9, 2026
Merged

Fix search returning irrelevant results#226
jeremy merged 1 commit intomainfrom
search

Conversation

@jeremy
Copy link
Member

@jeremy jeremy commented Mar 9, 2026

Summary

  • Bumps basecamp-sdk/go v0.2.2 → v0.3.0
  • Search no longer sends spurious sort= and page=0, restoring BC3's relevance ranking
  • Search query param corrected from query= to q= to match BC3's actual API

Before: search.json?query=omacon&sort=&page=0 → recency-sorted, irrelevant results
After: search.json?q=omacon → relevance-ranked results

Test plan

  • make check passes (unit, 263 e2e, lint, vet, fmt, provenance)
  • basecamp search "omacon" -vv → URL is search.json?q=omacon, no spurious params
  • basecamp search "omacon" --sort created_at -vvsort=created_at appears when explicit
  • basecamp recordings --type Todo --sort created_at -vv → other endpoints unaffected

Summary by cubic

Search results are now relevance-ranked by default. We upgraded github.com/basecamp/basecamp-sdk/go to v0.3.0 to use q and stop sending stray sort and page=0.

  • Bug Fixes
    • Use q= for search requests to match BC3.
    • Omit zero-value optional params for unqualified searches, so no sort= or page=0.

Written for commit 5bd7065. Summary will update on new commits.

Picks up two fixes to the generated Go client:

- fix(go): omit zero-value optional value-type params (#164)
  Search no longer sends spurious `sort=` and `page=0`, restoring
  BC3's relevance ranking for unqualified searches.

- fix(spec): rename search query param to `q` (#166)
  Aligns the SDK with BC3's actual query parameter name.
Copilot AI review requested due to automatic review settings March 9, 2026 23:02
@jeremy jeremy requested a review from a team as a code owner March 9, 2026 23:02
@github-actions github-actions bot added sdk SDK wrapper and provenance deps bug Something isn't working labels Mar 9, 2026
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 3 files

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Basecamp Go SDK dependency to address Basecamp search relevancy issues by relying on the newer SDK’s corrected request construction (no empty sort/page=0, and correct query parameter naming for BC3).

Changes:

  • Bump github.com/basecamp/basecamp-sdk/go from v0.2.2 to v0.3.0.
  • Update Go module checksums (go.sum) for the new SDK version.
  • Refresh SDK/API provenance metadata (version + revisions) in internal/version/sdk-provenance.json.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
internal/version/sdk-provenance.json Updates recorded SDK version/revision and BC3 API revision provenance.
go.mod Bumps github.com/basecamp/basecamp-sdk/go requirement to v0.3.0.
go.sum Updates checksums for the upgraded SDK module version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@claude claude bot left a comment

Choose a reason for hiding this comment

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

LGTM — straightforward SDK version bump with no CLI logic changes.

Extended reasoning...

Overview

This PR bumps basecamp-sdk/go from v0.2.2 to v0.3.0 across three files: go.mod (version line), go.sum (corresponding hashes), and internal/version/sdk-provenance.json (tracking metadata). There are zero logic changes in the CLI repository itself — the bug fix (correcting search query params) lives entirely in the SDK.

Security risks

No security concerns. The change updates a first-party SDK dependency to a newer version. No new dependencies are introduced, no auth or crypto code is touched, and no new network endpoints are added in this repo.

Level of scrutiny

This is a minimal-scrutiny change. Dependency version bumps with only metadata file changes are among the most mechanical PRs possible. The PR description includes a thorough test plan covering the search behavior fix, other endpoint non-regression, and full CI passage.

Other factors

The CODEOWNERS file has a catch-all * rule, but no files in this diff have specific targeted ownership rules. The PR is well-documented with before/after behavior and a comprehensive test plan. No bugs were found by the automated bug hunting system. The minor version bump (0.2 → 0.3) introduces intentional behavioral changes in the SDK, but those changes are the explicit purpose of this PR (fixing search relevance).

@jeremy jeremy merged commit bfd9cb8 into main Mar 9, 2026
30 checks passed
@jeremy jeremy deleted the search branch March 9, 2026 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working deps sdk SDK wrapper and provenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants