stages/prompt: field name (#4497)
* add prompt field name Signed-off-by: Jens Langhammer <jens@goauthentik.io> * remove numerical prefix Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix missing name Signed-off-by: Jens Langhammer <jens@goauthentik.io> * use text field Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add description label Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add migrate blueprint to remove old stages Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add task to remove unretrievable blueprints Signed-off-by: Jens Langhammer <jens@goauthentik.io> * lint Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix blueprint test paths Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix tests Signed-off-by: Jens Langhammer <jens@goauthentik.io> * actually fix tests Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix tests even more Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix fixtures Signed-off-by: Jens Langhammer <jens@goauthentik.io> Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
70
blueprints/migrations/migrate-prompt-name.yaml
Normal file
70
blueprints/migrations/migrate-prompt-name.yaml
Normal file
@ -0,0 +1,70 @@
|
||||
version: 1
|
||||
metadata:
|
||||
labels:
|
||||
blueprints.goauthentik.io/description: Migrate to 2023.2, remove unused prompt fields
|
||||
name: Migration - Remove old prompt fields
|
||||
entries:
|
||||
- model: authentik_stages_prompt.prompt
|
||||
identifiers:
|
||||
name: admin_email_stage-default-oobe-password
|
||||
attrs:
|
||||
field_key: foo
|
||||
label: foo
|
||||
type: text
|
||||
state: absent
|
||||
- model: authentik_stages_prompt.prompt
|
||||
identifiers:
|
||||
name: attributes.settings.locale_default-user-settings
|
||||
attrs:
|
||||
field_key: foo
|
||||
label: foo
|
||||
type: text
|
||||
state: absent
|
||||
- model: authentik_stages_prompt.prompt
|
||||
identifiers:
|
||||
name: email_default-user-settings
|
||||
attrs:
|
||||
field_key: foo
|
||||
label: foo
|
||||
type: text
|
||||
state: absent
|
||||
- model: authentik_stages_prompt.prompt
|
||||
identifiers:
|
||||
name: name_default-user-settings
|
||||
attrs:
|
||||
field_key: foo
|
||||
label: foo
|
||||
type: text
|
||||
state: absent
|
||||
- model: authentik_stages_prompt.prompt
|
||||
identifiers:
|
||||
name: oobe-header-text_stage-default-oobe-password
|
||||
attrs:
|
||||
field_key: foo
|
||||
label: foo
|
||||
type: text
|
||||
state: absent
|
||||
- model: authentik_stages_prompt.prompt
|
||||
identifiers:
|
||||
name: password_default-password-change-prompt
|
||||
attrs:
|
||||
field_key: foo
|
||||
label: foo
|
||||
type: text
|
||||
state: absent
|
||||
- model: authentik_stages_prompt.prompt
|
||||
identifiers:
|
||||
name: password_repeat_default-password-change-prompt
|
||||
attrs:
|
||||
field_key: foo
|
||||
label: foo
|
||||
type: text
|
||||
state: absent
|
||||
- model: authentik_stages_prompt.prompt
|
||||
identifiers:
|
||||
name: username_default-source-enrollment-prompt
|
||||
attrs:
|
||||
field_key: foo
|
||||
label: foo
|
||||
type: text
|
||||
state: absent
|
||||
Reference in New Issue
Block a user