Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This pull request introduces Hybrid Mode to the Switcher Go SDK, allowing users to selectively force remote evaluation on a per-call basis even when Local Mode is enabled. It adds the
Switcher.Remote()method, updates documentation to match, and includes comprehensive tests for the new behavior. Additionally, it improves formatting and vulnerability checks in the CI pipeline.Hybrid Mode (force remote evaluation):
forceRemotefield toSwitcherand implemented theRemote(force ...bool)method, enabling per-call override to force remote API usage even when Local Mode is active. PassingRemote(false)clears the override. Validation ensures this is only allowed when Local Mode is enabled. (switcher.go) [1] [2] [3] [4] [5]switcher_test.go)README.mdandARCHITECTURE.mdto describe Hybrid Mode, usage, and its effect on execution mode selection. Removed outdated TODOs and diagrams, and clarified the relationship between features and code. (README.md,ARCHITECTURE.md) [1] [2] [3] [4] [5]CI/CD and tooling improvements:
.github/workflows/master.yml,.github/workflows/staging.yml) and Makefile, ensuring code is properly formatted before tests run. (.github/workflows/master.yml,.github/workflows/staging.yml,Makefile) [1] [2] [3]govulncheckversion for vulnerability checks in CI and Makefile. (.github/workflows/master.yml,.github/workflows/sonar.yml,Makefile) [1] [2] [3]Minor documentation update:
README.md.