Skip to content

web (job submission): enhancements#6418

Merged
AenBleidd merged 1 commit intomasterfrom
dpa_submit34
Jul 8, 2025
Merged

web (job submission): enhancements#6418
AenBleidd merged 1 commit intomasterfrom
dpa_submit34

Conversation

@davidpanderson
Copy link
Copy Markdown
Contributor

  • show completion (or abort) time in batch lists
  • allow ordering of batch lists by asc/desc submit time or completion time

- show completion (or abort) time in batch lists
- allow ordering of batch lists by asc/desc submit time or completion time
Copilot AI review requested due to automatic review settings July 8, 2025 19:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the batch listing page by adding completion/abort timestamps to the tables and enabling users to sort batches by submission or completion time.

  • Added order controls (order_options, order_item, order_clause, get_order) to generate sort links
  • Updated batch tables (show_complete, show_aborted) to display completion_time
  • Modified handlers (handle_show_status, handle_admin_*, handle_show_all) to apply dynamic ORDER BY clauses based on user selection
Comments suppressed due to low confidence (2)

html/user/submit.php:63

  • [nitpick] Consider adding a doc comment explaining the purpose and parameters of order_options, order_item, order_clause, and get_order for better maintainability.
function order_options($url_args, $order) {

html/user/submit.php:60

  • No automated tests were added to cover the new sorting UI and SQL ordering logic; consider adding unit or functional tests to verify each order option.
// sub_asc, sub_desc: submission time ( = ID order)

return $label;
} else {
$url .= "&order=$order";
return "<a href=$url>$label</a>";
Copy link

Copilot AI Jul 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrap the href value in quotes and escape the URL (e.g. htmlspecialchars()) to avoid malformed HTML and potential XSS vulnerabilities.

Copilot uses AI. Check for mistakes.
}
}

function order_clause($order) {
Copy link

Copilot AI Jul 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a default case or fallback return value in order_clause to guard against unexpected order inputs, preventing invalid SQL syntax.

Copilot uses AI. Check for mistakes.
@AenBleidd AenBleidd added this to Server Jul 8, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Server Jul 8, 2025
@AenBleidd AenBleidd added this to the Server Release 1.6.0 milestone Jul 8, 2025
@AenBleidd AenBleidd merged commit eca9f6b into master Jul 8, 2025
178 of 180 checks passed
@AenBleidd AenBleidd deleted the dpa_submit34 branch July 8, 2025 22:29
@github-project-automation github-project-automation bot moved this from Backlog to Done in Server Jul 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants