-
Notifications
You must be signed in to change notification settings - Fork 357
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
Enable container start pages #380
Conversation
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
@moolitayer @cben please review. @miq-bot add_label providers/containers |
@simon3z Cannot apply the following label because they are not recognized: providers/containers |
Checked commit simon3z@15af4b0 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
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.
That setting is long gone, right? LGTM
@miq-bot add-label settings, compute/containers
@@ -41,7 +36,6 @@ def start_page_options | |||
|
|||
def start_page_allowed?(start_page) | |||
return false if STORAGE_START_PAGES.include?(start_page) |
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.
This line looks like a bug. Makes no sense to disallow unconditionally?
It used to also have && !::Settings.product.storage
condition before #204: simon3z@acf224a#diff-4c149c5e0e75ed63331744d901546b7cL44
cc @ZitaNemeckova @himdel
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.
Looks right, that storage
setting is gone, so never true, and StorageManagerController still exists, is in the menu (under the storage_manager_show_list
feature) .. not seeing a problem :)
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.
(Unless this was broken before, or unless StorageManager
should have been under that setting too)
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 think it prevents "Storage / Storage Managers" from appearing under EVM -> My Settings -> Visual -> "Start Page" dropdown.
Aha, it would not be there anyway because it's not in MiqShortcut.start_pages
because
https://github.com/manageiq/manageiq/blob/master/db/fixtures/miq_shortcuts.yml#L197-L200
doesn't set :startup: true
.
Anyway I think STORAGE_START_PAGES & this line should be dropped like this PR did for CONTAINERS_START_PAGES. Before #204 the logic was
return false if STORAGE_START_PAGES.include?(start_page) && !::Settings.product.storage
which "allowed" it to be seen conditionally on the setting (if only it had :startup: true
), until the setting disappeared without revising this file.
[#378 deleted most UI checks of the setting; can't find it in settings.yml history, maybe it was never there, only set by devs locally?]
@miq-bot assign himdel |
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.
Works for me 👍
This enables start pages for: providers, nodes, groups, services, & container explorer
If we want to add more pages in the future we will need to add them at:
miq_shortcuts.yml at manageiq/manageiq
oh I see you already added what you needed in ManageIQ/manageiq#13906 |
LGTM 👍 @simon3z , @moolitayer .. does this PR depend on that ManageIQ/manageiq#13906 ? Or can I merge regardless of that one? |
Does not depend @himdel Thanks 🍺 |
Thanks :) merged :) |
This enables the container pages to be used as start pages.