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

Fix: Jump to infinit loading #782

Merged
merged 2 commits into from
Oct 26, 2024

Conversation

Bilelkihal
Copy link
Collaborator

@Bilelkihal Bilelkihal commented Oct 24, 2024

Require: ontoportal-lirmm/ontologies_api_ruby_client#21

Source: agroportal/project-management#619

PR description
After adding the federation to the search, the search results are now returned as a hash instead of an object, so to access to the collection key of the results we need to use [:collection] instead of .collection

Copy link
Collaborator Author

@Bilelkihal Bilelkihal left a comment

Choose a reason for hiding this comment

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

@Bilelkihal Bilelkihal self-assigned this Oct 24, 2024
@syphax-bouazzouni
Copy link
Collaborator

@Bilelkihal, This needs to be fixed here too https://github.com/ontoportal-lirmm/ontologies_api_ruby_client/blob/development/lib/ontologies_api_client/models/class.rb#L81, by returning an Object as before, otherwise, we do breaking change here, to do that your need to wrap the hash by doing OpenStruct.new(you_hash) in that line.

@Bilelkihal
Copy link
Collaborator Author

@syphax-bouazzouni Okay

@Bilelkihal
Copy link
Collaborator Author

@syphax-bouazzouni
Copy link
Collaborator

@syphax-bouazzouni syphax-bouazzouni merged commit d83e304 into development Oct 26, 2024
2 of 4 checks passed
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.

2 participants