kunwp1 commented on code in PR #8890:
URL: https://github.com/apache/texera/pull/8890#discussion_r4380683697
##########
amber/src/main/scala/org/apache/texera/web/resource/dashboard/hub/HubResource.scala:
##########
@@ -280,18 +280,22 @@ object HubResource {
* Hydrates ids of one LakeFS-backed resource into hub entries. Unsizable
resources are
* dropped; ids are de-duplicated because the access join can match one
twice.
*/
- def fetchDashboardVersionedResourcesByIds(
+ /** The access join is narrowed to `uid`, so each row carries only the
viewer's own grant. */
Review Comment:
Two doc comments are now stacked here. The first describes
`fetchDashboardVersionedResourcesByIds`, and its "the access join can match one
twice" reason no longer holds now that the join is scoped to the viewer. Moving
it onto the public method and dropping that clause would fix both. The
`groupBy`/`distinctBy` that existed for that reason may be droppable too. Also,
the viewer join condition here is a duplicate of the one in
`VersionedResourceSearchQueryBuilder`. A small helper on
`VersionedResourceTables` would keep the two in step.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]