You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(flags): switch local evaluation endpoint to /flags/definitions (#119)
* feat(flags): switch local evaluation endpoint to /flags/definitions
* fix(tests): check /flags/definitions before /flags/ in mock client to avoid path collision
* fix(tests): use exact paths in mock client and test assertions
Match /flags/definitions for local eval and /flags/? for decide endpoint
instead of ambiguous prefix matching on /flags/
* fix(tests): use exact decide path /flags/? in assertions to avoid matching /flags/definitions
* fix(flags): throw on non-200 responses when loading flag definitions
Rust returns 401 as a plain text body without a JSON 'detail' key,
unlike Django which returned JSON. Check the HTTP status code first
so auth failures are caught regardless of response format.
* fix(tests): update test assertions for /flags/definitions path and non-200 error handling
- Use exact path matching for decide endpoint (/flags/?) vs definitions (/flags/definitions)
- Update ETag test to expect exception on 500 responses (loadFlags now throws on non-200)
* fix(flags): log non-200 responses instead of throwing exceptions
* fix(flags): set 401 status code in wrong key test
0 commit comments