-
Notifications
You must be signed in to change notification settings - Fork 900
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
MiqAeNamespace should use ancestry instead of acts_as_tree #19824
Conversation
9b338f1
to
fc546ae
Compare
Can you run a cross repo test will all of the different branches you have? |
fb0c7df
to
2cc1456
Compare
2cc1456
to
f6bf756
Compare
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.
Ancestry is great when you are on a node and want to traverse all children / all parents.
But if all you want ancestry to do is to store a hierarchical key, then a basic string column will do it all and not require any other schema changes.
You now the use case better than I - so only you can say if you need to do children
/ parents
/ siblings
and stuff like that.
f6bf756
to
2e23b6a
Compare
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.
Just sticking with ancestry for now is a good start.
It simplifies the next step
2e23b6a
to
883149b
Compare
883149b
to
a6c5b9e
Compare
Checked commit lfu@a6c5b9e with ruby 2.5.7, rubocop 0.69.0, haml-lint 0.28.0, and yamllint |
MiqAeNamespace should use ancestry instead of acts_as_tree (cherry picked from commit 75f60ba)
Jansa backport details:
|
Includes #20044.
Depends on ManageIQ/manageiq-schema#455.
Related to ManageIQ/manageiq-automation_engine#425.
Related to ManageIQ/manageiq-ui-classic#6668.Cross Repo Tests: ManageIQ/manageiq-cross_repo-tests#66
ManageIQ/manageiq-automation_engine#409
@miq-bot add_label performance, automate, changelog/yes