-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Is your feature request related to a problem? Please describe.
Switcher Resolver Node, which is the API all Client SDK consumes supports now Relay dataset from the GraphQL route used by capturing the snapshot of your Domain.
There is a feature gap (not issue) when we set up Relays into Switchers. Relays are elements that require remote API access by design. We cannot make Client SDKs call those services without going through Resolver Node.
It can be a valid situation if we need to consider if a Switcher has a Relay, for example:
During local testing, I want my Switcher that contains a Relay configured to return false if enabled so I can guarantee I am not missing any Switcher validation.
Or, I can bypass a Relay even if enabled, so I can run tests without having access to the Remote API
Describe the solution you'd like
- Add Relay (status, type) to snapshot request payload
- Resolve Switcher as disabled if Relay is enabled
- Resolve Switcher as enabled if Relay is disabled
- Ignore or restrict Relay status verification through global context settings
switcher.relay.restrictor programmatically via SwitcherBuilder
Switchers.getSwitcher(MY_SWITCHER)
.restrictRelay(false)
.build();