-
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
Do not allow to embed a method into itself in automate #4753
Do not allow to embed a method into itself in automate #4753
Conversation
@skateman 'pkomanek' is an invalid reviewer, ignoring... |
@skateman There is a method called Which gets a list of all the places where this method exists and we should prevent it from being embedded. The UI currently uses this to display a list of methods and instances across domains |
The screen shot in the BZ shows the domain overrides. |
@mkanoor yup, I realized this isn't the right way. Not sure if we could do this in the UI with a cheap solution 😕 |
a5f9601
to
9ea36e7
Compare
@billfitzgerald0120 @mkanoor I updated it to use the method you suggested, but I still think these things should be also validated on the model side. |
9ea36e7
to
df0faa4
Compare
df0faa4
to
fcbbc90
Compare
Checked commit skateman@fcbbc90 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 **
|
@mkanoor Are you OK with the current fix? Thanks. |
ping @mkanoor ? |
@mkanoor @gmcculloug @tinaafitz can we please get eyes on this? |
@skateman Looks good. |
Do not allow to embed a method into itself in automate (cherry picked from commit 617a341) https://bugzilla.redhat.com/show_bug.cgi?id=1672691
Hammer backport details:
|
Thanks to the
selectable
attribute of themiq-tree-selector
component, it is possible to prevent to select a specific embedded method(s) in the tree. I am building here a regular expression from all the homonymic methods so the same method in an other domain cannot be selected.@miq-bot add_reviewer @pkomanek
@miq-bot add_reviewer @h-kataria
@miq-bot add_label bug, hammer/yes
https://bugzilla.redhat.com/show_bug.cgi?id=1633815