I added Awesome Nested Set to an existing project where we have (scoped) records that are linked with parent_ids. After setting things up, I triggered a rebuild on the model. So far, so good, lft and rgt were set correctly.
However depth was set to 0 for every record. I also could not find a way to trigger a rebuild for depth (only). Do I miss something here?
My brute force workaround was to loop over all records and set depth to level which was resolved to the correct value.
See also similar tickets #314 and #116 that were closed as stale.
I added Awesome Nested Set to an existing project where we have (scoped) records that are linked with
parent_ids. After setting things up, I triggered a rebuild on the model. So far, so good,lftandrgtwere set correctly.However
depthwas set to0for every record. I also could not find a way to trigger a rebuild for depth (only). Do I miss something here?My brute force workaround was to loop over all records and set
depthtolevelwhich was resolved to the correct value.See also similar tickets #314 and #116 that were closed as stale.