Git Product home page Git Product logo

Comments (4)

Tymek avatar Tymek commented on September 13, 2024 1

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.

Tymek avatar Tymek commented on September 13, 2024

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.

Gaspar1234 avatar Gaspar1234 commented on September 13, 2024

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.

FredrikOseberg avatar FredrikOseberg commented on September 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.