Audit log entries for identity overrides have `change_type: UNKNOWN` and `change_details: []`

Offen
#8,930 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
68/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python

Rechercherichtung

Start by tracing the backend endpoint /api/v1/projects/{id}/audit/{id} and how it builds audit entries for identity feature overrides. Compare the returned change_type and change_details with audit responses for other changes, then add or update focused API tests for an identity override. Done means the response includes the correct change type and details.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

How are you running Flagsmith
  • Self Hosted with Docker
  • Self Hosted with Kubernetes
  • SaaS at flagsmith.com
  • Some other way (add details in description below)
Describe the bug

When you make an override for an identity, and go to audit logs (the FE calls /api/v1/projects/ID/audit/ID), the API response returns change_type: UNKNOWN and change_details : []

Steps To Reproduce
  1. Go to an identity
  2. Override a feature for that identity
  3. Inspect the audit log API response (api/v1/projects/id/audit/id)
Expected behavior

'change_type' and 'change_details' are returned in the correct way by the API

Screenshots

No response

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.