-
Notifications
You must be signed in to change notification settings - Fork 91
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
BZ#1486224 - Refactor sui group switching to use api #1013
BZ#1486224 - Refactor sui group switching to use api #1013
Conversation
@AllenBW this ready to go? |
@chriskacerguis Nope, still gotta do work, above mentioned pr was just merged in |
2b4789b
to
b78f53a
Compare
$http.defaults.headers.common['X-Miq-Group'] = unescape(encodeURIComponent(group)) | ||
$sessionStorage.miqGroup = group || null | ||
$sessionStorage.selectedMiqGroup = group | ||
if (typeof group === 'object') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i know this is ugly,
why not just do
foo = group.stuff || group
???
I WANT TO but our tests that rely on this work fail when this is written shorthand, i think it has something to do with running in strict mode 🤔
@@ -45,7 +45,7 @@ | |||
padding-top: 19px | |||
|
|||
.dropdown-menu | |||
margin-top: 7px; | |||
margin-top: 7px |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exceeds the scope of this pr, buttttt it was broken :-/
80802d2
to
61077f8
Compare
Rather than page reload, state reload sufficient
61077f8
to
7b16290
Compare
Checked commits AllenBW/manageiq-ui-service@7b16290~...654f16e with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@chriskacerguis can you set the Milestone to Sprint 70 |
@JPrause done. |
https://bugzilla.redhat.com/show_bug.cgi?id=1486224
Right now it uses headers, taks a LOOOONNNGG time to take effect, most of the time feels broken, gonna switch this over to using api.
In order to keep excessive api calls down, require this work to be completed first
groups
manageiq-api#74So what did we do?
mad props out to @jntullo for helpin' this reality come to 💡