Skip to content

Add feature flag reads to the client - #4

Merged
saluc28 merged 1 commit into
mainfrom
claude/features-0.2.0
Aug 5, 2026
Merged

Add feature flag reads to the client#4
saluc28 merged 1 commit into
mainfrom
claude/features-0.2.0

Conversation

@saluc28

@saluc28 saluc28 commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Two flags decide whether the rest of this library behaves the way its
documentation says, and reaching them meant fetching /api/v2/features and
parsing it by hand. Features returns the set keyed by flag key, FeatureEnabled
answers for one.

The reason this is worth an API and not a note in the README:
opengraph_extension_management governs more than the extensions endpoint.
GetShortestPath branches on it at pathfinding.go:156 in v9.5.1, and with the
flag off the server answers from the built-in AD and Azure kinds alone, so a
path across the edges of an installed schema comes back as 404 path not found.
A correct graph and a switched off feature look identical from the outside.

An unknown key is an error rather than false, because false is exactly what a
disabled flag answers. Nothing is cached, since a flag can be toggled while a
collector is running.

Two flags decide whether the rest of this library behaves the way its
documentation says, and reaching them meant fetching /api/v2/features and
parsing it by hand. Features returns the set keyed by flag key, FeatureEnabled
answers for one.

The reason this is worth an API and not a note in the README:
opengraph_extension_management governs more than the extensions endpoint.
GetShortestPath branches on it at pathfinding.go:156 in v9.5.1, and with the
flag off the server answers from the built-in AD and Azure kinds alone, so a
path across the edges of an installed schema comes back as 404 path not found.
A correct graph and a switched off feature look identical from the outside.

An unknown key is an error rather than false, because false is exactly what a
disabled flag answers. Nothing is cached, since a flag can be toggled while a
collector is running.
@saluc28
saluc28 merged commit 8521fba into main Aug 5, 2026
9 checks passed
@saluc28
saluc28 deleted the claude/features-0.2.0 branch August 5, 2026 20:42
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.

1 participant