-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1451 from AlexsLemonade/dev
[HOTFIX] Deploy a couple minor changes to prod
- Loading branch information
Showing
6 changed files
with
60 additions
and
9 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
22 changes: 22 additions & 0 deletions
22
common/data_refinery_common/migrations/0023_fix_platform_names_spaces.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,22 @@ | ||
|
||
from django.db import migrations | ||
from data_refinery_common.utils import get_supported_rnaseq_platforms | ||
from django.core.paginator import Paginator | ||
|
||
def make_sample_platform_names_readable(apps, schema_editor): | ||
Sample = apps.get_model('data_refinery_common', 'Sample') | ||
|
||
for platform_name in get_supported_rnaseq_platforms(): | ||
munged_platform = platform_name.replace(' ', '') | ||
Sample.objects.all().filter(platform_name=munged_platform).update(platform_name=platform_name) | ||
print("Updating platform name from \'%s\' to \'%s\'" % (munged_platform, platform_name)) | ||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('data_refinery_common', '0022_auto_20190607_1505'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(make_sample_platform_names_readable) | ||
] |
18 changes: 18 additions & 0 deletions
18
common/data_refinery_common/migrations/0024_dataset_processor_jobs.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,18 @@ | ||
# Generated by Django 2.1.8 on 2019-07-26 18:41 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('data_refinery_common', '0023_fix_platform_names_spaces'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='dataset', | ||
name='processor_jobs', | ||
field=models.ManyToManyField(through='data_refinery_common.ProcessorJobDatasetAssociation', to='data_refinery_common.ProcessorJob'), | ||
), | ||
] |
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