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

Aberta
#8,930 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
68/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
python

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
Python
Estrelas
7.1k
Forks
603
Merge médio
3d 8h
PRs com merge (30d)
102

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de Flagsmith/flagsmith

Todas as issues de Flagsmith/flagsmith

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.