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

Added support for expression methods #15537

Merged
merged 3 commits into from
Jul 26, 2017

Conversation

mkanoor
Copy link
Contributor

@mkanoor mkanoor commented Jul 10, 2017

Expression methods allow you to embed MiqExpressions as Automate Methods.
https://www.pivotaltracker.com/n/projects/1613499/stories/148625717

Original PR #6655

@@ -33,6 +33,10 @@ def self.available_scopes
AVAILABLE_SCOPES
end

def self.available_expression_objects
Rbac::Filterer::CLASSES_THAT_PARTICIPATE_IN_RBAC
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mkanoor This list is not the complete set I would expect to see. For example it does not show Vm, just the base model VmOrTemplate. I think it would be better to expose the list from the MiqExpression model MiqExpression.base_tables

That is the list Reporting uses: https://github.com/ManageIq/manageiq/blob/5cf8d1ffd0e9489f9a58ecb1223c3a816817dd76/app/models/miq_report.rb#L107

@miq-bot
Copy link
Member

miq-bot commented Jul 24, 2017

Checked commits mkanoor/manageiq@a02186c~...aa07b39 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks fine. 👍

@mkanoor
Copy link
Contributor Author

mkanoor commented Jul 24, 2017

@gmcculloug please review

@gmcculloug gmcculloug merged commit 470292c into ManageIQ:master Jul 26, 2017
@gmcculloug gmcculloug added this to the Sprint 66 Ending Aug 7, 2017 milestone Jul 26, 2017
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.

3 participants