mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-17 19:09:11 +03:00
update
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
+20
-1
@@ -1,4 +1,4 @@
|
||||
# Generated by Django 5.2.15 on 2026-06-15 15:51
|
||||
# Generated by Django 5.2.15 on 2026-06-16 11:54
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
@@ -19,6 +19,25 @@ class Migration(migrations.Migration):
|
||||
verbose_name="Tasks that must complete for this task to run.",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="task",
|
||||
name="aggregated_status",
|
||||
field=models.TextField(
|
||||
choices=[
|
||||
("waiting_for_dependencies", "Waiting For Dependencies"),
|
||||
("queued", "Queued"),
|
||||
("consumed", "Consumed"),
|
||||
("preprocess", "Preprocess"),
|
||||
("running", "Running"),
|
||||
("postprocess", "Postprocess"),
|
||||
("rejected", "Rejected"),
|
||||
("done", "Done"),
|
||||
("info", "Info"),
|
||||
("warning", "Warning"),
|
||||
("error", "Error"),
|
||||
]
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="task",
|
||||
name="state",
|
||||
@@ -20,6 +20,7 @@ from authentik.tenants.models import Tenant
|
||||
class TaskStatus(models.TextChoices):
|
||||
"""Task aggregated status. Reported by the task runners"""
|
||||
|
||||
WAITING_FOR_DEPENDENCIES = TaskState.WAITING_FOR_DEPENDENCIES
|
||||
QUEUED = TaskState.QUEUED
|
||||
CONSUMED = TaskState.CONSUMED
|
||||
PREPROCESS = TaskState.PREPROCESS
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* @export
|
||||
*/
|
||||
export const LastTaskStatusEnum = {
|
||||
WaitingForDependencies: "waiting_for_dependencies",
|
||||
Queued: "queued",
|
||||
Consumed: "consumed",
|
||||
Preprocess: "preprocess",
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* @export
|
||||
*/
|
||||
export const TaskAggregatedStatusEnum = {
|
||||
WaitingForDependencies: "waiting_for_dependencies",
|
||||
Queued: "queued",
|
||||
Consumed: "consumed",
|
||||
Preprocess: "preprocess",
|
||||
|
||||
+1
@@ -17,6 +17,7 @@
|
||||
* @export
|
||||
*/
|
||||
export const TaskStatusEnum = {
|
||||
WaitingForDependencies: "waiting_for_dependencies",
|
||||
Queued: "queued",
|
||||
Consumed: "consumed",
|
||||
Preprocess: "preprocess",
|
||||
|
||||
@@ -42645,6 +42645,7 @@ components:
|
||||
- zh-hant
|
||||
LastTaskStatusEnum:
|
||||
enum:
|
||||
- waiting_for_dependencies
|
||||
- queued
|
||||
- consumed
|
||||
- preprocess
|
||||
@@ -56745,6 +56746,7 @@ components:
|
||||
- uid
|
||||
TaskAggregatedStatusEnum:
|
||||
enum:
|
||||
- waiting_for_dependencies
|
||||
- queued
|
||||
- consumed
|
||||
- preprocess
|
||||
|
||||
@@ -20,6 +20,9 @@ export class TaskStatus extends AKElement {
|
||||
|
||||
render(): TemplateResult {
|
||||
switch (this.status) {
|
||||
case TaskAggregatedStatusEnum.WaitingForDependencies:
|
||||
case LastTaskStatusEnum.WaitingForDependencies:
|
||||
return html`<ak-label color=${PFColor.Gray}>${msg("Waiting for dependencies")}</ak-label>`;
|
||||
case TaskAggregatedStatusEnum.Queued:
|
||||
case LastTaskStatusEnum.Queued:
|
||||
return html`<ak-label color=${PFColor.Gray}>${msg("Waiting to run")}</ak-label>`;
|
||||
|
||||
Reference in New Issue
Block a user