Executions: Re-run Workflow, and search that finds commands (#18, #16)
CI / Test (jest) (pull_request) Successful in 23s
CI / Lint (eslint) (pull_request) Successful in 26s
CI / Security (npm audit) (pull_request) Successful in 15s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m42s
CI / Integration (api) (pull_request) Successful in 2m37s
CI / UI (playwright) (pull_request) Successful in 2m45s
CI / Deploy (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / UI screenshots (before/after) (pull_request) Successful in 2m41s

- #18: a workflow execution's detail now offers Re-run Workflow, which
  starts the same workflow with the parameters from its params log entry
  (after a confirm listing them) and opens the new run. Quick commands
  keep Re-run Command.
- #16: search runs on the server: workflow name, who started it, the id,
  or any command the execution ran (JSON_SEARCH over the logs). The page
  sends it as you type (debounced 300 ms, from the first page); the
  status filter stays local.
- Regression tests for #12 (Create Workflow starts with the example) and
  #13 (dry run works for workflows without parameters), which the UI
  rewrite had already fixed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jaredandClaude Opus 5.5 committed 2026-11-23 13:03:42 -05:00
1 parent 06d6c72709
commit 4cf3c084a9
5 files changed
+116 -16

No files matched your search

+4 -3
View File
@@ -1682,9 +1682,10 @@ app.get('/api/executions', authenticateSSO, async (req, res) => {
queryParams.push(new Date(req.query.before));
}
if (req.query.search) {
conditions.push('(w.name LIKE ? OR e.started_by LIKE ?)');
const term = `%${req.query.search}%`;
queryParams.push(term, term);
// Workflow name, who started it, the id, or any command it ran (#16).
conditions.push("(w.name LIKE ? OR e.started_by LIKE ? OR e.id LIKE ? OR JSON_SEARCH(e.logs, 'one', ?, NULL, '$[*].command') IS NOT NULL)");
const term = `%${String(req.query.search).slice(0, 200)}%`;
queryParams.push(term, term, term, term);
}
const whereClause = conditions.length ? `WHERE ${conditions.join(' AND ')}` : '';