Skip to content

core: add updated_at field to user#15571

Merged
rissson merged 8 commits intogoauthentik:mainfrom
josegomezr:feat/user_timestamps
Aug 4, 2025
Merged

core: add updated_at field to user#15571
rissson merged 8 commits intogoauthentik:mainfrom
josegomezr:feat/user_timestamps

Conversation

@josegomezr
Copy link
Contributor

Details

Brings updated_at and created_at fields to the core user model.

Additionally filters are also provided for exact value, greater than, less than against the new timestamp dates.

Closes #15570


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If applicable (not sure if it is)

  • The documentation has been updated

@josegomezr josegomezr requested review from a team as code owners July 15, 2025 12:02
@netlify
Copy link

netlify bot commented Jul 15, 2025

Deploy Preview for authentik-docs canceled.

Name Link
🔨 Latest commit 1470555
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6890b2b3b1ffc60008487563

@netlify
Copy link

netlify bot commented Jul 15, 2025

Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit 1470555
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6890b2b33434870008024a98

@netlify
Copy link

netlify bot commented Jul 15, 2025

Deploy Preview for authentik-integrations canceled.

Name Link
🔨 Latest commit 1470555
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6890b2b3a5d5650008f89575

@codecov
Copy link

codecov bot commented Jul 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.70%. Comparing base (ab1f87c) to head (1470555).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #15571      +/-   ##
==========================================
+ Coverage   92.59%   92.70%   +0.11%     
==========================================
  Files         831      831              
  Lines       44508    44550      +42     
==========================================
+ Hits        41210    41301      +91     
+ Misses       3298     3249      -49     
Flag Coverage Δ
e2e 46.78% <20.45%> (+0.91%) ⬆️
integration 23.60% <20.45%> (-0.01%) ⬇️
unit 90.83% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@josegomezr josegomezr changed the title feat: Add timestamps (created_at, updated_at) to core user model core: Add timestamps (created_at, updated_at) to user model Jul 15, 2025
- Add created_at and updated_at to the authentik core user model.
- Add filters for the API for exact match, less than and greater than.
@josegomezr josegomezr force-pushed the feat/user_timestamps branch from 3a33e47 to 4dcfcbc Compare July 15, 2025 12:17
- Drop `created_at` field in favor of pre-existing `date_joined`
- Align `updated_at` with `authentik.lib.models.CreatedUpdatedModel`
@rissson rissson changed the title core: Add timestamps (created_at, updated_at) to user model core: add updated_at field to user Jul 16, 2025
Copy link
Member

@BeryJu BeryJu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

q about index, otherwise LGTM

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
@rissson rissson enabled auto-merge (squash) August 4, 2025 12:32
@rissson rissson disabled auto-merge August 4, 2025 12:54
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
@rissson rissson enabled auto-merge (squash) August 4, 2025 13:16
@rissson rissson merged commit ba72536 into goauthentik:main Aug 4, 2025
105 checks passed
kensternberg-authentik added a commit that referenced this pull request Aug 6, 2025
* main: (77 commits)
  website/integrations: add hass-openid instructions (#14672)
  core: add updated_at field to user (#15571)
  root: Add more opencontainer labels to Dockerfiles (#15923)
  core: bump goauthentik.io/api/v3 from 3.2025064.2 to 3.2025064.3 (#15949)
  core, providers/ldap: add parent/child groups to api and ldap results (#14974)
  web: Make Webdriver optional during install. (#15952)
  core, web: update translations (#15945)
  packages/django-dramatiq-postgres: fix typo (#15932)
  web: bump API Client version (#15942)
  core: fix flow planner checking against wrong user when creating recovery link (#15390)
  providers/saml: configuration for default NameID Policy (#15109)
  core: bump boto3 from 1.39.15 to v1.40.1 (#15926)
  core: bump jsii from 1.112.0 to v1.113.0 (#15927)
  core: bump argon2-cffi-bindings from 21.2.0 to v25.1.0 (#15925)
  core: bump aiohttp from 3.12.14 to v3.12.15 (#15924)
  core: bump opentelemetry-api from 1.35.0 to v1.36.0 (#15928)
  web/admin: fix variable name (#15934)
  policies: fix typo (#15933)
  web: bump @sentry/browser from 9.43.0 to 10.0.0 in /web in the sentry group across 1 directory (#15911)
  core: bump github.com/prometheus/client_golang from 1.22.0 to 1.23.0 (#15908)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filtering users by created at and/or last updated at

3 participants