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 displaying 'Add a Provider' page on a fresh appliance #5783

Merged

Conversation

hstastna
Copy link
Contributor

@hstastna hstastna commented Jul 8, 2019

Fixes BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=1726721

The core of the problem is that, newly, new provider was added (Embedded Ansible) and it is preinstalled on MIQ by default, so after user (super admin) logs in, it behaves according to the code => Default dashboard is displayed, instead of expected 'Add a Provider' page, as it was in the past. So the code needs to be updated according to the new circumstance. However, there are more options to solve the situation. I decided to fix this in the same place where the problem takes shape. Feel free to add comments, ideas.

Before:
login_before

After:
login_after

Note:
I was able to reproduce the BZ locally. I've tested the fix with empty and non-empty DB, and it works.

@hstastna
Copy link
Contributor Author

hstastna commented Jul 8, 2019

@miq-bot add_label bug

@himdel
Copy link
Contributor

himdel commented Jul 8, 2019

I don't see a problem with this approach 👍

(maybe a long term solution would be to change maindb so that we can have an explicit list of provider types to count, but this solves the immediate issue that embedded ansible is always there.)

@hstastna hstastna force-pushed the Dashboard_display_no_record_add_provider branch 2 times, most recently from 2b9a53d to 1dfcfbb Compare July 9, 2019 08:46
@hstastna hstastna changed the title [WIP] Fix displaying 'Add a Provider' page on a fresh appliance Fix displaying 'Add a Provider' page on a fresh appliance Jul 9, 2019
@miq-bot miq-bot removed the wip label Jul 9, 2019
@hstastna hstastna force-pushed the Dashboard_display_no_record_add_provider branch from fad7ea5 to 00021d8 Compare July 12, 2019 09:11
@miq-bot
Copy link
Member

miq-bot commented Jul 12, 2019

Checked commits hstastna/manageiq-ui-classic@e6455be~...00021d8 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 🍪

@hstastna
Copy link
Contributor Author

@miq-bot add_label blocker

@h-kataria h-kataria added this to the Sprint 116 Ending Jul 22, 2019 milestone Jul 12, 2019
@h-kataria h-kataria merged commit ead97dd into ManageIQ:master Jul 12, 2019
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