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

BZ#1486224 - Refactor sui group switching to use api #1013

Merged

Conversation

AllenBW
Copy link
Member

@AllenBW AllenBW commented Sep 26, 2017

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

So what did we do?

groupswitch

mad props out to @jntullo for helpin' this reality come to 💡

@AllenBW AllenBW changed the title BZ#1486224 - Refactor sui group switching to use api [WIP]BZ#1486224 - Refactor sui group switching to use api Sep 26, 2017
@AllenBW AllenBW added this to the Sprint 70 Ending Oct 2, 2017 milestone Sep 26, 2017
@chriskacerguis chriskacerguis self-assigned this Sep 27, 2017
@chriskacerguis
Copy link
Contributor

@AllenBW this ready to go?

@AllenBW
Copy link
Member Author

AllenBW commented Sep 27, 2017

@chriskacerguis Nope, still gotta do work, above mentioned pr was just merged in

@chriskacerguis chriskacerguis removed this from the Sprint 70 Ending Oct 2, 2017 milestone Sep 28, 2017
@AllenBW AllenBW force-pushed the bug/1002-set-current-group-via-api branch 3 times, most recently from 2b4789b to b78f53a Compare September 28, 2017 17:11
$http.defaults.headers.common['X-Miq-Group'] = unescape(encodeURIComponent(group))
$sessionStorage.miqGroup = group || null
$sessionStorage.selectedMiqGroup = group
if (typeof group === 'object') {
Copy link
Member Author

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
Copy link
Member Author

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 :-/

@AllenBW AllenBW force-pushed the bug/1002-set-current-group-via-api branch 3 times, most recently from 80802d2 to 61077f8 Compare September 28, 2017 18:36
Rather than page reload, state reload sufficient
@AllenBW AllenBW force-pushed the bug/1002-set-current-group-via-api branch from 61077f8 to 7b16290 Compare September 28, 2017 18:57
@AllenBW
Copy link
Member Author

AllenBW commented Sep 28, 2017

screen shot 2017-09-28 at 3 14 35 pm

Updated da message

@miq-bot
Copy link
Member

miq-bot commented Sep 28, 2017

Checked commits AllenBW/manageiq-ui-service@7b16290~...654f16e with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
0 files checked, 0 offenses detected
Everything looks fine. ⭐

@AllenBW AllenBW removed the wip label Sep 28, 2017
@AllenBW AllenBW changed the title [WIP]BZ#1486224 - Refactor sui group switching to use api BZ#1486224 - Refactor sui group switching to use api Sep 28, 2017
@chriskacerguis chriskacerguis merged commit 6b99975 into ManageIQ:master Sep 29, 2017
@JPrause
Copy link
Member

JPrause commented Oct 4, 2017

@chriskacerguis can you set the Milestone to Sprint 70

@chriskacerguis chriskacerguis added this to the Sprint 71 Ending Oct 16, 2017 milestone Oct 4, 2017
@chriskacerguis chriskacerguis modified the milestones: Sprint 71 Ending Oct 16, 2017, Sprint 70 Ending Oct 2, 2017 Oct 4, 2017
@chriskacerguis
Copy link
Contributor

@JPrause done.

@AllenBW AllenBW deleted the bug/1002-set-current-group-via-api branch October 6, 2017 18:11
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

4 participants