Skip to content

Commit

Permalink
feat(setup): add corrupted state to production views
Browse files Browse the repository at this point in the history
  • Loading branch information
martastain committed May 9, 2024
1 parent 1b35a8f commit da1eb62
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions backend/setup/defaults/views.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
from nebula.enum import ObjectStatus
from nebula.settings.models import ViewSettings

normal_states = [
ObjectStatus.OFFLINE,
ObjectStatus.ONLINE,
ObjectStatus.CREATING,
ObjectStatus.RESET,
ObjectStatus.CORRUPTED,
]

VIEWS: list[ViewSettings] = [
ViewSettings(
id=1,
name="Main",
position=1,
folders=[1, 2],
states=[0, 1, 2, 5, 11],
states=normal_states,
columns=[
"qc/state",
"title",
Expand All @@ -22,7 +31,7 @@
name="Fill",
position=2,
folders=[5, 6, 7, 8],
states=[0, 1, 2, 5, 11],
states=normal_states,
columns=[
"qc/state",
"title",
Expand All @@ -37,7 +46,7 @@
name="Music",
position=3,
folders=[4],
states=[0, 1, 2, 5, 11],
states=normal_states,
columns=[
"qc/state",
"title",
Expand All @@ -51,7 +60,7 @@
name="Stories",
position=4,
folders=[3],
states=[0, 1, 2, 5, 11],
states=normal_states,
columns=[
"qc/state",
"title",
Expand All @@ -64,7 +73,7 @@
name="Commercials",
position=5,
folders=[9, 10],
states=[0, 1, 2, 5, 11],
states=normal_states,
columns=[
"qc/state",
"title",
Expand All @@ -90,7 +99,7 @@
name="Trash",
separator=True,
position=50,
states=[3],
states=[ObjectStatus.TRASHED],
columns=[
"title",
"subtitle",
Expand All @@ -103,7 +112,7 @@
id=51,
name="Archive",
position=51,
states=[4, 11],
states=[ObjectStatus.ARCHIVED, ObjectStatus.RETRIEVING],
columns=[
"title",
"subtitle",
Expand Down

0 comments on commit da1eb62

Please sign in to comment.