PowerBi Dashboard Refresh Option#552
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
@rusko124 As we discussed, reverted code that refreshes the token. |
Co-authored-by: rusko124 <psafronov@screenly.io>
Co-authored-by: rusko124 <psafronov@screenly.io>
Co-authored-by: rusko124 <psafronov@screenly.io>
|
@rusko124, could you please check again? |
User description
The user wants to control the refresh time of the Power BI dashboard, which is currently hardcoded to 30 minutes. This PR introduces a minimum refresh interval of 1 minute, with the default remaining at 30 minutes.
PR Type
Enhancement
Description
Add configurable refresh interval setting
Enforce 1-minute minimum interval
Default refresh stays at 30 minutes
Wire setting into token refresh loop
Diagram Walkthrough
File Walkthrough
main.js
Configurable token refresh interval in JSedge-apps/powerbi/static/js/main.js
getTokenRefreshIntervalwith min/default logicscreenly.yml
Add refresh interval setting to app configedge-apps/powerbi/screenly.yml
refresh_intervalsetting (minutes)screenly_qc.yml
Add refresh interval to QC configedge-apps/powerbi/screenly_qc.yml
refresh_intervalsetting for QC profile