Skip to content

tools: replace active_only with include_inactive in search_members#99

Merged
emsearcy merged 1 commit into
mainfrom
feat/search-members-include-inactive
Jun 8, 2026
Merged

tools: replace active_only with include_inactive in search_members#99
emsearcy merged 1 commit into
mainfrom
feat/search-members-include-inactive

Conversation

@emsearcy

@emsearcy emsearcy commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Replace the ActiveOnly *bool field (which defaulted to true via a nil-pointer check) with IncludeInactive bool. The zero value now correctly expresses the default — Active memberships only — without requiring a pointer or nil sentinel.

The tool description and jsonschema tag are updated to name example non-Active statuses (Purchased, Expired, Completed) so callers know what they are opting into when setting include_inactive=true.

Non-breaking change: active_only was introduced in v0.10.0, which has not yet been released to production, so no callers depend on it.

Changes

  • SearchMembersArgs: ActiveOnly *boolIncludeInactive bool
  • handleSearchMembers: filter logic simplified from nil-check to !args.IncludeInactive
  • Tool description + jsonschema tag updated accordingly

🤖 Generated with GitHub Copilot (via OpenCode)

Replace the ActiveOnly *bool field (which defaulted to true via nil
check) with IncludeInactive bool. The zero value now correctly
expresses the default — Active memberships only — without requiring a
pointer or nil sentinel.

Update the tool description and jsonschema tag to name example
non-Active statuses (Purchased, Expired, Completed) so callers know
what they are opting into.

Assisted-by: github-copilot:claude-sonnet-4.6
Signed-off-by: Eric Searcy <eric@linuxfoundation.org>
Copilot AI review requested due to automatic review settings June 8, 2026 21:49

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.

Pull request overview

This PR updates the search_members MCP tool argument contract to use a non-pointer boolean (include_inactive) instead of a *bool sentinel (active_only), making the default behavior (“Active-only”) naturally represented by the zero value while keeping the implementation and tool documentation aligned.

Changes:

  • Replaced SearchMembersArgs.ActiveOnly *bool with SearchMembersArgs.IncludeInactive bool.
  • Simplified the status filter logic in handleSearchMembers to apply status:Active unless include_inactive=true.
  • Updated the tool description and jsonschema tag text to clarify which non-Active statuses may be included.

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

@emsearcy emsearcy merged commit 5a3dbe1 into main Jun 8, 2026
8 checks passed
@emsearcy emsearcy deleted the feat/search-members-include-inactive branch June 8, 2026 22:54
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