-
Notifications
You must be signed in to change notification settings - Fork 4.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
feat: add new .env variable "LANGFLOW_MVP_COMPONENTS" to show/hide integration sidebar components #4253
Closed
Conversation
This file contains 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
…rect visibility of integrations in the sidebar based on the value of mvp_components.
…nding setter function setMvpComponents to manage MVP components in the application.
…orresponding setter function setMvpComponents to manage MVP components in the utility store.
…n the extra sidebar to enhance functionality and user experience.
…nents configuration option in useGetConfig hook
…de-supported package to clean up unnecessary information
dosubot
bot
added
size:M
This PR changes 30-99 lines, ignoring generated files.
documentation
Improvements or additions to documentation
enhancement
New feature or request
labels
Oct 23, 2024
github-actions
bot
added
enhancement
New feature or request
and removed
enhancement
New feature or request
documentation
Improvements or additions to documentation
labels
Oct 23, 2024
dosubot
bot
added
size:L
This PR changes 100-499 lines, ignoring generated files.
and removed
size:M
This PR changes 30-99 lines, ignoring generated files.
labels
Oct 23, 2024
ogabrielluiz
requested changes
Oct 23, 2024
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.
However, this needs to be controlled on the frontend. Does the feature flag added to the backend have the capability to influence frontend behavior? |
📝 (endpoints.py): modify get_config function to include feature_flags in the response 📝 (feature_flags.py): add mvp_components field to FeatureFlags settings 📝 (schemas.py): add feature_flags field to ConfigResponse schema
dosubot
bot
added
size:M
This PR changes 30-99 lines, ignoring generated files.
and removed
size:L
This PR changes 100-499 lines, ignoring generated files.
labels
Oct 24, 2024
Please follow up the PR #427 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
Description
This pull request introduces a new .env variable: LANGFLOW_MVP_COMPONENTS. This variable will allow for the dynamic control of displaying or hiding the integration sidebar components based on the environment configuration.
Key Changes
Added a new environment variable LANGFLOW_MVP_COMPONENTS.
Updated logic in the sidebar component to check the value of LANGFLOW_MVP_COMPONENTS and conditionally display integration components.
Updated documentation to include instructions for using the new .env variable.
How to Use
Add LANGFLOW_MVP_COMPONENTS=true or LANGFLOW_MVP_COMPONENTS=false to your .env file.
When set to true, the integration sidebar components will be visible.
When set to false, the integration sidebar components will be hidden.