Delete unused segment / override endpoints

Aperta
#8,544 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
api, backend

Direzione di ricerca

Trace the API implementation for POST /api/v1/features/feature-segments/ and PUT/PATCH /api/v1/features/feature-segments/{id}/, then identify the corresponding routes and tests. Verify the endpoints are no longer exposed while other feature-segment behavior remains available, and update or add endpoint tests to cover the accepted methods.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

While covering all grounds for feature dependency cycle validation in https://github.com/Flagsmith/flagsmith/issues/8412, some endpoints in our API were found to have no use, and still cost maintenance.

POST /api/v1/features/feature-segments/ is never used in the frontend, in neither of Feature Versioning v1 or v2.

PUT / PATCH /api/v1/features/feature-segments/{id}/ do not represent any real use case: it makes no sense to change the segment or the feature of an override object once it's created.

Acceptance criteria

  • The verb POST on the endpoint /api/v1/features/feature-segments/ no longer exists in the API.
  • The verbs PUT and PATCH on the endpoint /api/v1/features/feature-segments/{id}/ no longer exist in the API.
Lingua principale
Python
Stelle
7.1k
Fork
603
Merge medio
3g 8h
PR unite (30g)
102

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Flagsmith/flagsmith

Tutte le issue di Flagsmith/flagsmith

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.