The GitHub Actions job "Required Checks" on texera.git/main has failed. Run started by GitHub user github-merge-queue[bot] (triggered by github-merge-queue[bot]).
Head commit for run: 0796c47de4c14287b147eaa2b8d416f3e1371086 / Xinyuan Lin <[email protected]> refactor(amber): simplify dashboard database queries (#9476) ### What changes were proposed in this PR? Remove redundant database work from three Amber REST resources. **+84/−176 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 sums result and console-log bytes per execution with two correlated subqueries 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 access flag in the paginated query from `WorkflowAccess.accessibleWids`, the same owner-or-grant rule it used before. 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. After review, all 58 cases in the four specs passed again with the correlated quota sums and the shared access rule. A local probe also covered null and missing sizes, another user's rows, and a quota sum past the signed 64-bit range. The Scalafmt and Scalafix checks for `WorkflowExecutionService` 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), Claude Code (Claude Opus 5.5) --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Report URL: https://github.com/apache/texera/actions/runs/43987243669 With regards, GitHub Actions via GitBox
