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] applying refresh chart overlay when chart is stale #4486

Conversation

gabe-lyons
Copy link
Contributor

@gabe-lyons gabe-lyons commented Feb 26, 2018

This is a follow up to #4459 to make it more obvious when the chart should be refreshed.

after making a change affecting the query:
image

dismissing the overlay still keeps the run button highlighted:
image

but if you make a change causing errors no overlay appears:
image

test plan:

  • make a change to the query params
  • verify the overlay appears
  • verify run query works
  • verify the overlay can be dismissed

reviewers:
@graceguo-supercat @michellethomas @mistercrunch

@gabe-lyons gabe-lyons changed the title Gabe applying refresh chart overlay when chart is stale [Explore] applying refresh chart overlay when chart is stale Feb 26, 2018
Copy link

@graceguo-supercat graceguo-supercat left a comment

Choose a reason for hiding this comment

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

To me refresh means your new query generates new data, chart is inconsistent with latest query.

But when your control is messed up, you can not make a new query, so there is no new query results. Refresh chart doesn't make sense, and not necessary since old chart is still valid.

disabled={!!this.props.errorMessage}
bsStyle={this.props.errorMessage ? 'danger' : 'primary'}
>
<i className="fa fa-bolt" /> Refresh Chart
Copy link
Member

Choose a reason for hiding this comment

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

i18n: t('Refresh Chart')

@@ -424,3 +428,12 @@ g.annotation-container {
content: "\f0dd";
color: @brand-primary;
}

.refresh-chart-overlay {
Copy link
Member

Choose a reason for hiding this comment

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

We could use a more general name if we want to reuse that style for the loading spinner

@gabe-lyons gabe-lyons force-pushed the gabe_applying_refresh_chart_overlay_when_chart_is_stale branch from a0ecc2e to c96ef64 Compare February 26, 2018 23:53
@gabe-lyons
Copy link
Contributor Author

@graceguo-supercat addressed the comments that came up in the team meeting- PTAL again!

@gabe-lyons gabe-lyons force-pushed the gabe_applying_refresh_chart_overlay_when_chart_is_stale branch from 7132b07 to a9d2616 Compare February 27, 2018 01:50
Copy link

@graceguo-supercat graceguo-supercat left a comment

Choose a reason for hiding this comment

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

Can you fix linting error?

@gabe-lyons gabe-lyons force-pushed the gabe_applying_refresh_chart_overlay_when_chart_is_stale branch from a9d2616 to 9cb7d03 Compare February 28, 2018 18:35
@graceguo-supercat graceguo-supercat merged commit 764a92c into apache:master Feb 28, 2018
hughhhh added a commit to lyft/incubator-superset that referenced this pull request Mar 9, 2018
michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
…4486)

* adding refresh chart overlay when chart is out of sync with control panel

* fading the visualization when stale

* addressing comments from team on layout of UI
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
…4486)

* adding refresh chart overlay when chart is out of sync with control panel

* fading the visualization when stale

* addressing comments from team on layout of UI
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.24.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.24.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants