Delete unused segment / override endpoints

Offen
#8,544 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
72/100
Issue-Typ
Refactoring
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
api, backend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.
Vorherrschende Sprache
Python
Sterne
7.1k
Forks
603
Ø Merge
3 T. 8 Std.
Gemergte PRs (30 T.)
102

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Flagsmith/flagsmith

Alle Issues in Flagsmith/flagsmith

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.