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

Explore: Move back / forward with browser buttons now works #16150

Merged
merged 9 commits into from
Mar 22, 2019

Conversation

hugohaggmark
Copy link
Contributor

What this PR does / why we need it:
This PR makes it possible to navigate backward and forward in browser using Explore.

Which issue(s) this PR fixes:
Fixes #14301

Special notes for your reviewer:
Checkout out the branch and try it out

@hugohaggmark hugohaggmark self-assigned this Mar 22, 2019
@hugohaggmark hugohaggmark changed the title Hugoh/browser navigation in explore Makes it possible to navigate back/forward with browser buttons in Explore Mar 22, 2019
Copy link
Contributor

@davkal davkal left a comment

Choose a reason for hiding this comment

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

LGTM

Works really well, and this is a well-written PR. Outstanding!

Small nit: Not happy with refresh..., as it's overlapping with browser refreshs. How about "save", or "persist"?

Found unrelated bug which will surface more when buttons are used: #16154

@hugohaggmark
Copy link
Contributor Author

Just found out that back/forward doesn't work well with Graphite datasource #15862
What about update instead of refresh?

@torkelo
Copy link
Member

torkelo commented Mar 22, 2019

+1 for update

Great PR

thenThereAreNoDispatchedActions: () => ThunkWhen;
}

export const thunkTester = (initialState: any): ThunkGiven => {
Copy link
Member

Choose a reason for hiding this comment

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

Just wanted to say that using this testing API's you propose for redux is so much fun and easy!

@hugohaggmark hugohaggmark changed the title Makes it possible to navigate back/forward with browser buttons in Explore Make it possible to navigate back/forward with browser buttons in Explore Mar 22, 2019
@hugohaggmark hugohaggmark merged commit eedbc48 into master Mar 22, 2019
@hugohaggmark hugohaggmark deleted the hugoh/browser-navigation-in-explore branch March 22, 2019 14:24
@hugohaggmark hugohaggmark added this to the 6.1 milestone Mar 22, 2019
ryantxu added a commit to ryantxu/grafana that referenced this pull request Mar 22, 2019
* grafana/master: (30 commits)
  Makes it possible to navigate back/forward with browser buttons in Explore  (grafana#16150)
  Moved DisplayValueOptions type back, grafana#16134
  adding check for decimals
  add one more test
  Graphite: fixed variable quoting when variable value is nummeric, fixes grafana#2078
  Minor refactoring of grafana#16127
  Update provisioning.md
  Graphite: Fixed issue with using series ref and series by tag, fixes grafana#15237
  move typings to types,
  Link license corrections
  removed option to not check strings
  drop one level of nesting
  cleanup and guess all columns
  Small license correction
  Enable sass theme change in Storybook
  replaced rems with pixels or variables
  adding test
  updating usages in singlestat
  Sorting imports
  adding function
  ...
ryantxu added a commit to ryantxu/grafana that referenced this pull request Mar 23, 2019
…-scroll-again

* grafana/master: (499 commits)
  prevOptions should be optional
  moved migration hook to its own function
  Minor refactoring of stats picker / shared singlestat code
  Makes it possible to navigate back/forward with browser buttons in Explore  (grafana#16150)
  Moved DisplayValueOptions type back, grafana#16134
  adding check for decimals
  add one more test
  Graphite: fixed variable quoting when variable value is nummeric, fixes grafana#2078
  Minor refactoring of grafana#16127
  Update provisioning.md
  Graphite: Fixed issue with using series ref and series by tag, fixes grafana#15237
  move typings to types,
  Link license corrections
  remove logging
  add stat picker to single stat
  removed option to not check strings
  drop one level of nesting
  cleanup and guess all columns
  Small license correction
  Enable sass theme change in Storybook
  ...
ryantxu added a commit to ryantxu/grafana that referenced this pull request Mar 23, 2019
…-srv

* grafana/master: (153 commits)
  prevOptions should be optional
  moved migration hook to its own function
  Minor refactoring of stats picker / shared singlestat code
  Makes it possible to navigate back/forward with browser buttons in Explore  (grafana#16150)
  Moved DisplayValueOptions type back, grafana#16134
  adding check for decimals
  add one more test
  Graphite: fixed variable quoting when variable value is nummeric, fixes grafana#2078
  Minor refactoring of grafana#16127
  Update provisioning.md
  Graphite: Fixed issue with using series ref and series by tag, fixes grafana#15237
  move typings to types,
  Link license corrections
  remove logging
  add stat picker to single stat
  removed option to not check strings
  drop one level of nesting
  cleanup and guess all columns
  Small license correction
  Enable sass theme change in Storybook
  ...
ryantxu added a commit to ryantxu/grafana that referenced this pull request Mar 24, 2019
* grafana/master: (272 commits)
  clarify notifications API docs
  remove processTimeSeries
  merge master
  don't use process timeseries
  rename stat to show in UI
  use display value in pie chart
  renamed float to flot
  prevOptions should be optional
  moved migration hook to its own function
  Minor refactoring of stats picker / shared singlestat code
  Makes it possible to navigate back/forward with browser buttons in Explore  (grafana#16150)
  Moved DisplayValueOptions type back, grafana#16134
  adding check for decimals
  add one more test
  Graphite: fixed variable quoting when variable value is nummeric, fixes grafana#2078
  Minor refactoring of grafana#16127
  Update provisioning.md
  Graphite: Fixed issue with using series ref and series by tag, fixes grafana#15237
  move typings to types,
  Link license corrections
  ...
ryantxu added a commit to ryantxu/grafana that referenced this pull request Mar 24, 2019
* grafana/master: (342 commits)
  clarify notifications API docs
  remove processTimeSeries
  merge master
  don't use process timeseries
  rename stat to show in UI
  use display value in pie chart
  renamed float to flot
  prevOptions should be optional
  moved migration hook to its own function
  Minor refactoring of stats picker / shared singlestat code
  Makes it possible to navigate back/forward with browser buttons in Explore  (grafana#16150)
  Moved DisplayValueOptions type back, grafana#16134
  adding check for decimals
  add one more test
  Graphite: fixed variable quoting when variable value is nummeric, fixes grafana#2078
  Minor refactoring of grafana#16127
  Update provisioning.md
  Graphite: Fixed issue with using series ref and series by tag, fixes grafana#15237
  move typings to types,
  Link license corrections
  ...
@torkelo torkelo changed the title Make it possible to navigate back/forward with browser buttons in Explore Explore: Move back / forward with browser buttons now works Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Explore: cannot use backward/forward (browser) actions
4 participants