Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/services/file_manager/file_upload/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ class ItemStatus(str, Enum):
Enum type for item status where:
- REGISTERED means file is created by upload service but not complete yet. either in progress or fail.
- ACTIVE means file uploading is complete.
- ARCHIVED means the file has been deleted
- TRASHED means the file has been deleted
The status will be stored at metadata table.
"""

REGISTERED = 'REGISTERED'
ACTIVE = 'ACTIVE'
ARCHIVED = 'ARCHIVED'
TRASHED = 'TRASHED'

def __str__(self):
return self.name
Expand Down
4 changes: 2 additions & 2 deletions tests/app/utils/test_aggregated.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_search_file_should_return_200(requests_mock, mocker):
'parent': 'parent-id',
'parent_path': 'folder1',
'restore_path': None,
'archived': False,
'status': 'ACTIVE',
'type': 'file',
'zone': 0,
'name': 'test-file',
Expand All @@ -42,7 +42,7 @@ def test_search_file_should_return_200(requests_mock, mocker):
'parent': 'parent-id',
'parent_path': 'folder1',
'restore_path': None,
'archived': False,
'status': 'ACTIVE',
'type': 'file',
'zone': 0,
'name': 'test-file',
Expand Down