-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(flags): Update instructions for remote config settings #28705
Conversation
The code to retrieve remote config settings is the same whether or not the paylod is encrypted. This commit updates the instructions to reflect that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR updates the feature flag instructions to ensure consistent handling of remote configuration settings across SDKs, regardless of payload encryption status.
- Renamed
ENCRYPTED_PAYLOAD_LIBRARIES
toREMOTE_CONFIGURATION_LIBRARIES
in/frontend/src/scenes/feature-flags/FeatureFlagCodeOptions.tsx
for better clarity - Added new
remoteConfiguration
andencryptedPayload
props to snippets in/frontend/src/scenes/feature-flags/FeatureFlagSnippets.tsx
- Added clear messaging about payload decryption handling in code examples
- Updated library selection logic in
/frontend/src/scenes/feature-flags/FeatureFlagInstructions.tsx
to be based on remote configuration status - Standardized remote configuration API endpoint handling across server-side SDKs
3 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
Size Change: 0 B Total Size: 1.21 MB ℹ️ View Unchanged
|
📸 UI snapshots have been updated4 snapshot changes in total. 0 added, 4 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thanks for updating
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
Problem
The instructions for unencrypted remote config settings is incorrect.
The code to retrieve remote config settings is the same whether or not the payload is encrypted.
This commit updates the instructions to reflect that.
Changes
Unencrypted instructions:
Encrypted instructions:
The code is the same, but there's an extra line explaining how the decryption works.
Does this work well for both Cloud and self-hosted?
Yes
How did you test this code?
Manually