Comments (4)
I'll talk with the team and get back to you soon. Thank you for this clarification. Not having tags on a response that was filtered by tags isn't desirable in REST API convention.
from unleash-client-node.
SDK will fetch definitions and keep it up to date in the background, not when calling instance.getFeatureToggleDefinitions()
. You can specify tags on initialization, as explained here: readme#advanced-usage. I hope this covers your use case. We will consider adding tags to the output of feature definitions in the future, so that it's possible to filter it afterwards.
Not closing, because if information is hard to find, we might consider it a documentation bug.
cc @thomasheartman
from unleash-client-node.
Thanks for the answer,
I'm using tags on initialization, this is my case:
I' start the client with this tags: "X", "Y", "Z", then I want to expose a endpoint to retrieve only features for one of them, for example "X", In this scenario I have to get features for "X", "Y", "Z" and after that I'm filtering using a prefix in the name.
What do you recommend do? Should I initialize one client by tag? still filtering by substring in the name? or in this endpoint call the http API?
Thanks again :D
from unleash-client-node.
Hi @Gaspar1234
Yes, you can instantiate different clients with different tag configurations to achieve what you want. If you instantiate them in the same context in your application and use the same refreshInterval they should be able to stay in sync with negligible difference.
If you are using the pro / enterprise version you could group the feature toggles in a project and use the project name to filter the toggles.
It would be interesting to learn more about your use-case and architecture. Would you have time to flesh out your example?
from unleash-client-node.
Related Issues (20)
- Bootstrap option with startUnleash method HOT 6
- client is ready but not registered or synchronized HOT 7
- feat: resend metrics at next interval if it fails
- startUnleash functions doesn't return when called multiple times HOT 2
- Need to be able to proxy request.ts get and post calls the call through tunnel HOT 3
- Unleash SDK interface can return undefined if the feature by name does not exist HOT 1
- Unleash Metrics error: network timeout HOT 1
- Security Vulnerability: http-cache-semantics vulnerable to Regular Expression Denial of Service HOT 2
- Access to raw data HOT 6
- Upgrade make-fetch-happen library to fix synk issues HOT 7
- Replace vulnerable ip dependency HOT 6
- Unleash client stops fetching HOT 1
- NPM audit failing due to vulnerability in `ip` dependency HOT 5
- Network Timeout Error in Unleash Client HOT 3
- Clean backup on 401 http status code HOT 2
- Removed instance ID HOT 2
- The future of `instanceId`, semver and deprecation timelines HOT 3
- Default to not creating files and clean up flies created during unit tests. HOT 1
- Property 'on' does not exist on type 'Unleash'.ts(2339) HOT 1
- appName cannot contain spaces HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unleash-client-node.