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

Feature: Add canonical portal for duplicate ontologies #770

Merged

Conversation

Bilelkihal
Copy link
Collaborator

@Bilelkihal Bilelkihal commented Oct 9, 2024

PR description

This pull request introduces a function to determine the canonical portal for duplicated ontologies within a federation based on the :pullLocation data. The canonical portal is identified as the one that appears most frequently across the pullLocations of different duplicates.

Changes

  • Added a function to retrieve the canonical portal for duplicated ontologies using :pullLocation.
  • Open the ontologies in their canonical portal when they are duplicated.
  • Added a function to retrieve the canonical portal for duplicated search page results using :pullLocation of their submissions.
  • Open the search results in their canonical portal when they are duplicated.

ps. for the ontologies present in the current portal, they open always in the current portal.

syphax-bouazzouni and others added 30 commits August 23, 2024 14:37
@Bilelkihal Bilelkihal changed the title Feature: Federation ontology canonical portal Feature: Federation duplicated ontologies canonical portal Oct 9, 2024
@syphax-bouazzouni syphax-bouazzouni force-pushed the feature/federation-ontology-canonical-portal branch from 4a98ffa to 4b15edb Compare October 16, 2024 16:45
@syphax-bouazzouni syphax-bouazzouni force-pushed the feature/federation-ontology-canonical-portal branch from 4b15edb to 8f00782 Compare October 16, 2024 16:48
app/helpers/federation_helper.rb Outdated Show resolved Hide resolved
app/helpers/federation_helper.rb Outdated Show resolved Hide resolved
app/helpers/federation_helper.rb Outdated Show resolved Hide resolved
app/controllers/concerns/search_aggregator.rb Outdated Show resolved Hide resolved
app/helpers/federation_helper.rb Outdated Show resolved Hide resolved
app/helpers/federation_helper.rb Outdated Show resolved Hide resolved
app/controllers/concerns/search_aggregator.rb Outdated Show resolved Hide resolved
app/helpers/federation_helper.rb Outdated Show resolved Hide resolved
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.

Copy link
Collaborator

@syphax-bouazzouni syphax-bouazzouni left a comment

Choose a reason for hiding this comment

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

Approved, did the following changes:

  • put again search canonical logic the search_aggregator file and refactor the code (55d0b71)
  • do the search canonical logic only if enabled (a86ba77)

@syphax-bouazzouni syphax-bouazzouni force-pushed the feature/federation-ontology-canonical-portal branch from 0cdd466 to 5a533f1 Compare October 23, 2024 20:26
@syphax-bouazzouni syphax-bouazzouni merged commit c52b5c8 into development Oct 24, 2024
2 of 4 checks passed
@syphax-bouazzouni syphax-bouazzouni changed the title Feature: Federation duplicated ontologies canonical portal Feature: Add canonical portal for duplicate ontologies Oct 24, 2024
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