Skip to content
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

Removing mappings generate mapping retrieval error #427

Closed
jonquet opened this issue Jul 12, 2023 · 4 comments
Closed

Removing mappings generate mapping retrieval error #427

jonquet opened this issue Jul 12, 2023 · 4 comments
Labels
bug content Issues related to the content of AgroPortal

Comments

@jonquet
Copy link
Contributor

jonquet commented Jul 12, 2023

On AGROVOC, concept "farm leases":
https://agroportal.lirmm.fr/ontologies/AGROVOC/?p=classes&conceptid=http%3A%2F%2Faims.fao.org%2Faos%2Fagrovoc%2Fc_10747&jump_to_nav=true

I just removed a duplicate mapping in the UI.
As a consequence the mapping tab does not load anymore:
Capture d’écran 2023-07-12 à 17 47 04

@jonquet jonquet added bug content Issues related to the content of AgroPortal labels Jul 12, 2023
@syphax-bouazzouni
Copy link
Contributor

@syphax-bouazzouni
Copy link
Contributor

The log of the error

 NoMethodError - undefined method `process' for nil:NilClass:
        /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/bundler/gems/ontologies_linked_data-e9b708c40
b2b/lib/ontologies_linked_data/mappings/mappings.rb:234:in `block in mappings_ontologies'
        /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/bundler/gems/ontologies_linked_data-e9b708c40
b2b/lib/ontologies_linked_data/mappings/mappings.rb:226:in `each'
        /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/bundler/gems/ontologies_linked_data-e9b708c40
b2b/lib/ontologies_linked_data/mappings/mappings.rb:226:in `mappings_ontologies'
        /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/bundler/gems/ontologies_linked_data-e9b708c40
b2b/lib/ontologies_linked_data/mappings/mappings.rb:258:in `mappings_ontology'
        /srv/ontoportal/ontologies_api/releases/20230217110509/controllers/mappings_controller.rb:15:in `block in <class:MappingsController>'

@syphax-bouazzouni
Copy link
Contributor

The creation and deletion of REST mappings is working for the other classes (tested with https://agroportal.lirmm.fr/ontologies/AGROVOC/?p=classes&conceptid=http%3A%2F%2Faims.fao.org%2Faos%2Fagrovoc%2Fc_50191)

@syphax-bouazzouni
Copy link
Contributor

See to work now created and removed a mapping
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug content Issues related to the content of AgroPortal
Projects
None yet
Development

No branches or pull requests

3 participants