Skip to content

Conversation

@Aziguy
Copy link
Contributor

@Aziguy Aziguy commented Mar 3, 2022

closes #228

@Aziguy Aziguy requested a review from bryan-brancotte March 3, 2022 16:42
Copy link
Member

@bryan-brancotte bryan-brancotte left a 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=
Copy link
Member

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

Copy link
Contributor Author

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')),
Copy link
Member

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')),
Copy link
Member

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')),
Copy link
Member

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

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'})),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

@@ -0,0 +1,205 @@
import json
Copy link
Member

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

Copy link
Contributor Author

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/

@Aziguy Aziguy requested a review from bryan-brancotte March 4, 2022 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New Database model

3 participants