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

More improvements to SQL Lab #1104

Merged
merged 16 commits into from
Sep 19, 2016
Merged

More improvements to SQL Lab #1104

merged 16 commits into from
Sep 19, 2016

Conversation

mistercrunch
Copy link
Member

No description provided.

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

@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
Contributor

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
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 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
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants