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
Fixes #14446 - Respect STI class in taxonomy search #157
Conversation
I would open a refactoring issue to enable this usage case, and until its added, will add the workaround here. (in the larger scope - maybe you don't want to use taxonomix at all). |
Also, I'm missing a test? :) |
@ohadlevy not needed since theforeman/foreman#3384 ? |
@ohadlevy - Test has been added |
LGTM, sounds as a good fix to core as well, if you open the redmine issue for it, please add a comment with link to this method so it can be tracked and removed later |
Not so keen to add to core. |
why? isn't this broken for Compute Resources now? |
@@ -173,6 +173,17 @@ def destroy | |||
end | |||
end | |||
|
|||
def self.inner_select(taxonomy, inner_method = which_ancestry_method) |
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.
please add a comment "# can be removed after http://projects.theforeman.org/issues/14458 is fixed"
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.
Added
Closing in favor of theforeman/foreman#3389 which is now merged and was asked to be ported into 1.11 |
Not sure whether this should go here or in core.
@ares, @ohadlevy thoughts?
Anyhow tested w/ $downstream project and works as expected.