With offlineHandler and without offlineMode, the client always serves flags from the local json file even thought flagsmith server is available
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- nodejs, typescript
- Domain
- backend
Research direction
Start with the linked offline-handler documentation and trace how offlineHandler and offlineMode are interpreted when the server is available. Reproduce the behavior with a local JSON environment document and an available server, then confirm whether the documented expectation is correct and capture the intended behavior in a test or documentation update.
Written by the indexing model from the issue text.
Description
Hello,
We are using flagsmith inhouse in local evaluation mode.
We were trying to implement offline handler as described in the second point here
Our expectation is:-
If flagsmith server is available then use the environment document fetched from the server for the flag evaluation.
If flagsmith server is unavailable then use the environment document present in the .json file in the local.
Actual Behaviour:-
Even if flagsmith server is available, the flags are served from the .json file in the local
Note:-we only have offlineHandler set. The offlineMode is false
Can someone please clarify if our expectation is correct? If yes then why its not behaving this way?
Thanks!
- Dominant language
- TypeScript
- Stars
- 30
- Forks
- 27
- Avg merge
- 20h 52m
- Merged PRs (30d)
- 6
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Flagsmith/flagsmith-nodejs-client
-
Difficulty 4/5 3-5 days Newbie friendliness 65/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Dependency Dashboard Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Flagsmith/flagsmith-nodejs-client#273 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
Flagsmith/flagsmith-nodejs-client#267 · 5 comments ·
All issues in Flagsmith/flagsmith-nodejs-client
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
bug v2
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
modelcontextprotocol/inspector#2458 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
carbon-design-system/ibm-products#9907 ·