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

Fix: waiting tasks are not shown in admin view #3942

Merged
merged 2 commits into from
Jul 3, 2019
Merged

Conversation

arikfr
Copy link
Member

@arikfr arikfr commented Jun 29, 2019

What type of PR is this? (check all applicable)

  • Bug Fix

Description

Waiting tasks were not showing in admin view, because it was expecting them to have a different name for the state. To avoid breaking existing users of this API, we're just translating the state name in the UI.

@@ -13,6 +13,13 @@ import { $http } from '@/services/ng';
import recordEvent from '@/services/recordEvent';
import { routesToAngularRoutes } from '@/lib/utils';

function stateName(state) {
if (state === 'waiting_in_queue') {
Copy link
Contributor

Choose a reason for hiding this comment

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

A comment on backward compatibility feels appropriate here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@arikfr arikfr merged commit 300f3f6 into master Jul 3, 2019
@arikfr arikfr deleted the fix-waiting-tasks branch July 3, 2019 08:09
harveyrendell pushed a commit to pushpay/redash that referenced this pull request Nov 14, 2019
* Fix: waiting tasks are not shown properly

* Added a comment.
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