The GitHub Actions job "Benchmarks" on texera.git/main has succeeded.
Run started by GitHub user github-merge-queue[bot] (triggered by 
github-merge-queue[bot]).

Head commit for run:
82cea123eb0f287ccfa1c3719c7500d7a6d2c1a3 / Xinyuan Lin <[email protected]>
refactor: narrow resource access queries (#9480)

### What changes were proposed in this PR?

Select only the fields consumed by sharing, repository, and owner
lookups. **+189/−139 lines** across fourteen Scala files.

- Workflow, dataset, and model sharing read the owner and grantee fields
they use. The owner's email comes from one join, and all three grants
find a registered grantee through `OwnerAccess.registeredUid`, which
computing-unit sharing now uses too. Access listings still populate the
same response fields.
- Dataset and model resources read only their owner's email:
`ResourceAccess.ownerEmailOf` replaces `owner`, and `getOwnerEmail`
replaces `getOwner` at all twelve call sites.
- The S3 proxy and computing-unit mount share a lookup for dataset and
model IDs. Both reject ambiguous repository names.
- File resolution reads the resource ID, repository name, and version
hash. It still checks read access before looking up a version.

### Any related issues, documentation, discussions?

Closes #9478.

### How was this PR tested?

All 175 existing tests passed across eight suites on JDK 17 with freshly
generated jOOQ classes.

An additional 21 local PostgreSQL probe cases matched on main and the
patch. Across 241 captured SELECTs, 119 read fewer columns. The
predicates, parameters, and order matched, with equality replacing
single-value `IN` where the old DAO generated it. Checks covered
placeholder accounts, exact-case email lookup, owner and grant
precedence, ambiguous repository names, and duplicate version names.
Scalafix on all five affected modules, scoped Scalafmt, and `git diff
--check` passed.

After review, the grantee lookup checks the placeholder flag in SQL,
owner emails come from a join, and dataset and model resources read only
the owner's email. New cases pin an owner without an email: the owner
lookup gives null, and the owner-email endpoint returns null rather than
an empty string. They passed before and after the owner change. All 214
cases in eleven suites passed on the final head, where a 22-case local
probe of `ownerEmail`, `grant`, `accessList`, and `revoke` also matched
main, covering an owner without an email, placeholder, unknown, and
wrong-case grantees, and the owner's own access row. Scalafmt and
Scalafix passed for `Auth`, `Resource`, `FileService`,
`AccessControlService`, `ComputingUnitManagingService`, and
`WorkflowExecutionService`.

```text
sbt "DAO/jooqGenerate" "WorkflowExecutionService/testOnly 
*WorkflowAccessResourceSpec" "Auth/testOnly *OwnerAccessSpec 
*WorkflowAccessSpec" "Resource/testOnly *ResourceAccessSpec" 
"FileService/testOnly *DatasetAccessResourceSpec *ModelAccessResourceSpec 
*S3ProxyServletSpec" "AccessControlService/testOnly 
*ComputingUnitMountResourceSpec" "ComputingUnitManagingService/testOnly 
*ComputingUnitAccessResourceSpec *ComputingUnitAccessSharingDisabledSpec" 
"WorkflowCore/testOnly *FileResolverSpec"
```

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Codex (GPT-6), Claude Code (Claude Opus 5.5)

Report URL: https://github.com/apache/texera/actions/runs/44032580907

With regards,
GitHub Actions via GitBox

Reply via email to