Skip to content

Conversation

@mistercrunch
Copy link
Member

No description provided.

);
}
if (this.props.database && this.props.database.allow_run_async) {
runButtons.push(
Copy link

@ascott ascott Sep 13, 2016

Choose a reason for hiding this comment

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

would be nice to DRY this up. could make a <RunButton /> component to encapsulate the logic and returns the correct button based on the input:

<RunButton
  async={this.props.database && this.props.database.allow_run_async}
  sync={this.props.database && this.props.database.allow_run_sync}
  isRunning={this.props.latestQuery && this.props.latestQuery.state === 'running'}
/>

Copy link

Choose a reason for hiding this comment

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

could probably simply further by only passing the async prop. if async is false, use sync.

<RunButton
  async={this.props.database && this.props.database.allow_run_async}
  isRunning={this.props.latestQuery && this.props.latestQuery.state === 'running'}
/>

@mistercrunch
Copy link
Member Author

Sorry about the quality of the PR I was rushing things through to get a working release

@mistercrunch mistercrunch force-pushed the sqllab branch 3 times, most recently from 66982f4 to 162b8b0 Compare September 14, 2016 20:37
@mistercrunch mistercrunch force-pushed the sqllab branch 3 times, most recently from fa5d7ea to 6e6bf43 Compare September 17, 2016 00:17
@mistercrunch
Copy link
Member Author

Rogue merging this PR. I'll sort things out around async mode in upcoming PRs.

@mistercrunch mistercrunch merged commit e8088d5 into master Sep 19, 2016
@dpgaspar dpgaspar mentioned this pull request Sep 5, 2019
12 tasks
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 17, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 24, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 25, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 26, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.11.0 First shipped in 0.11.0 labels Feb 19, 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.11.0 First shipped in 0.11.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants