agroportal / project-management

Repository used to consolidate documentation about the AgroPortal project and track content related issues.
http://agroportal.lirmm.fr
7 stars 0 forks source link

Error message for a view creation #117

Closed antool closed 2 years ago

antool commented 6 years ago

When you create a view, you've got the traditionnal error message 'Something has going wrong…' while the creation is effective.

syphax-bouazzouni commented 2 years ago

@jonquet is this still relevant? I think it's no more the case.

jonquet commented 2 years ago

I does not seems to be fixed. Just reproduced with OT1V in StagePortal

image

Got a error but then right after check the page: http://stageportal.lirmm.fr/ontologies/OT1V Which displays fine

syphax-bouazzouni commented 2 years ago

Logs (var/log/rails/appliance.log)

F, [2022-04-13T04:03:11.967309 #14775] FATAL -- :   
F, [2022-04-13T04:03:11.967576 #14775] FATAL -- : ActionView::Template::Error (undefined method `metadata_only?' for nil:NilClass):
F, [2022-04-13T04:03:11.967938 #14775] FATAL -- :     1: %div{:style => "padding: 2em;"}
    2:   %h1 Ontology Submitted Successfully
    3:   %br/
    4:   -if @ontology.metadata_only?
    5:     %p Thank you for submitting your ontology to #{$SITE}.
    6:     %p Users can now see your ontology in our ontology list but they cannot explore or search it. To enable exploring and searching, please upload a fu
ll version of your ontology.
    7:   -else
F, [2022-04-13T04:03:11.967970 #14775] FATAL -- :   
F, [2022-04-13T04:03:11.968008 #14775] FATAL -- : app/views/ontologies/submit_success.html.haml:4:in `_app_views_ontologies_submit_success_html_haml___1333696
083575004252_39939760'
app/controllers/ontologies_controller.rb:415:in `submit_success'
F, [2022-04-13T04:04:16.270704 #14775] FATAL -- :   
F, [2022-04-13T04:04:16.270836 #14775] FATAL -- : NoMethodError (undefined method `first' for nil:NilClass):
F, [2022-04-13T04:04:16.270880 #14775] FATAL -- :   
F, [2022-04-13T04:04:16.270918 #14775] FATAL -- : app/controllers/application_controller.rb:429:in `get_class'
app/controllers/concepts_controller.rb:76:in `show_tree'
F, [2022-04-13T04:04:16.373133 #14775] FATAL -- :   
syphax-bouazzouni commented 2 years ago

May be resolved by https://github.com/ncbo/bioportal_web_ui/issues/192

jonquet commented 2 years ago

Not sure as the other issue mention problems updating a view. we are here experiencing problems when updating an ontology that has a view. might be related though.

syphax-bouazzouni commented 2 years ago

Fixed after merging to the new upstream version https://github.com/ontoportal-lirmm/bioportal_web_ui/issues/76

image

syphax-bouazzouni commented 2 years ago

The issue of "updating an ontology that has a view" mentioned above by @jonquet is tracked here https://github.com/agroportal/project-management/issues/269