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

feat: add configurable page auto-refresh to all pages (in Dashboard) #95

Merged
merged 3 commits into from
May 13, 2024

Conversation

LaumiH
Copy link

@LaumiH LaumiH commented May 6, 2024

I have added a Refresh configuration option to the header of all pages in the webconsole.
The default is set to "manual", so no page auto-refresh.
Upon configuring a different value, the page is automatically refreshed in the configured interval (e.g. every 5s), and the data is reloaded (from the core or the database).

This centralizes the auto-refresh that was hardcoded in the charging page, and makes it configurable.

The values are set in the Dashboard, which is included by every page component, so that the option is available for all pages in the webconsole. If it is not needed, the user can simply leave it at "manual".

Let me know if you find this helpful, or if you find any bugs or improvements!

@andy89923
Copy link
Collaborator

@yccodr Help review this PR!

@andy89923
Copy link
Collaborator

Hi @LaumiH.
Thanks for the PR. We will review it ASAP.

However, the commit message in this PR didn't follow https://www.conventionalcommits.org/en/v1.0.0/ we just applied.
So please reword these commit as follow:

feat: add configurable page auto-refresh to all pages (in Dashboard)

@andy89923 andy89923 self-requested a review May 8, 2024 15:45
@andy89923 andy89923 changed the title Add configurable page auto-refresh to all pages (in Dashboard) feat: add configurable page auto-refresh to all pages (in Dashboard) May 8, 2024
@yccodr
Copy link
Collaborator

yccodr commented May 13, 2024

@andy89923 LGTM
@LaumiH Thank you for the contribution.

@andy89923 andy89923 force-pushed the feature/configurable_auto_reload branch from 27eb571 to 6db2e47 Compare May 13, 2024 05:57
@andy89923 andy89923 force-pushed the feature/configurable_auto_reload branch from 498dc84 to 3997bd1 Compare May 13, 2024 06:43
Copy link
Collaborator

@andy89923 andy89923 left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution once again. @LaumiH.

I made some rollback and fixed the commit messages check.
LGTM!

@andy89923 andy89923 requested a review from ianchen0119 May 13, 2024 06:59
@ianchen0119 ianchen0119 merged commit 29acb89 into free5gc:main May 13, 2024
3 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.

4 participants