This PR brings some improvements to dashboards:
When the user set the `updateUnfocussed` flag to true, the dashboard update in the foreground/background button does not reflect the actual status of the refresh policy, and it also doesn't make any changes in it. This commit uses the user preference as default refresh policy, and let the user temporarily override it by using the update in the foreground/background button in the dashboard.
The widget component now checks if the data from the server is a new version of the one already in the state, before updating and propagating the state. Visualizations also check now if the data passed in their props is actually new or just the same, avoiding re-rendering visualizations if it's not necessary.
bernd merged commit
Aug 8, 2016
4 checks passed
4 checks passed
ci-server-integration Jenkins build graylog2-server-integration-pr 1224 has succeededDetails
ci-web-linter Jenkins build graylog-pr-linter-check 707 has succeededDetails
continuous-integration/travis-ci/pr The Travis CI build passedDetails
continuous-integration/travis-ci/push The Travis CI build passedDetails
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments.