Skip to content

events: migrate SystemTasks to DB#8159

Merged
BeryJu merged 15 commits intomainfrom
events/migrate-tasks-db
Jan 24, 2024
Merged

events: migrate SystemTasks to DB#8159
BeryJu merged 15 commits intomainfrom
events/migrate-tasks-db

Conversation

@BeryJu
Copy link
Copy Markdown
Member

@BeryJu BeryJu commented Jan 13, 2024

Details

REPLACE ME


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 changes to the frontend have been made

  • The code has been formatted (make web)
  • The translation files have been updated (make i18n-extract)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make website)

@BeryJu BeryJu requested review from a team as code owners January 13, 2024 21:49
@netlify
Copy link
Copy Markdown

netlify bot commented Jan 13, 2024

Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit c0e8350
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/65b11df321ba0200085406b3

@github-actions
Copy link
Copy Markdown
Contributor

authentik translations instructions

Thanks for your pull request!

authentik translations are handled using Transifex. Please edit translations over there and they'll be included automatically.

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 13, 2024

Codecov Report

Attention: 26 lines in your changes are missing coverage. Please review.

Comparison is base (9ed2b74) 92.33% compared to head (c0e8350) 92.33%.

Files Patch % Lines
authentik/outposts/tasks.py 73.68% 5 Missing ⚠️
authentik/events/models.py 92.00% 4 Missing ⚠️
authentik/sources/oauth/tasks.py 66.66% 3 Missing ⚠️
authentik/blueprints/v1/tasks.py 75.00% 2 Missing ⚠️
authentik/events/system_tasks.py 96.49% 2 Missing ⚠️
authentik/events/tasks.py 66.66% 2 Missing ⚠️
authentik/events/api/tasks.py 98.24% 1 Missing ⚠️
authentik/events/signals.py 87.50% 1 Missing ⚠️
authentik/providers/scim/api/providers.py 75.00% 1 Missing ⚠️
authentik/providers/scim/tasks.py 91.66% 1 Missing ⚠️
... and 4 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8159      +/-   ##
==========================================
- Coverage   92.33%   92.33%   -0.01%     
==========================================
  Files         626      626              
  Lines       30917    30921       +4     
==========================================
+ Hits        28548    28550       +2     
- Misses       2369     2371       +2     
Flag Coverage Δ
e2e 50.65% <58.87%> (-0.02%) ⬇️
integration 26.13% <42.60%> (-0.04%) ⬇️
unit 89.58% <89.94%> (-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.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 14, 2024

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-events-migrate-tasks-db-1706108974-c0e8350
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

For arm64, use these values:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-events-migrate-tasks-db-1706108974-c0e8350-arm64
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
image:
    repository: ghcr.io/goauthentik/dev-server
    tag: gh-events-migrate-tasks-db-1706108974-c0e8350

For arm64, use these values:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
image:
    repository: ghcr.io/goauthentik/dev-server
    tag: gh-events-migrate-tasks-db-1706108974-c0e8350-arm64

Afterwards, run the upgrade commands from the latest release notes.

BeryJu added 11 commits January 24, 2024 13:43
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu force-pushed the events/migrate-tasks-db branch from 08ee66d to 99f1204 Compare January 24, 2024 12:46
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu force-pushed the events/migrate-tasks-db branch from c4d8f65 to c0ea169 Compare January 24, 2024 13:18
…ck to module path

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Copy link
Copy Markdown
Contributor

@kensternberg-authentik kensternberg-authentik left a comment

Choose a reason for hiding this comment

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

I've reviewed only the changes to the Web components, but they look well-made.

return html``;
}

export function EventUser(event: EventWithContext, truncateUsername?: number): TemplateResult {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yay! Deduplication is ❤️.

@BeryJu BeryJu merged commit 96b2a1a into main Jan 24, 2024
@BeryJu BeryJu deleted the events/migrate-tasks-db branch January 24, 2024 16:23
kensternberg-authentik added a commit that referenced this pull request Jan 25, 2024
* main: (109 commits)
  translate: Updates for file web/xliff/en.xlf in fr (#8296)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in fr (#8295)
  website: update wording (#8290)
  enterrpise: exclude inactive users from license (#8294)
  web: bump API Client version (#8292)
  core: compile backend translations (#8291)
  events: migrate SystemTasks to DB (#8159)
  web/admin: fix footer links not being parsed on settings page (#8289)
  root: fix system check warnings (#8277)
  web: bump API Client version (#8288)
  enterprise: add full audit log [AUTH-458] (#8177)
  web: bump the esbuild group in /web with 2 updates (#8282)
  web: bump the sentry group in /web with 1 update (#8281)
  web: bump @codemirror/lang-html from 6.4.7 to 6.4.8 in /web (#8283)
  core: bump bandit from 1.7.6 to 1.7.7 (#8285)
  core: bump selenium from 4.16.0 to 4.17.2 (#8284)
  core: bump github.com/go-openapi/runtime from 0.26.2 to 0.27.0 (#8287)
  core: bump github.com/google/uuid from 1.5.0 to 1.6.0 (#8286)
  website/docs: Improve example nginx reverse proxy config (#8160)
  translate: Updates for file web/xliff/en.xlf in zh_CN (#8274)
  ...
@sentry
Copy link
Copy Markdown

sentry bot commented Jan 25, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ TypeError: Object of type UUID is not JSON serializable json.encoder in default View Issue

Did you find this useful? React with a 👍 or 👎

kensternberg-authentik added a commit that referenced this pull request Jan 25, 2024
* main: (76 commits)
  core: compile backend translations (#8311)
  translate: Updates for file web/xliff/en.xlf in zh-Hans (#8304)
  translate: Updates for file web/xliff/en.xlf in zh_CN (#8305)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in zh_CN (#8300)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in zh-Hans (#8301)
  events: fix missing labels on prometheus metrics (#8309)
  core: bump goauthentik.io/api/v3 from 3.2023106.4 to 3.2023106.5 (#8302)
  web: bump the wdio group in /tests/wdio with 4 updates (#8303)
  web: restore test anchor tag (#8298)
  translate: Updates for file web/xliff/en.xlf in fr (#8296)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in fr (#8295)
  website: update wording (#8290)
  enterrpise: exclude inactive users from license (#8294)
  web: bump API Client version (#8292)
  core: compile backend translations (#8291)
  events: migrate SystemTasks to DB (#8159)
  web/admin: fix footer links not being parsed on settings page (#8289)
  root: fix system check warnings (#8277)
  web: bump API Client version (#8288)
  enterprise: add full audit log [AUTH-458] (#8177)
  ...
kensternberg-authentik added a commit that referenced this pull request Jan 25, 2024
* main: (131 commits)
  web: provide a context for checking the status of the enterprise license (#8153)
  core: compile backend translations (#8311)
  translate: Updates for file web/xliff/en.xlf in zh-Hans (#8304)
  translate: Updates for file web/xliff/en.xlf in zh_CN (#8305)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in zh_CN (#8300)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in zh-Hans (#8301)
  events: fix missing labels on prometheus metrics (#8309)
  core: bump goauthentik.io/api/v3 from 3.2023106.4 to 3.2023106.5 (#8302)
  web: bump the wdio group in /tests/wdio with 4 updates (#8303)
  web: restore test anchor tag (#8298)
  translate: Updates for file web/xliff/en.xlf in fr (#8296)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in fr (#8295)
  website: update wording (#8290)
  enterrpise: exclude inactive users from license (#8294)
  web: bump API Client version (#8292)
  core: compile backend translations (#8291)
  events: migrate SystemTasks to DB (#8159)
  web/admin: fix footer links not being parsed on settings page (#8289)
  root: fix system check warnings (#8277)
  web: bump API Client version (#8288)
  ...
kensternberg-authentik added a commit that referenced this pull request Jan 25, 2024
* main: (119 commits)
  web: provide a context for checking the status of the enterprise license (#8153)
  core: compile backend translations (#8311)
  translate: Updates for file web/xliff/en.xlf in zh-Hans (#8304)
  translate: Updates for file web/xliff/en.xlf in zh_CN (#8305)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in zh_CN (#8300)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in zh-Hans (#8301)
  events: fix missing labels on prometheus metrics (#8309)
  core: bump goauthentik.io/api/v3 from 3.2023106.4 to 3.2023106.5 (#8302)
  web: bump the wdio group in /tests/wdio with 4 updates (#8303)
  web: restore test anchor tag (#8298)
  translate: Updates for file web/xliff/en.xlf in fr (#8296)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in fr (#8295)
  website: update wording (#8290)
  enterrpise: exclude inactive users from license (#8294)
  web: bump API Client version (#8292)
  core: compile backend translations (#8291)
  events: migrate SystemTasks to DB (#8159)
  web/admin: fix footer links not being parsed on settings page (#8289)
  root: fix system check warnings (#8277)
  web: bump API Client version (#8288)
  ...
kensternberg-authentik added a commit that referenced this pull request Jan 25, 2024
* main: (30 commits)
  web: clear out selecteds list after an API event to ensure a fresh copy of the policies-to-delete list (#8125)
  web: provide dual-list multiselect with pagination (#8004)
  web: provide a context for checking the status of the enterprise license (#8153)
  core: compile backend translations (#8311)
  translate: Updates for file web/xliff/en.xlf in zh-Hans (#8304)
  translate: Updates for file web/xliff/en.xlf in zh_CN (#8305)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in zh_CN (#8300)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in zh-Hans (#8301)
  events: fix missing labels on prometheus metrics (#8309)
  core: bump goauthentik.io/api/v3 from 3.2023106.4 to 3.2023106.5 (#8302)
  web: bump the wdio group in /tests/wdio with 4 updates (#8303)
  web: restore test anchor tag (#8298)
  translate: Updates for file web/xliff/en.xlf in fr (#8296)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in fr (#8295)
  website: update wording (#8290)
  enterrpise: exclude inactive users from license (#8294)
  web: bump API Client version (#8292)
  core: compile backend translations (#8291)
  events: migrate SystemTasks to DB (#8159)
  web/admin: fix footer links not being parsed on settings page (#8289)
  ...
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.

2 participants