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

Added publish notification to query rename #3998

Merged
merged 2 commits into from
Jul 21, 2019
Merged

Added publish notification to query rename #3998

merged 2 commits into from
Jul 21, 2019

Conversation

ranbena
Copy link
Contributor

@ranbena ranbena commented Jul 19, 2019

  • Feature

Description

Following up on #3217 (comment), added "Query published" notification when query rename auto-publishes.

@@ -305,6 +305,7 @@ function QueryViewCtrl(
Events.record('edit_name', 'query', $scope.query.id);
if ($scope.query.is_draft && clientConfig.autoPublishNamedQueries && $scope.query.name !== 'New Query') {
$scope.query.is_draft = false;
notification.success('Query published');
Copy link
Member

Choose a reason for hiding this comment

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

This will result in multiple notifications + might show a success notification while the query save actually fails.

How about we update the save notification to include a message about publishing the query? We can do a check in the saveQuery function to see if the publish state changed and update the message accordingly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done 997182b 👍

Screen Shot 2019-07-20 at 22 23 13

@ranbena ranbena requested a review from arikfr July 20, 2019 19:25
@ranbena ranbena merged commit b229519 into master Jul 21, 2019
@ranbena ranbena deleted the publish-notif branch July 21, 2019 12:01
harveyrendell pushed a commit to pushpay/redash that referenced this pull request Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants