Skip to content

Incorrect audit logs when changing segment rules #8867

Closed

Description

@bakirFS

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 segment matching rules are updated for segment "reproduce", 2 audit logs get written.

  1. New Segment created: reproduce - incorrect since the segment already existed
  2. Segment updated: Rules data: [object Object] - shows [object Object] instead of actual value. The API responds with the changes, we just need to fix how we display them

Steps To Reproduce

  1. Create a segment
  2. Update conditions
  3. Inspect audit logs, there will be three: 1. Segment created (correct) 2. Segment created (incorrect) 3. Segment rule updated [object Object]

Expected behavior

When segment rules are updated, we want to log and display that change

Screenshots

Image Image Image

Activity

  1. added theissue type on Nov 3, 2026
  2. changed the title [-]Audit logs for changing segment rules[/-] [+]Incorrect audit logs when changing segment rules[/+] on Nov 3, 2026
  3. self-assigned this
    on Nov 6, 2026
  4. khvn26 commented on Nov 9, 2026

    @khvn26
    Member

    Fix to be released as part of #8891

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions