aglinxinyuan opened a new pull request, #9476: URL: https://github.com/apache/texera/pull/9476
### What changes were proposed in this PR? Remove redundant database work from three Amber REST resources. **+127/−170 lines.** - User settings read only the requested columns, upsert by `(uid, key)`, and delete directly by that key. The separate existence checks and their private DAO helpers become unnecessary. - User quota aggregates result and console-log bytes independently in one query. This avoids reading both child collections for every execution and preserves zero for missing or null sizes. - Administrator execution listing computes the same owner-or-grant access flag in the paginated query. The total drops two joins guaranteed by foreign keys. The REST response fields, user scoping, and pagination are preserved. ### Any related issues, documentation, discussions? Closes #9475. ### How was this PR tested? All 58 existing cases and nine local PostgreSQL probe cases passed on both main and the PR branch. The probes covered empty and null values, quota totals beyond the signed 64-bit range, grant removal, sorting, and page boundaries. The four-execution quota request went from nine SQL statements to one. The administrator probes went from 32 statements to 17. Strict Scala compilation of the three touched resources, the scoped Scalafmt check, and `git diff --check` passed. The existing cases were run directly with ScalaTest on JDK 17 and local PostgreSQL. They can also be run from the repository root: ```text sbt "WorkflowExecutionService/testOnly *UserConfigResourceSpec *UserQuotaResourceSpec *AdminUserResourceSpec *AdminExecutionResourceSpec" ``` ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Codex (GPT-6) -- 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]
