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?
154 Views Asked by Librorio Tribio At
1
There are 1 best solutions below
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in GITLAB
- I can push but not pull git
- Git first pull and push to master issue
- Can you create a project on GitLab using ssh?
- Adding A Certificate Authority in GitLab?
- GitLab shows deleted branches
- Files deleted with git filter-branch reappear after push and pull back
- Gitlab LDAP (Active Directory) Authentication without Server Side Access
- Cannot upgrade gitlab from 7.9.4
- GIT - Split working space by user (designer vs programmer)
- git diff not working on a bare repo, post-receive hook
- gitlab: Windows: How to use chmod and fix "Get Permission denied (publickey). fatal: Could not read from remote repository"
- git pull returns, fatal: protocol error: bad line length character: No s
- Custom post-receive hook with gitlab
- Installing GitLab CI Runner on Raspberry Pi 2 (Raspbian)
- From development to deployment with Git
Related Questions in FEATURE-FLAGS
- How to use ConditionalOnProperty on method level
- PostHogs onFeatureFlags callback function being called multiple times
- Gitlab feature flag have a review approval?
- Can Gitlab feature flags be modified by code with unleash java?
- How to set up local unleash client for feature flag?
- How to skip TLS verification in flagsmith?
- Feature Flag Capability
- Check if feature flag is on or off before before Cypress test runs
- Ngrx with feature flags - best practices
- AWS - AppConfig - Feature flags - CDK V1 - AppConfig Feature Flags Helper: Malformed 'Content' provided
- Azure Feature Flag is not updating after cache expiration
- Trying to think an approach for creating a feature flag in React
- Is there a way for enable/disable feature for all users with Launch Darkly?
- How to view all Feature Flags in views.py
- Java Spring Boot application to toggle between data sources (Configuration Classes)
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