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

Mappings endpoints is not cohenrent with the mappings count #106

Closed
syphax-bouazzouni opened this issue Nov 1, 2024 · 2 comments · Fixed by ontoportal-lirmm/ontologies_linked_data#167
Assignees
Labels

Comments

@syphax-bouazzouni
Copy link

syphax-bouazzouni commented Nov 1, 2024

Example with https://data.stageportal.lirmm.fr/mappings?ontologies=INRAETHES,mappings:external, who return no mappings

image

but in the count https://data.stageportal.lirmm.fr/mappings/statistics/ontologies/INRAETHES we have 1.
image

@syphax-bouazzouni
Copy link
Author

syphax-bouazzouni commented Nov 1, 2024

The issue seems that the mappings even if updated never remove the old counts, dining the following fix the issue

LinkedData::Models::MappingCount.where(ontologies: 'INRAETHES').all.each{|x| x.delete} # delete existent counts
LinkedData::Mappings.create_mapping_count_pairs_for_ontologies(Logger.new($stdout), ['INRAETHES']) # create new counts

@syphax-bouazzouni
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant