[OPT-1247] Show newly created reports on dashboard autorefresh Created: 08/May/18  Updated: 18/Apr/19  Resolved: 24/Jul/18

Status: Done
Project: Camunda Optimize
Component/s: frontend
Affects Version/s: None
Fix Version/s: 2.2.0-alpha1, 2.2.0

Type: Feature Request Priority: L3 - Default
Reporter: Johannes Heinemann Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   
  • given:
    • I have a dashboard with report
    • I set the autofresh (e.g. to 1 minute)
    • immediately after setting autorefresh I add a new report to the dashboard in a new browser tab
  • when:
    • dashboard is autorefreshed
  • then:
    • all reports on the dashboard are refreshed and the new report is added to the dashboard
  • currentBehavior:
    • all reports on the dashboard are refreshed, but the new report is not added to the dashboard


 Comments   
Comment by Sebastian Stamm [ 23/Jul/18 ]
  • When I change the interval, the request still triggered according to the old interval, while the indicator uses the new interval
  • The dashboard is now rendered once for every report on the dashboard. So when you have 10 reports on the dashboard, renderDashboard is called 10 times.
Comment by Sebastian Stamm [ 23/Jul/18 ]

This review hint is not resolved yet: When I change the interval, the request still triggered according to the old interval, while the indicator uses the new interval
Hint: This is because this.props.interval has not been updated to the new value in componentWillReceiveProps. The new value is in the nextProps object.

Generated at Wed Oct 16 09:54:19 CEST 2019 using JIRA 6.4.6#64021-sha1:33e5b454af4594f54560ac233c30a6e00459507e.