authentik icon indicating copy to clipboard operation
authentik copied to clipboard

"Last edited" column for policies, mappings, providers, etc.

Open headlesssetup opened this issue 4 months ago • 4 comments

Is your feature request related to a problem?

The policies table (Customization -> Policies) has 3 columns: Name (sortable), Type (unsortable), and Actions. I'd like to have a "last edited" column so I can easily sort and see the policies I am working on or that somebody recently changed on top. Otherwise I have to hunt for them by name.

This applies to many other tables: Property Mappings, Files, Flows, Stages, Providers, Apps, etc.

I know this should be possible because some tables already have this column. Reputation Scores have a sortable "Updated" column and Blueprints have "Last applied" column.

Describe the solution you'd like

No response

Describe alternatives that you've considered

I tried not having the column and it was not very convenient.

Additional context

2026.5.4

headlesssetup avatar Jul 20 '26 15:07 headlesssetup

I'd like to work on this. @dewi-tik @headlesssetup

Proposed approach

Start with Policies, since Policy already inherits CreatedUpdatedModel (created / last_updated), but those fields are not exposed on PolicySerializer or the Policies list UI.

Plan for Policies:

  1. Expose last_updated (and optionally created) on PolicySerializer
  2. Regenerate the OpenAPI / TS client
  3. Add a sortable "Last updated" column on PolicyListPage, matching the existing Reputation Scores pattern (Timestamp(...) + sort key)

Scope question for maintainers

Other requested tables (Providers, Applications, Flows, Stages, Property Mappings, Files) do not currently have last_updated on the model, so they would need schema/migrations (and Files may need a different approach).

Would you prefer:

  • A) Policies-only in this PR, then follow-ups per resource type, or
  • B) also add CreatedUpdatedModel (or equivalent) to the other admin objects in the same PR?

Happy to go with whichever you prefer.

habiibullahm avatar Jul 24 '26 18:07 habiibullahm

Hey @habiibullahm, are you still working on it? I can pick it up if not.

shaisabm avatar Aug 18 '26 23:08 shaisabm

I'll take the Policies-only slice (option A from @habiibullahm's plan) unless someone already has a PR in flight.

Scope:

  • Expose last_updated on PolicySerializer
  • Regen OpenAPI / TS client if needed
  • Add a sortable "Last updated" column on PolicyListPage, matching the Reputation Scores Timestamp(...) pattern

If @habiibullahm or @shaisabm already has a branch about to open, I'll stand down. Otherwise I'll send the PR shortly.

mitre88 avatar Aug 19 '26 01:08 mitre88

@mitre88 I've actually got option A written already.

shaisabm avatar Aug 19 '26 01:08 shaisabm