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: Implement federatation for the browse page #621

Merged
merged 19 commits into from
Sep 11, 2024

Conversation

syphax-bouazzouni
Copy link
Collaborator

@syphax-bouazzouni syphax-bouazzouni commented May 9, 2024

Require

Context

See ontoportal/ontoportal-project#38

Changes

  • Show in the browse ontologies from external portals
    image

  • Have custom styles depending on the origin ontology
    image

  • Redirect to the external portal for federated ontologies
    image

  • Federate filters (categories, groups, languages, status, format, search) and sort by.

image

image

  • Add an error message to inform when of the federated portals is down or returning an error
    image

  • Add configuration samples, using public API keys, the federation is enable for an external portal if the API URL and Key are provided

# Federation configuration
$PORTALS_INSTANCES = [
  {
    name: 'AgroPortal',
    api: 'https://data.agroportal.lirmm.fr',
    ui: 'https://agroportal.lirmm.fr/',
    color: '#349696',
    apikey: 'XXX',
    'light-color': '#F1F6FA',
  },
  {
    name: 'BioPortal',
    ui: 'https://bioportal.bioontology.org/',
    api: 'https://data.bioontology.org/',
    apikey: 'XXX',
    color: '#234979',
    'light-color': '#E9F2FA',
  },
  {
    name: 'SIFR BioPortal',
    ui: 'https://bioportal.lirmm.fr/',
    color: '#74a9cb',
  }
]
  • Handle the merging of the same ontology from different portals (f384920)
    image

@syphax-bouazzouni syphax-bouazzouni self-assigned this May 9, 2024
@syphax-bouazzouni syphax-bouazzouni added the enhancement New feature or request label May 9, 2024
@syphax-bouazzouni syphax-bouazzouni force-pushed the feature/federate-browse-page branch 2 times, most recently from de3cf62 to e471100 Compare May 9, 2024 15:32
@syphax-bouazzouni
Copy link
Collaborator Author

Deployed in https://testportal.lirmm.fr/ontologies

@syphax-bouazzouni syphax-bouazzouni marked this pull request as draft May 20, 2024 20:32
@syphax-bouazzouni syphax-bouazzouni force-pushed the development branch 3 times, most recently from cd4f7bb to 1a843c9 Compare June 12, 2024 18:02
@Bilelkihal Bilelkihal force-pushed the development branch 3 times, most recently from 6b12c32 to ce19306 Compare June 14, 2024 09:45
@syphax-bouazzouni syphax-bouazzouni force-pushed the development branch 2 times, most recently from d94b7b4 to d40389d Compare August 8, 2024 23:37
@Bilelkihal Bilelkihal force-pushed the feature/federate-browse-page branch 2 times, most recently from 1d23b33 to 7879468 Compare August 23, 2024 12:51
@syphax-bouazzouni syphax-bouazzouni marked this pull request as ready for review September 3, 2024 18:49
@syphax-bouazzouni syphax-bouazzouni force-pushed the feature/federate-browse-page branch 2 times, most recently from 1da912f to 281c30f Compare September 3, 2024 19:09
@syphax-bouazzouni syphax-bouazzouni merged commit 6fe5693 into development Sep 11, 2024
3 of 4 checks passed
@syphax-bouazzouni syphax-bouazzouni changed the title Feature: Federate browse page Feature: Implement federatation for the browse page Sep 11, 2024
muhammedBkf pushed a commit to muhammedBkf/bioportal_web_ui that referenced this pull request Sep 20, 2024
* simplify the header component to use content instead of a new section

* update dropdown  component to a custom title section instead of  text

* update browse page to use Dropdown component not bootsrap one

* add color option to square badge component

* add text and bg  colors options to ontology browse card component

* add federation helper code and config sample

* add portals filters in the browse page

* use federation helpers to get federation ontologies information

* remove the filter using index code from submission filter as no used

* refactor the filter_using_data function to be faster by using an hash

* update the browse analytics cache to change depending on portals

* add categories and groups ids on hover to know its origin when federated

* use the last part of ids for browse counts independently of its origin

* remove binding.pry from final federation code

* add an error message if one of the external portal is down

* remove $FEDERATED_PORTALS and use existent $PORTALS_INSTANCES variable

* handle the merging of the same ontology from different portals

* fix groups and categories selection at browse page init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants