I'm working with Gitlab Feature Flags and to use them in my Java project I'm using unleash-java. The problem is that in this library it seems that I can't change from my code the values of the feature flags, but just from Gitlab. Is there a way to do it? Maybe using another library?
Can Gitlab feature flags be modified by code with unleash java?
157 Views Asked by Librorio Tribio At
1
There are 1 best solutions below
Related Questions in JAVA
- I need the BIRT.war that is compatible with Java 17 and Tomcat 10
- Creating global Class holder
- No method found for class java.lang.String in Kafka
- Issue edit a jtable with a pictures
- getting error when trying to launch kotlin jar file that use supabase "java.lang.NoClassDefFoundError"
- Does the && (logical AND) operator have a higher precedence than || (logical OR) operator in Java?
- Mixed color rendering in a JTable
- HTTPS configuration in Spring Boot, server returning timeout
- How to use Layout to create textfields which dont increase in size?
- Function for making the code wait in javafx
- How to create beans of the same class for multiple template parameters in Spring
- How could you print a specific String from an array with the values of an array from a double array on the same line, using iteration to print all?
- org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Postgres && statement Error in Mybatis Mapper?
Related Questions in GITLAB
- There are no active runners online GitLab
- Error rising in gitlab configuration file
- Git commit asks for passphrase which I don't remember
- On Gitlab, is there a way to allow Maintaners to merge MRs even if some checks fail?
- Jenkins pipeline script: Accept merge request from Gitlab
- How to integrate GitLab code into SAP DataServices job?
- How to use dynamic value for start_in using environment variable in gitlab pipeline child job
- Replace React Variables in build folder before serving the build by express Server
- Gitlab CI/CD pipeline not destroying created Terraform created resources
- DevOps Preference: Point Solutions or Single Platform?
- GitLab release-job creates a release where asset is artifacts.zip instead of concrete file
- How to run particular jobs in GitLab CI/CD via GitLab API?
- How to start from a clean stage after maven release job fails in GitLab pipeline?
- Gitlab 16.10: The scheduler failed to assign job to the runner, please try again or contact system administrator
- Gitlab-runner cann't connect to gitlab server
Related Questions in FEATURE-FLAGS
- Switch between static and dynamic Azure App Configuration service
- Does FeatureGate attribute causes overhead?
- Can LaunchDarkly internally communicates with organization's external service for feature flag evaluation
- RabbitMq-server required feature flag not enabled! It must be enabled before upgrading RabbitMQ
- LaunchDarkly Example Doesn't Work in .NET Class Library but Does in a ConsoleApp
- How to disable a feature flag in just one environment?
- How to dump the feature flags into a JSON file within the project folder when Gitlab pipeline runs
- How to run Azure CLI command line application in C# web application
- How to skip TLS verification in flagsmith?
- How to access Feature Flags from AWS AppConfig with TypeScript project?
- How to set up local unleash client for feature flag?
- Can Gitlab feature flags be modified by code with unleash java?
- Gitlab feature flag have a review approval?
- PostHogs onFeatureFlags callback function being called multiple times
- How to use ConditionalOnProperty on method level
Related Questions in UNLEASH
- Fetch all stickness parameters that are included in a FF rollout
- Can Gitlab feature flags be modified by code with unleash java?
- How to set up local unleash client for feature flag?
- is there a way to get all flags from Unleash in react?
- unleash-android-proxy-sdk not working for Android-Java project
- Need help in configuring unleash on HTTPS
- Module makes injectables undefined with WebSocketGateway
- Setting up Unleash Edge on AWS App Runner
- Is there a way to use unleash-client-java with an Unleash Proxy?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
As per GitLab's documentation, answer to your question is Yes. It is possible to update the GitLab feature flag https://docs.gitlab.com/ee/api/feature_flags.html#update-a-feature-flag
To get a feature flag use
You have to pass your Git Access token in the header named PRIVATE-TOKEN
and response will be like below
Now as you can see this feature flag is active now. You can disable it using below end point
and the json body to update required field. For e.g. I passed below to toggle the state.
And it worked perfectly.
Note: If you are using unleash in your application to read the feature flag, then keep in mind that the feature flag's updates will be reflected only after the cache is expired.
Cache can be configured by setting
fetchTogglesIntervalBelow is a Java UnleashConfig bean