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

Remove cancellable task which does not cancel anything #819

Closed
wants to merge 1 commit into from

Conversation

udeeshagautam
Copy link
Contributor

@udeeshagautam udeeshagautam commented May 31, 2019

Issue : microsoft/azuredatastudio#5804
DacFx Api's does not allow cancel on generate script and apply operation.
But the default task created is in Task view has a context menu for cancel which is clickable and changes the UX to cancelled. This might create lot of confusion.

image

Reason : TaskInfo IsCancellable is set to true as long as task is has a "taskToCancel" object. This object is automatatically created based on Operation in current Create Task Call.

Fix: Setting the Task to cancel object to null explicitly since so that Iscancellable is set to false.

This is a temporary fix till DacFx Api changes are not in place for real cancellation.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 76.114% when pulling 8621679 on bug/5804-shouldNotShowUnusableCancel into 758eefe on master.

@udeeshagautam
Copy link
Contributor Author

holding it off since we are working on cancel operation.

@udeeshagautam udeeshagautam deleted the bug/5804-shouldNotShowUnusableCancel branch June 15, 2019 01:22
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.

None yet

3 participants