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

Enable container start pages #380

Merged
merged 1 commit into from
Feb 15, 2017
Merged

Conversation

simon3z
Copy link
Contributor

@simon3z simon3z commented Feb 14, 2017

This enables the container pages to be used as start pages.

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
@simon3z
Copy link
Contributor Author

simon3z commented Feb 14, 2017

@moolitayer @cben please review.

@miq-bot add_label providers/containers

@miq-bot
Copy link
Member

miq-bot commented Feb 14, 2017

@simon3z Cannot apply the following label because they are not recognized: providers/containers

@miq-bot
Copy link
Member

miq-bot commented Feb 14, 2017

Checked commit simon3z@15af4b0 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks good. 🍰

Copy link
Contributor

@cben cben left a 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)
Copy link
Contributor

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

Copy link
Contributor

@himdel himdel Feb 15, 2017

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

Copy link
Contributor

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)

Copy link
Contributor

@cben cben Feb 15, 2017

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?]

@simon3z
Copy link
Contributor Author

simon3z commented Feb 14, 2017

@miq-bot assign himdel

Copy link

@moolitayer moolitayer left a 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

@moolitayer
Copy link

oh I see you already added what you needed in ManageIQ/manageiq#13906

@himdel
Copy link
Contributor

himdel commented Feb 15, 2017

LGTM 👍

@simon3z , @moolitayer .. does this PR depend on that ManageIQ/manageiq#13906 ?

Or can I merge regardless of that one?

@moolitayer
Copy link

moolitayer commented Feb 15, 2017

Does not depend @himdel
(even tested this one myself)

Thanks 🍺

@himdel himdel merged commit 98dc597 into ManageIQ:master Feb 15, 2017
@himdel himdel added this to the Sprint 55 Ending Feb 27, 2017 milestone Feb 15, 2017
@himdel himdel added the euwe/no label Feb 15, 2017
@himdel
Copy link
Contributor

himdel commented Feb 15, 2017

Thanks :) merged :)

@simaishi
Copy link
Contributor

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.

7 participants