João C. Fernandes
86e9798f5e
packages/django-postgres-cache: fix naive datetime warning ( #23033 )
...
* packages/django-postgres-cache: fix naive datetime warning when timeout=None with USE_TZ=True
The _base_set_expiry method in DatabaseCache returned datetime.max (a
timezone-naive value) when timeout=None, while the project runs with
USE_TZ=True.
This caused Django to emit a RuntimeWarning on every cache write that
passes timeout=None:
DateTimeField CacheEntry.expires received a naive datetime (...)
while time zone support is active.
* fix linting
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
---------
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
Co-authored-by: Marc 'risson' Schmitt <marc.schmitt@risson.space >
Co-authored-by: Jens Langhammer <jens@goauthentik.io >
2026-06-21 20:09:09 +00:00
Shane Mc Cormack
944158fb7d
packages/django-postgres-cache: remove custom get_or_set implementation ( #23182 )
2026-06-19 13:31:54 +02:00
Marc 'risson' Schmitt
5839b40efa
packages/django-postgres-cache: avoid regex queries when listing keys if possible ( #23160 )
...
Co-authored-by: Ryan Pesek <rpesek@cloudflare.com >
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space >
2026-06-17 12:58:02 +00:00
Marc 'risson' Schmitt
7a8a25a6ff
packages/django-postgres-cache: fix expiry and delete ( #21307 )
2026-04-01 14:28:40 +00:00
Marc 'risson' Schmitt
fd3196744e
packages/django-postgres-cache: rework to use ORM ( #17771 )
2026-03-31 17:05:14 +00:00
Jens L.
885f3b68b2
root: Python 3.14 ( #17313 )
...
* root: Python 3.14
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* update pydantic
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* bump kadmin
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* add krb5 stuff to compile on macos?
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* re-lock
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* trigger build
* lock uv
* bump to 3.14.2
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* output container logs if it failed to start
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* relock
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* target black and ruff to python 3.14
* upgrade pydatic from 2.11.7 to 2.12.5
* revert ruff to python 3.13 ruff checks
* bump docs
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* fix makefile
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
---------
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
Signed-off-by: Marcelo Elizeche Landó <marcelo@goauthentik.io >
Co-authored-by: Marcelo Elizeche Landó <marcelo@goauthentik.io >
2026-01-15 02:08:17 +01:00
Marc 'risson' Schmitt
27ceb3ccf3
packages/django-postgres-cache: use upsert instead of select/update in a transaction ( #17760 )
2025-10-28 15:00:54 +00:00
Jens L.
986f082b59
packages/django-postgres-cache: Initial implementation of postgres cache ( #16653 )
...
* start db cache
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* update codeowners
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* handle db error in keys
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* implement rest of the methods
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* fix unrelated warning on startup for cache
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* fix migrations?
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* add readme
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* dynamic dependency...?
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* types
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* rip out django_redis
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* format
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* fix tests?
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* fix get default
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* some cleanup
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* simplify to use ORM
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* remove old migrations that use cache instead of doing dynamic things
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* fix migration
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
* Update packages/django-postgres-cache/django_postgres_cache/models.py
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space >
* Update packages/django-postgres-cache/django_postgres_cache/migrations/0001_initial.py
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space >
* fix redis imports
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space >
* more redis removal
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space >
* lint
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space >
---------
Signed-off-by: Jens Langhammer <jens@goauthentik.io >
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space >
Co-authored-by: Marc 'risson' Schmitt <marc.schmitt@risson.space >
2025-10-02 16:01:28 +02:00