-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing PROCESSING status to DataStatus sort_order
- Loading branch information
1 parent
c510864
commit ed0a143
Showing
4 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ Changed | |
|
||
Fixed | ||
----- | ||
- Add status ``DataStatus.PROCESSING`` to the sort order | ||
|
||
|
||
=================== | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
resolwe/flow/migrations/0034_remove_data_idx_data_status_priority_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Generated by Django 4.2.16 on 2024-12-12 08:01 | ||
|
||
from django.db import migrations, models | ||
|
||
import resolwe.flow.models.base | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("flow", "0033_data_idx_data_status_priority"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveIndex( | ||
model_name="data", | ||
name="idx_data_status_priority", | ||
), | ||
migrations.AddIndex( | ||
model_name="data", | ||
index=models.Index( | ||
models.Case( | ||
models.When( | ||
status=resolwe.flow.models.base.DataStatus["ERROR"], | ||
then=models.Value(0), | ||
), | ||
models.When( | ||
status=resolwe.flow.models.base.DataStatus["PROCESSING"], | ||
then=models.Value(1), | ||
), | ||
models.When( | ||
status=resolwe.flow.models.base.DataStatus["UPLOADING"], | ||
then=models.Value(2), | ||
), | ||
models.When( | ||
status=resolwe.flow.models.base.DataStatus["PREPARING"], | ||
then=models.Value(3), | ||
), | ||
models.When( | ||
status=resolwe.flow.models.base.DataStatus["WAITING"], | ||
then=models.Value(4), | ||
), | ||
models.When( | ||
status=resolwe.flow.models.base.DataStatus["RESOLVING"], | ||
then=models.Value(5), | ||
), | ||
models.When( | ||
status=resolwe.flow.models.base.DataStatus["DONE"], | ||
then=models.Value(6), | ||
), | ||
), | ||
name="idx_data_status_priority", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters