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
feat: allow null flagSetId Selector, restrict Selector to single key-value-pairs (#1708) (#1811)
## This PR
This pull request updates the `Selector` logic in the flag store to
allow selecting flags without a flagSetId (`flagSetId=`).
It also restricts selector expressions to a single key-value pair, and
updates / skips related tests. This is a temporary limitation pending a
decision on the selector syntax (#1708).
### Related Issues
<!-- add here the GitHub issue that this PR resolves if applicable -->
#1708
### Follow-up Tasks
TODO: we should decide on the selector syntax
### How to test
* run `make run-flagd-selector-demo`
* experiment with queries & flag configurations with/without flagSetIds
(be aware that the top level flagSetId is setting the flagSetId for all
flags without already exisiting flagSetId):
```
grpcurl -d '{"selector":"flagSetId=example"}' -import-path schemas/protobuf/flagd/sync/v1/ -proto sync.proto -plaintext localhost:8015 flagd.sync.v1.FlagSyncService/SyncFlags | jq
grpcurl -d '{"selector":"flagSetId="}' -import-path schemas/protobuf/flagd/sync/v1/ -proto sync.proto -plaintext localhost:8015 flagd.sync.v1.FlagSyncService/SyncFlags | jq
```
Signed-off-by: Alexandra Oberaigner <[email protected]>
0 commit comments