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

Widgets - Add support to get widgets partial HTML #3986

Open
abujeda opened this issue Dec 3, 2024 · 0 comments · May be fixed by #3989
Open

Widgets - Add support to get widgets partial HTML #3986

abujeda opened this issue Dec 3, 2024 · 0 comments · May be fixed by #3989

Comments

@abujeda
Copy link
Contributor

abujeda commented Dec 3, 2024

To create a more dynamic UX with widgets, it would be great if we could request widget HTML, without the Rails layout furniture, from another widget with AJAX.

This will allow to load the homepage faster with a widget skeleton HTML and request any other data/HTML through AJAX.

# Possible route
get '/widgets/*widget_path' => 'widgets#show'

We needed this feature when developing our metrics widget. There are cases due to the number of jobs a user has completed that the request to Slurm to get the metrics data take a long time. This is delaying the rendering of the homepage for quite a while.

Our solution for now is to move the widget into a custom page so that the homepage is not affected.

@osc-bot osc-bot added this to the Backlog milestone Dec 3, 2024
@johrstrom johrstrom modified the milestones: Backlog, 4.1 Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants