-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes to importer #203
Merged
pinarpink
merged 16 commits into
elixir-luxembourg:fixes-to-importer
from
vildead:fixes-to-importer
Apr 8, 2021
Merged
Fixes to importer #203
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
f9656be
fix: include external contacts if they do exist
vildead 5acf017
typo: README.md import command
vildead 0d039e7
typo: factories.py
vildead c94ac48
update solr schema files for docker
neoflex faf5cac
chore(deps): bump django from 2.2.13 to 2.2.18
dependabot[bot] a8ba4bf
unknown ContactType is imported as Other with warn
vildead 22f02ac
test of local affiliation - name OR acronym match
vildead 8429c02
include data declaration title in warning
vildead 37d94f0
removing .lower() from case insensitive search
vildead 85417f7
unknown contact type to "Other" + warning
vildead 2f5eddb
process_local_contact(),process_external_contact()
vildead f1aea4e
cohort fields - URL and Ethics notes
vildead e832e55
new ContactType - 'Researcher'
vildead fb5d551
cohort import - if exists -> update
vildead 913acaf
typo: data declaration template object reference
vildead e28d689
add contact_types to dataset/project import tests
vildead File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
[ | ||
{ | ||
"name": "Researcher" | ||
}, | ||
{ | ||
"name": "Principal_Investigator" | ||
}, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 2.2.13 on 2021-03-24 23:11 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0013_userestriction_use_class_note'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='cohort', | ||
name='cohort_web_page', | ||
field=models.URLField(blank=True, help_text='If the cohort has a webpage, please provide its URL link here.', verbose_name='Cohorts URL page'), | ||
), | ||
migrations.AddField( | ||
model_name='cohort', | ||
name='ethics_notes', | ||
field=models.TextField(blank=True, default='', help_text='Provide notes on ethics approval. If it does not exist, please state justifications here.', null=True, verbose_name='Ethics Approval notes'), | ||
), | ||
] |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not get_or_create by just title? The more you increase parameters to get_or_create the more likely you will create new records for same cohort.