Skip to content

docs: add example of selector in rpc mode#1870

Merged
toddbaert merged 1 commit intomainfrom
docs/add-selector-rpc
Mar 7, 2026
Merged

docs: add example of selector in rpc mode#1870
toddbaert merged 1 commit intomainfrom
docs/add-selector-rpc

Conversation

@toddbaert
Copy link
Copy Markdown
Member

@toddbaert toddbaert commented Feb 11, 2026

We were missing an example of this (we have it in OFREP and sync.proto, but not evaluation.proto)

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
@toddbaert toddbaert requested review from a team as code owners February 11, 2026 20:46
@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 11, 2026

Deploy Preview for polite-licorice-3db33c ready!

Name Link
🔨 Latest commit b4b9e0c
🔍 Latest deploy log https://app.netlify.com/projects/polite-licorice-3db33c/deploys/698ceac15d7b1b00086eaf76
😎 Deploy Preview https://deploy-preview-1870--polite-licorice-3db33c.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Feb 11, 2026
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @toddbaert, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request improves the documentation by providing practical examples for utilizing the Flagd-Selector header in RPC mode. This addresses a previous gap in the cheat sheet, making it easier for users to understand and implement flag filtering when making gRPC calls.

Highlights

  • Documentation Update: Added a new section to the cheat sheet demonstrating how to use the Flagd-Selector header in RPC mode.
  • Example Usage: Included grpcurl examples for filtering flags using the Flagd-Selector header with both ResolveBoolean and ResolveAll RPC calls.
Changelog
  • docs/reference/cheat-sheet.md
    • Added a new section titled 'Using Selector Header' to illustrate flag filtering in RPC mode.
    • Included grpcurl command examples for ResolveBoolean and ResolveAll methods with the Flagd-Selector header.
Activity
  • No activity has occurred on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@toddbaert toddbaert requested a review from beeme1mr February 11, 2026 20:47
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds examples for using selectors with the gRPC evaluation API to the cheat sheet documentation. The new examples demonstrate how to filter flags using the Flagd-Selector header for both single flag resolution and resolving all flags. The changes are clear, correct, and consistent with the rest of the documentation. This is a valuable addition that was previously missing.

@toddbaert toddbaert merged commit 9ffab8f into main Mar 7, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants