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

Key Pair (angular) - don't sparkleOff when waiting for task #1178

Merged
merged 2 commits into from May 31, 2017
Merged

Key Pair (angular) - don't sparkleOff when waiting for task #1178

merged 2 commits into from May 31, 2017

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Apr 27, 2017

related to https://bugzilla.redhat.com/show_bug.cgi?id=1444520

Since #136, we're using the task queue for saving auth key pairs.

Which means the save request suceeds, disables sparkle, and then we wait for stuff to happen.

.. adding { complete: false }, in line with the rest of controllers using the task queue.

https://bugzilla.redhat.com/show_bug.cgi?id=1462278

@martinpovolny
Copy link

@tzumainn, can you, or someone from your group, please, review?

Thx!

@tzumainn
Copy link
Contributor

tzumainn commented May 3, 2017

@mansam, could you take a look? thanks!

@mansam
Copy link
Contributor

mansam commented May 4, 2017

This seems to work, though it's still somewhat slow. The first attempt I made to create a keypair took about 60s to redirect, but subsequent requests only took about 15 seconds to complete.

@himdel
Copy link
Contributor Author

himdel commented May 4, 2017

@mansam If you can investigate the slowness issue, feel free to take the BZ, I'm pretty sure that bit has nothing to do with UI..

@mansam
Copy link
Contributor

mansam commented May 4, 2017

@himdel The slowness isn't on the API side, as it only takes a second or so for the Openstack keypair operation to complete. Any other ideas about where the problem might be?

@himdel
Copy link
Contributor Author

himdel commented May 4, 2017

Well, not really, no. I mean, I do know that creating the task returns almost immediately.. and then we wait.

So.. backend :) but no idea where there, I've never seen the innards of the task queue..

@miq-bot
Copy link
Member

miq-bot commented May 9, 2017

This pull request is not mergeable. Please rebase and repush.

@himdel
Copy link
Contributor Author

himdel commented May 9, 2017

Rebased after #719 - +added a whitespace cleanup to bring this in line with the rest.

For fine, https://github.com/himdel/manageiq-ui-classic/commit/8e5d017bee4d1989e07017d32e058bd5beb055b9 (keypair-sparkle-fine branch) will be the commit to backport.

@miq-bot
Copy link
Member

miq-bot commented May 9, 2017

Checked commits https://github.com/himdel/manageiq-ui-classic/compare/27c0814be917a52d9c4fdb38914da9ec503c6c02~...da3ec4f9f6bde478eea464204f2a9a5728c201d2 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
0 files checked, 0 offenses detected
Everything looks fine. 🍪

@mzazrivec mzazrivec added this to the Sprint 62 Ending Jun 5, 2017 milestone May 31, 2017
@mzazrivec mzazrivec merged commit b8df31b into ManageIQ:master May 31, 2017
@martinpovolny martinpovolny assigned mzazrivec and unassigned tzumainn May 31, 2017
@himdel himdel deleted the keypair-sparkle branch June 5, 2017 13:51
@simaishi
Copy link
Contributor

@himdel Marking as bugzilla needed, as it seems this PR really doesn't fix BZ 1444520. Also, when we have a BZ and ready for backport, please create a Fine PR as I'm not ble to take a commit from your branch for backport.

@himdel
Copy link
Contributor Author

himdel commented Jun 16, 2017

@simaishi Makes sense, I've created https://bugzilla.redhat.com/show_bug.cgi?id=1462278 for this...

@himdel
Copy link
Contributor Author

himdel commented Jun 16, 2017

..and created a fine PR: #1558 :) Thanks

@simaishi
Copy link
Contributor

Backported to Fine via #1558

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants