forked from HumanSignal/label-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ext] Storage delete toggle (HumanSignal#1541)
* [ext] Storage delete toggle * Remove DELETION_FROM_S3_ENABLED_FOR_ORGS * Remove fixture Co-authored-by: nik <[email protected]>
- Loading branch information
1 parent
de05dc9
commit 722358a
Showing
6 changed files
with
60 additions
and
13 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 |
---|---|---|
|
@@ -368,8 +368,6 @@ | |
TASK_LOCK_DEFAULT_TTL = int(get_env('TASK_LOCK_DEFAULT_TTL', 3600)) | ||
TASK_LOCK_MIN_TTL = int(get_env('TASK_LOCK_MIN_TTL', 120)) | ||
|
||
DELETION_FROM_S3_ENABLED_FOR_ORGS = get_env_list_int('DELETION_FROM_S3_ENABLED_FOR_ORGS', []) | ||
|
||
# Email backend | ||
FROM_EMAIL = get_env('FROM_EMAIL', 'Label Studio <[email protected]>') | ||
EMAIL_BACKEND = get_env('EMAIL_BACKEND', 'django.core.mail.backends.dummy.EmailBackend') | ||
|
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
38 changes: 38 additions & 0 deletions
38
label_studio/io_storages/migrations/0007_auto_20210928_1252.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,38 @@ | ||
# Generated by Django 3.1.13 on 2021-09-28 12:52 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('io_storages', '0006_auto_20210906_1323'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='azureblobexportstorage', | ||
name='can_delete_objects', | ||
field=models.BooleanField(blank=True, help_text='Deletion from storage enabled', null=True, verbose_name='can_delete_objects'), | ||
), | ||
migrations.AddField( | ||
model_name='gcsexportstorage', | ||
name='can_delete_objects', | ||
field=models.BooleanField(blank=True, help_text='Deletion from storage enabled', null=True, verbose_name='can_delete_objects'), | ||
), | ||
migrations.AddField( | ||
model_name='localfilesexportstorage', | ||
name='can_delete_objects', | ||
field=models.BooleanField(blank=True, help_text='Deletion from storage enabled', null=True, verbose_name='can_delete_objects'), | ||
), | ||
migrations.AddField( | ||
model_name='redisexportstorage', | ||
name='can_delete_objects', | ||
field=models.BooleanField(blank=True, help_text='Deletion from storage enabled', null=True, verbose_name='can_delete_objects'), | ||
), | ||
migrations.AddField( | ||
model_name='s3exportstorage', | ||
name='can_delete_objects', | ||
field=models.BooleanField(blank=True, help_text='Deletion from storage enabled', null=True, verbose_name='can_delete_objects'), | ||
), | ||
] |
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