Comments (21)
Thanks a lot @lazyfuhrer. I already have some work on this, but it is not complete. I can merge my stuff and let you continue on it. Sounds good?
from switchfeat.
Yeah sure!
from switchfeat.
@lazyfuhrer the foundation of the sdk api endpoint is in main branch. I also updated the issue description with some potential endpoints would be nice to have. Feel free to fork and go! any issue let me know.
from switchfeat.
Alright!
from switchfeat.
Will start working today on this
from switchfeat.
Hey, if you look at the segmentsService, you will find functions to access the segments already.
The API used by the UI gets the segments like this:
from switchfeat.
yup got it
from switchfeat.
Thanks for the PR. looks good so far. Would like to work on:
- get-conditions-by-segment
- get-rules-by-flag
As well as part of this PR?
from switchfeat.
For get-conditiiins-by-segment
You need to create a new function in the segmentService which given a segment key, returns the list of conditions. Pretty simple, conditions is a property of a single segment. Once you have the service function, you can expose it in an sdk API endpoint.
Same idea for the rules by flag. In the flagService add a function that given a flag key, returns the list of related rules.
from switchfeat.
yup fixed now. thanks
from switchfeat.
Hey, I'd like to work on this. Assign me @dev-bre
from switchfeat.
Give me an hour and I will push my stuff.
from switchfeat.
@lazyfuhrer do you have any plan when you would start working on this?
from switchfeat.
This is great! 💪
from switchfeat.
Is the function for getting all the segments already implemented or do I have to create it ? I see getFlags and evaluateFlags are already created.
from switchfeat.
Review #37
from switchfeat.
Sure. Can you tell me where are the implementation of these services ?
from switchfeat.
Cool
from switchfeat.
My build got failed after fetching from the latest upstream. check this. maybe some issue at switchfeat/ui
from switchfeat.
What's the error?
Please try npm ci
and see if this gets solved. I have no issues with the main branch.
from switchfeat.
now check #37
from switchfeat.
Related Issues (20)
- feat(api): refactor fetch api layer
- bug(docker): the docker image missing .env file
- feat(docs): basic documentation
- bug(ui): Flags rules - segments dropdown option not selectable
- feat: create actions audit
- bug(ui): flag switch state not in sync between flags list and edit flag view
- feat(ui): design dashboard HOT 20
- feat(api): apikey based access
- feat: add google authentication HOT 1
- bug(ui): login - 'view documentation' button broken link HOT 10
- feat(doc): add sdk api endpoints to documentation
- feat(sdk): build nodejs sdk
- feat(ui): global search HOT 2
- chore: configure prettier HOT 1
- feat(api): add support for numeric conditions match HOT 3
- feat(api): add support for datetime conditions match HOT 6
- feat(sdk): build .net sdk
- feat(sdk): build golang sdk
- The official website is not working ;( HOT 2
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 switchfeat.