You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds lookups by name for features and segments, so that callers which know a
project UUID and a name -- but not a UUID -- can resolve an entity. This is
what the Terraform provider needs to offer `flagsmith_feature` and
`flagsmith_segment` data sources.
Both are built on a shared `searchProjectResources` helper. Two things about
the API are worth knowing:
- Features filter on `search`, segments filter on `q`. Passing the wrong one is
silently ignored and returns every result in the project.
- Both filters are case insensitive "contains" matches, so results have to be
filtered client side for an exact match. Without that, asking for `flag`
could return `flagship`.
Pages are requested as `page=N` against the client's configured base URL rather
than by following DRF's `next` link, which is built from the incoming request
host and so can be unreachable behind a self hosted reverse proxy.
Segment names are not unique within a project, so a name that matches more than
one segment returns MultipleSegmentsFoundError rather than picking arbitrarily.
Feature names are uniquely indexed, so the equivalent feature error is
defensive only.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments