-
Notifications
You must be signed in to change notification settings - Fork 897
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
Add event streams product features #16021
Add event streams product features #16021
Conversation
LGTM!! Thanks @imtayadeway I'll wait for a 👍 from @h-kataria before merging. |
@abellotti perhaps these new API only features should have their own parent key so they don't get mixed up in the features tree, which currently tried to mimic the UI hierarchy. I discussed with @imtayadeway and we're thinking maybe a parent key for "metrics" and "event_streams" called "api" with a description of "Features Exclusive to the API". If later they become UI features, we can move them to the appropriate place and, as long as the feature IDs don't change, no code changes will be needed. |
3b3ee41
to
6b59b0b
Compare
@dclarizio I made the suggested changes 👍 LMK if there's anything else 🙇♂️ |
Checked commits imtayadeway/manageiq@e43a195~...6b59b0b with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
I like the API specific section. Are these visible in the Classic UI when editing a role ? i.e. being able to setup a role with or without these specific entitlements on any user role or are they only inherited by a super admin ? |
@abellotti they should! @imtayadeway can you get a screenshot from a User Role screen to verify? |
@abellotti @dclarizio it looks like they don't automatically. From what I can grok they have to be added here: https://github.com/ManageIQ/manageiq-ui-classic/blob/master/app/presenters/menu/default_menu.rb |
@martinpovolny features added here look good, but i see one issue that these features will not show up on Role Features tree due to the way features tree is being built using menu presenters. API node in this PR will not be presented as a Menu in UI and the way features tree is built we do need a main menu section for all top level features. I think there will be more of these types on node in features tree that will not be presented in UI menus but need to be visible in Features tree, for example SUI, GO etc. |
@martinpovolny i got API node to show up in Product features tree by changing line https://github.com/ManageIQ/manageiq-ui-classic/blob/master/app/presenters/tree_builder_ops_rbac_features.rb#L44 to
is that the right way to do it? |
@abellotti I think this should be GTG. Thanks so much @dclarizio and @h-kataria ! |
@h-kataria : yes, that's simply the place where we add the hardcoded exceptions to the generic rules of forming that tree. |
@imtayadeway @abellotti this is good to go. @h-kataria will create the PR on the UI side to show the API section in the features tree. |
Changes to show features in Features tree that do not show up on Menus in Classic UI. Follow up PR for ManageIQ/manageiq#16021
@abellotti @dclarizio follow up UI PR: ManageIQ/manageiq-ui-classic#2230 |
Changes to show features in Features tree that do not show up on Menus in Classic UI. Follow up PR for ManageIQ/manageiq#16021
Thank you @imtayadeway for this enhancement and thank you all for your input/recommendations. This LGTM!! 👍 |
Changes to show features in Features tree that do not show up on Menus in Classic UI. Follow up PR for ManageIQ/manageiq#16021
Changes to show features in Features tree that do not show up on Menus in Classic UI. Follow up PR for ManageIQ/manageiq#16021
Changes to show features in Features tree that do not show up on Menus in Classic UI. Follow up PR for ManageIQ/manageiq#16021
In support of https://www.pivotaltracker.com/story/show/149754397
See also ManageIQ/manageiq-api#65
/cc @h-kataria @dclarizio
@miq-bot add-label enhancement
@miq-bot assign @abellotti