-
Notifications
You must be signed in to change notification settings - Fork 0
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
New database model #239
base: master
Are you sure you want to change the base?
New database model #239
Conversation
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.
This is work in progress PR from what I observed, but in the right direction
.env-sample
Outdated
@@ -0,0 +1,2 @@ | |||
login= |
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.
please add the new credentials in the already existing config file settings.ini and add constant in settings.py which will make the credentials available in the app
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.
Done!
('collection', models.ManyToManyField(blank=True, to='ifbcat_api.Collection')), | ||
('operating_system', models.ManyToManyField(blank=True, to='ifbcat_api.OperatingSystem')), | ||
('scientific_topics', models.ManyToManyField(blank=True, to='ifbcat_api.Topic')), | ||
('tool_credit', models.ManyToManyField(blank=True, to='ifbcat_api.ToolCredit')), |
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.
credit would be enough ?
('operating_system', models.ManyToManyField(blank=True, to='ifbcat_api.OperatingSystem')), | ||
('scientific_topics', models.ManyToManyField(blank=True, to='ifbcat_api.Topic')), | ||
('tool_credit', models.ManyToManyField(blank=True, to='ifbcat_api.ToolCredit')), | ||
('tool_licence', models.ForeignKey(blank=True, help_text='Licence of the tool.', null=True, on_delete=django.db.models.deletion.SET_NULL, to='ifbcat_api.licence')), |
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.
licence would be enough, and more accurate
('scientific_topics', models.ManyToManyField(blank=True, to='ifbcat_api.Topic')), | ||
('tool_credit', models.ManyToManyField(blank=True, to='ifbcat_api.ToolCredit')), | ||
('tool_licence', models.ForeignKey(blank=True, help_text='Licence of the tool.', null=True, on_delete=django.db.models.deletion.SET_NULL, to='ifbcat_api.licence')), | ||
('tool_type', models.ManyToManyField(blank=True, to='ifbcat_api.ToolType')), |
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.
more cleanup on the model is needed
ifbcat_api/urls.py
Outdated
@@ -53,6 +54,8 @@ | |||
# path('testapiview/', views.TestApiView.as_view()), | |||
path('tool/<int:pk>/', views.ToolViewSet.as_view({'get': 'retrieve'})), | |||
path('tool/<biotoolsID>/', views.ToolViewSet.as_view({'get': 'retrieve'})), | |||
path('database/<int:pk>/', views.DatabaseViewSet.as_view({'get': 'retrieve'})), | |||
path('tool/<fairsharingID>/', views.DatabaseViewSet.as_view({'get': 'retrieve'})), |
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.
typo
ifbcat_api/model/tool/database.py
Outdated
@@ -0,0 +1,205 @@ | |||
import json |
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.
File is not in the right place, should not be in tool/
directory
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.
File is not in the right place, should not be in
tool/
directory
Moved to /model/
closes #228