forked from CenterForOpenScience/osf.io
-
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.
Merge branch 'feature/django_upgrade' of https://github.com/CenterFor…
…OpenScience/osf.io into upgrade-markdown * 'feature/django_upgrade' of https://github.com/CenterForOpenScience/osf.io: [ENG-3836] Follow-up: Add PyYAML to Requirements (CenterForOpenScience#9993) [ENG-3867] Create Storage Regions on post migration signal (CenterForOpenScience#9965) [ENG-3866] Move citation style population out of migration stream (CenterForOpenScience#9966) [ENG-3868] Move blocked email domains to post-migrate signal (CenterForOpenScience#9958) [ENG-3863] Move schema ensuring and schema blocks update to post-migrate signals (CenterForOpenScience#9974) [ENG-3865] Create Licenses using post-migrate signal (CenterForOpenScience#9961) [ENG-3836] Investigate waffle flags (CenterForOpenScience#9950) move createcachetable to post migrate signal (CenterForOpenScience#9944) remove post-migrate signals from migration stream (CenterForOpenScience#9964) [ENG-3898][ENG-3899]Model support for OutcomeArtifact update and delete (CenterForOpenScience#9989) Make OutcomeArtifact.identifier nullable (CenterForOpenScience#9986) [ENG-3894] Outcome models (CenterForOpenScience#9975) revert color picker to working version (CenterForOpenScience#9968)
- Loading branch information
Showing
16 changed files
with
1,675 additions
and
306 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.29 on 2022-07-14 18:50 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import django_extensions.db.fields | ||
import osf.models.base | ||
import osf.models.validators | ||
import osf.utils.outcomes | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('osf', '0245_auto_20220621_1950'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Outcome', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')), | ||
('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')), | ||
('_id', models.CharField(db_index=True, default=osf.models.base.generate_object_id, max_length=24, unique=True)), | ||
('title', models.TextField(validators=[osf.models.validators.validate_title])), | ||
('description', models.TextField(blank=True, default='')), | ||
('category', models.CharField(blank=True, choices=[('analysis', 'Analysis'), ('communication', 'Communication'), ('data', 'Data'), ('hypothesis', 'Hypothesis'), ('instrumentation', 'Instrumentation'), ('methods and measures', 'Methods and Measures'), ('procedure', 'Procedure'), ('project', 'Project'), ('software', 'Software'), ('other', 'Other'), ('', 'Uncategorized')], default='', max_length=255)), | ||
('affiliated_institutions', models.ManyToManyField(related_name='outcomes', to='osf.Institution')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
bases=(models.Model, osf.models.base.QuerySetExplainMixin), | ||
), | ||
migrations.CreateModel( | ||
name='OutcomeArtifact', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')), | ||
('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')), | ||
('_id', models.CharField(db_index=True, default=osf.models.base.generate_object_id, max_length=24, unique=True)), | ||
('artifact_type', models.IntegerField(choices=[(0, 'UNDEFINED'), (1, 'DATA'), (11, 'CODE'), (21, 'MATERIALS'), (31, 'PAPERS'), (41, 'SUPPLEMENTS'), (1001, 'PRIMARY')], default=osf.utils.outcomes.ArtifactTypes(0))), | ||
('title', models.TextField()), | ||
('description', models.TextField()), | ||
('identifier', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='artifact_metadata', to='osf.Identifier')), | ||
('outcome', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='artifact_metadata', to='osf.Outcome')), | ||
], | ||
options={ | ||
'ordering': ['artifact_type', 'title'], | ||
}, | ||
bases=(models.Model, osf.models.base.QuerySetExplainMixin), | ||
), | ||
migrations.AddField( | ||
model_name='outcome', | ||
name='artifacts', | ||
field=models.ManyToManyField(through='osf.OutcomeArtifact', to='osf.Identifier'), | ||
), | ||
migrations.AddField( | ||
model_name='outcome', | ||
name='node_license', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='outcomes', to='osf.NodeLicenseRecord'), | ||
), | ||
migrations.AddField( | ||
model_name='outcome', | ||
name='subjects', | ||
field=models.ManyToManyField(blank=True, related_name='outcomes', to='osf.Subject'), | ||
), | ||
migrations.AddField( | ||
model_name='outcome', | ||
name='tags', | ||
field=models.ManyToManyField(related_name='outcome_tagged', to='osf.Tag'), | ||
), | ||
migrations.AddIndex( | ||
model_name='outcomeartifact', | ||
index=models.Index(fields=['outcome', 'artifact_type'], name='osf_outcome_outcome_a62f5c_idx'), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='outcomeartifact', | ||
unique_together=set([('outcome', 'identifier', 'artifact_type')]), | ||
), | ||
] |
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,41 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.29 on 2022-07-25 15:39 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import osf.utils.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('osf', '0246_add_outcomes_and_artifacts'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='outcomeartifact', | ||
name='deleted', | ||
field=osf.utils.fields.NonNaiveDateTimeField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='outcomeartifact', | ||
name='finalized', | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.AlterField( | ||
model_name='outcomeartifact', | ||
name='description', | ||
field=models.TextField(blank=True), | ||
), | ||
migrations.AlterField( | ||
model_name='outcomeartifact', | ||
name='title', | ||
field=models.TextField(blank=True), | ||
), | ||
migrations.AlterField( | ||
model_name='outcomeartifact', | ||
name='artifact_type', | ||
field=models.IntegerField(choices=[(0, 'UNDEFINED'), (1, 'DATA'), (11, 'ANALYTIC_CODE'), (21, 'MATERIALS'), (31, 'PAPERS'), (41, 'SUPPLEMENTS'), (1001, 'PRIMARY')], default=osf.utils.outcomes.ArtifactTypes(0)), | ||
), | ||
] |
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
Oops, something went wrong.