Optimize queries in "/projects/:id/share_locations" API endpoint
The following discussion from !113329 (merged) should be addressed:
-
@manojmj started a discussion: (+3 comments) Context: This
searchmethod runs the default parameter ofinclude_parents: false, which does not search for full paths.What we can just use instead is the
by_searchmethod frombase.rb, which already runs withinclude_parents: true, so searching by full path will just work as intended, which we already use in finders in the same hierarchy, like in this finder.