-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored some code, changed views to ModelViewSets and added /check-status/ endpoint to the upload task detail endpoint
- Loading branch information
Showing
12 changed files
with
339 additions
and
202 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
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
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
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
49 changes: 49 additions & 0 deletions
49
api/migrations/0029_uploadtask_bro_delivery_url_alter_importtask_status_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,49 @@ | ||
# Generated by Django 5.0.1 on 2024-04-09 09:47 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("api", "0028_rename_last_updated_uploadtask_updated_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="uploadtask", | ||
name="bro_delivery_url", | ||
field=models.CharField(blank=True, max_length=500, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="importtask", | ||
name="status", | ||
field=models.CharField( | ||
blank=True, | ||
choices=[ | ||
("PENDING", "Pending"), | ||
("PROCESSING", "Processing"), | ||
("COMPLETED", "Completed"), | ||
("FAILED", "Failed"), | ||
("UNFINISHED", "Unfinished"), | ||
], | ||
default="PENDING", | ||
max_length=20, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="uploadtask", | ||
name="status", | ||
field=models.CharField( | ||
blank=True, | ||
choices=[ | ||
("PENDING", "Pending"), | ||
("PROCESSING", "Processing"), | ||
("COMPLETED", "Completed"), | ||
("FAILED", "Failed"), | ||
("UNFINISHED", "Unfinished"), | ||
], | ||
default="PENDING", | ||
max_length=20, | ||
), | ||
), | ||
] |
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
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
Oops, something went wrong.