You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am setting the root_step_id of a step to itself.
When doing so. It breaks the ancestry method. It always return nil. However, i can call #parent method, i.e ste.parent.parent and all works fine. But if i want to access the step's ancestors it will always return me nil.
Why calling #ancestors returns nil?. I think for some reason the self-referential reference to itself is causing that. Because when i removed it everything works fine.
Thanks
The text was updated successfully, but these errors were encountered:
Hello. Hoping you're having a good day. So, i've a setup that looks like this
We have a requirement that states A step must either belong to a root step. or root step is itself. According to that, what i'm doing is
I am setting the
root_step_id
of a step to itself.When doing so. It breaks the ancestry method. It always return nil. However, i can call
#parent
method, i.este.parent.parent
and all works fine. But if i want to access the step's ancestors it will always return me nil.However, doing
step2.parent
will always return me nil.Why calling
#ancestors
returns nil?. I think for some reason the self-referential reference to itself is causing that. Because when i removed it everything works fine.Thanks
The text was updated successfully, but these errors were encountered: