Skip to content

Filter gauge listings by chosen projects - #1049

Merged
robzolkos merged 3 commits into
mainfrom
gauges-project-filter
Nov 22, 2026
Merged

robzolkos merged 3 commits into
mainfrom
gauges-project-filter

Conversation

@robzolkos

@robzolkos robzolkos commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

gauges list --in <project> previously ignored the selected project and returned account-wide gauges. It now sends the explicit project through the SDK, and --projects accepts an ordered, comma-separated and repeatable list of project IDs or names. The two forms cannot be combined; without either, listing remains account-wide and ignores the configured default project.

Bumps the SDK from v0.36.0 to v0.37.0, the first released version carrying GaugeListOptions.BucketIDs from basecamp/basecamp-sdk#1081, using make bump-sdk REF=v0.37.0. Adapts the overdue-report signature with page 0 to preserve its existing first-page request, documents that behavior, and syncs the vendored MCP model and snapshot to the release. No new SDK service methods were introduced in this bump.

Adds request-level coverage for IDs, names, aliases, ordered multi-project filters, ambient scope, conflicting filters and invalid input. Updates CLI help, the agent skill, API coverage and the surface snapshot.

Validation: bin/ci passed, including all 566 BATS tests and the pinned v2.11.1 linter. Runtime verification against isolated local bc3 captured baseline --in returning both gauges and the changed binary returning only the requested project's gauge. Ordered and repeated filters matched an independent API read; name resolution and empty-filter errors also passed. Temporary gauge settings were restored and the server stopped. Evidence run: 20261121-230800-gauges-project-filter.

Card: https://app.basecamp.com/2914079/buckets/48521764/card_tables/cards/10476950614

The card has no comments and a search of existing CLI PRs found no implementation of this filter. The card remains unchanged.


Summary by cubic

gauges list --in <project> previously ignored the selected project and returned account-wide gauges. It now sends the explicit project through the SDK, and a new repeatable --projects flag accepts an ordered, comma-separated list of project IDs or names. The two filter forms cannot be combined; without either, listing stays account-wide and ignores the configured default project.

SDK bump and overdue report

  • Bumps the SDK to v0.37.0 for GaugeListOptions.BucketIDs support, syncs the vendored MCP model, and refreshes the Nix vendor hash.
  • Passes page 0 to the overdue-report call (preserving its first-page request) and documents in help that only the first page is returned and how truncation is reported.

Tests

  • Adds request-level coverage for IDs, names, ordered multi-project filters, ambient scope, conflicting filters, and invalid input.
  • bin/ci passes, including all 566 BATS tests and the pinned linter.

Written for commit 2546cd8. Summary will update on new commits.

View guided diff Turn on auto-fix

Copilot AI balanced review requested due to automatic review settings November 22, 2026 04:17
@github-actions github-actions Bot added commands CLI command implementations sdk SDK wrapper and provenance tests Tests (unit and e2e) skills Agent skills docs deps labels Nov 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The SDK dependency bump leaves a stale vendorHash in nix/package.nix, breaking the Nix flake build.

1 open issue
What changed in this PR

This PR adds explicit project filtering to gauge listings while keeping unfiltered listings account-wide.

Changes:

  • Supports single-project filters and ordered, repeatable --projects filters, with validation and request-level tests.
  • Upgrades the SDK to v0.37.0 and synchronizes provenance and the vendored MCP model.
  • Updates help, documentation, and snapshots, including the overdue report’s first-page behavior.

[!TIP]
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

File Description
skills/​basecamp/​SKILL.md Documents gauge filters and condenses discovery guidance.
internal/​version/​sdk-provenance.json Records SDK v0.37.0 provenance.
internal/​mcpserver/​testdata/​catalog_snapshot.txt Clarifies overdue-report pagination.
internal/​mcpserver/​model/​PROVENANCE.json Records the updated model source.
internal/​mcpserver/​model/​openapi.json Syncs pagination and project options from the SDK.
internal/​commands/​reports.go Adapts the overdue-report call and documents first-page results.
internal/​commands/​gauges.go Implements explicit project filters and validation.
internal/​commands/​gauges_test.go Covers filtering, ordering, ambient scope, and invalid input.
go.sum Updates SDK checksums.
go.mod Upgrades the SDK dependency.
API-COVERAGE.md Records gauge-filter support.
.surface Adds the --projects flag snapshot.

Review effort: Balanced

Comment thread go.mod Resolved
Copilot AI balanced review requested due to automatic review settings November 22, 2026 04:26
Copilot AI previously approved these changes Nov 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approved

No active review issues block approval of the gauge-filtering change.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@robzolkos
robzolkos force-pushed the gauges-project-filter branch from bd78aad to b13b242 Compare November 22, 2026 22:21
Copilot AI balanced review requested due to automatic review settings November 22, 2026 22:21
Copilot AI dismissed their stale review, a newer Copilot review was requested November 22, 2026 22:21
@robzolkos
robzolkos marked this pull request as ready for review November 22, 2026 22:21
@robzolkos

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review rebased head b13b242 for correctness, regressions, project-filter flag behavior, and the SDK v0.37.0 integration. Local bin/ci passed after the rebase.

@robzolkos
robzolkos requested a review from a team as a code owner November 22, 2026 22:21
@robzolkos

Copy link
Copy Markdown
Collaborator Author

@codex security review

Please review rebased head b13b242, focusing on project/account scoping, invalid or conflicting project filters, and any unintended expansion to account-wide results.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T22:51:04.811079Z 2546cd8 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: b13b2421f3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: b13b2421f3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The documented truncation path is incorrect for normal JSON output, so users following it may miss that overdue todos were omitted.

1 open issue

Review effort: Balanced

Comment thread internal/commands/reports.go Resolved
Copilot AI balanced review requested due to automatic review settings November 22, 2026 22:27
Copilot AI previously approved these changes Nov 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approved

No active review issues remain for the gauge-list project filtering changes.

1 open issue

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 22, 2026 22:32
Copilot AI dismissed their stale review, a newer Copilot review was requested November 22, 2026 22:32
@robzolkos

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review final head 7a58239, including project/account scoping and filter validation. Since the clean reviews on b13b242, the only changes refresh the Nix vendorHash for the rebased dependency tree (verified with make update-nix-hash and a successful Nix build) and correct the overdue help's JSON metadata path. Full bin/ci passed on this head.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 7a58239990

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copilot AI previously approved these changes Nov 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approved

No active review issues remain for the gauge-filtering update and related SDK synchronization.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@robzolkos
robzolkos force-pushed the gauges-project-filter branch from 7a58239 to 2546cd8 Compare November 22, 2026 22:49
Copilot AI balanced review requested due to automatic review settings November 22, 2026 22:49
Copilot AI dismissed their stale review, a newer Copilot review was requested November 22, 2026 22:49
@robzolkos

Copy link
Copy Markdown
Collaborator Author

@codex review

Please confirm the rebased head 2546cd8. The gauge implementation, its tests, and overdue help are unchanged from the clean review on 7a58239. Rebased onto cc1b3ad and resolved only the generated Nix vendorHash conflict by regenerating and verifying a successful Nix build. Full bin/ci passed. Preparing to merge once checks and reviews are clear.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 2546cd8ce3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approved

No active review issues are reported for the gauge-filtering and SDK updates.

No open issues 🎉

Review effort: Balanced

@robzolkos
robzolkos merged commit 56884dc into main Nov 22, 2026
42 checks passed
@robzolkos
robzolkos deleted the gauges-project-filter branch November 22, 2026 22:57
jeremy added a commit that referenced this pull request Nov 23, 2026
…950575

* origin/main:
  Keep a person's client flag when it is false (#1055)
  Filter gauge listings by chosen projects (#1049)
  Say how to recover a broken connect.json, and keep reporting around it (#1053)
  Support schedule entry drafts, highlights, and join links (#1019)
  Let auth login reach a beta preview on a private network (#1054)
  Resubscribe the feed when its socket stays connected and stops delivering (#1056)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands CLI command implementations deps docs sdk SDK wrapper and provenance skills Agent skills tests Tests (unit and e2e)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants