Repository navigation
api: replace orjson with msgspec - #23528
Conversation
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #23528 +/- ##
==========================================
+ Coverage 93.21% 93.23% +0.01%
==========================================
Files 1039 1041 +2
Lines 60865 60907 +42
Branches 424 424
==========================================
+ Hits 56738 56788 +50
+ Misses 4127 4119 -8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-53e1180577de9eb12dded48e406973cb7e32f4b8
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-53e1180577de9eb12dded48e406973cb7e32f4b8Afterwards, run the upgrade commands from the latest release notes. |
…mplicit (fall through) returns' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> Signed-off-by: Jens L. <[email protected]>
Details
What does this PR change?
Replace orjson with msgspec as a json encoder and parser
Additional note: this also removes the browser api UI from DRF since msgspec always outputs compact json, and that UI makes it unreadable. Let's instead rely on our browser to render json in a readable manner.
Why is this change needed?
orjson doesn't support free threading
How was this tested?
with existing tests
see https://msgspec.dev/benchmarks#json-serialization for upstream benchmarks
Linked issues
Checklist
make all)make docs)