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 federation portals status check (#769) #769

Merged
merged 77 commits into from
Oct 22, 2024

Conversation

Bilelkihal
Copy link
Collaborator

@Bilelkihal Bilelkihal commented Oct 8, 2024

Changes

  • Add a helper to store the status of federation portals in Rails cache to be used for
    • Federation portals input chips
    • Home page portals config
  • The helper is initialized in Home, browse and search page in an asynch way to not affect pages waiting time. And for the federation input chips each chip loads separately within its own Turbo Frame, ensuring individual loading doesn't block other elements.
  • The cache is valid for two hours

In the browse page

image

In search page

image

syphax-bouazzouni and others added 30 commits August 23, 2024 14:37
@Bilelkihal Bilelkihal self-assigned this Oct 8, 2024
@syphax-bouazzouni syphax-bouazzouni force-pushed the feature/federation-portals-status branch 4 times, most recently from 2344897 to 2ddf353 Compare October 16, 2024 16:24
@syphax-bouazzouni syphax-bouazzouni force-pushed the feature/federation-portals-status branch from 2ddf353 to 080940b Compare October 16, 2024 16:27
app/helpers/components_helper.rb Show resolved Hide resolved
app/views/home/federation_portals_status.html.haml Outdated Show resolved Hide resolved
app/views/ontologies/browser/browse.html.haml Outdated Show resolved Hide resolved
config/routes.rb Outdated Show resolved Hide resolved
app/views/search/index.html.haml Outdated Show resolved Hide resolved
app/views/home/index.html.haml Outdated Show resolved Hide resolved
app/views/home/index.html.haml Outdated Show resolved Hide resolved
app/helpers/home_helper.rb Outdated Show resolved Hide resolved
app/views/home/federation_portals_status.html.haml 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.

@syphax-bouazzouni syphax-bouazzouni merged commit 7eb8d76 into development Oct 22, 2024
2 of 4 checks passed
@syphax-bouazzouni syphax-bouazzouni changed the title Feature: Federation portals status Feature: Add federation portals status check (#769) Oct 22, 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