roshiiiz opened a new pull request, #5890: URL: https://github.com/apache/texera/pull/5890
### What changes were proposed in this PR? This PR adds the ability to sort workflows by "Execution Time" on the main Dashboard, and ensures that workflows which have never been executed (where execution time is `null`) are pushed to the bottom of the list rather than awkwardly floating at the top. Changes made: - Added "Execution time" as an option in the frontend sort dropdown menu (`sort-method.ts`, `sort-button.component`). - Updated `UnifiedResourceSchema.scala` in the backend to include `resourceExecutionTimeField`. - Updated `DashboardResource.scala` and `WorkflowSearchQueryBuilder.scala` to handle the new sort condition, specifically appending `.nullsLast()` so that un-executed workflows drop to the bottom of the list. ### Any related issues, documentation, discussions? Issue#3406 ### How was this PR tested? Tested manually in a local development environment: 1. Booted the local dashboard and backend via `sbt`. 2. Created a new, unexecuted "Untitled Workflow". 3. Navigated to the Dashboard and sorted by "Execution Time". 4. Verified that the unexecuted workflow correctly fell to the bottom of the list instead of appearing at the top. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Antigravity (DeepMind) -- 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]
