OpenFeature: route type mismatch and missing targeting key errors through error hooks
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Start by reviewing follow-up #214 and the PostHog OpenFeature provider, then inspect the OpenFeature Elixir SDK's hook lifecycle for :type_mismatch and :targeting_key_missing. Coordinate the upstream SDK change, update the provider and minimum dependency version as needed, and add real-client integration tests with recording hooks covering both errors and ordinary disabled flags.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context
Follow-up to #214 (https://github.com/PostHog/posthog-elixir/pull/214).
The new OpenFeature provider surfaces :type_mismatch and :targeting_key_missing as successful resolution tuples containing reason: :error and the appropriate error_code. In open_feature 0.1.3, these run after hooks rather than error hooks. Python and Node throw the corresponding OpenFeature errors, which their SDKs route to error hooks.
Expected behavior
When a flag is read with an incompatible type or no targeting key/default distinct ID is available:
- Return the caller's default with the appropriate OpenFeature error code.
- Invoke registered
errorhooks, not successfulafterhooks. - Preserve
finallyhook execution. - Do not route ordinary disabled/unmatched flags through error hooks.
Approach
Coordinate an upstream Elixir OpenFeature SDK change to support these error categories and route them through its error-hook lifecycle while preserving their codes. Then update the PostHog provider and minimum supported dependency version as needed. Simply raising a generic exception is insufficient if it changes the public error code to :general.
Add integration tests using the real OpenFeature client and recording hooks for both error cases and ordinary disabled flags.
This is a follow-up and should not block #214.
- Lingua principale
- Elixir
- Stelle
- 66
- Fork
- 33
- Merge medio
- 1g 22h
- PR unite (30g)
- 21
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PostHog/posthog-elixir
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
PostHog/posthog-elixir#209 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
PostHog/posthog-elixir#149 ·
I maintainer di solito rispondono entro 1 giorno
-
bug enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
PostHog/posthog-elixir#147 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
PostHog/posthog-elixir#146 ·
I maintainer di solito rispondono entro 1 giorno
-
Add public bounded flush APIApertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
PostHog/posthog-elixir#145 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di PostHog/posthog-elixir
Issue simili
-
@swmansion/popcorn: published .d.ts files lack extensions on relative imports, breaking moduleResolution node16/nodenextForse già presa @Huyvux12 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
software-mansion/popcorn#929 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
ash-project/ash#3127 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug: Table layout and date column are cut off on mobile screens on the Tournaments -> History pageApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
hexlet-codebattle/codebattle#2375 ·
-
Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
wintermeyer/vutuv#2388 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100