Skip to content

Add import/export feature to torc-dash#128

Merged
daniel-thom merged 9 commits intomainfrom
feat/import-export
Feb 16, 2026
Merged

Add import/export feature to torc-dash#128
daniel-thom merged 9 commits intomainfrom
feat/import-export

Conversation

@daniel-thom
Copy link
Collaborator

The PR also

  • Fixes a bug that prevented imported results from showing up in torc results list
  • Fixes an overly-aggressive dependabot action.

daniel-thom and others added 8 commits February 15, 2026 12:08
- Add authorization to access group endpoints
- Add integrity and crossorigin="anonymous" attributes to all 4 external
  <script> tags
- Escape error messages in the dash app
- Check request size in chunked transfers
- Add authorization checks to the version endpoint
- Escape SQL LIKE queries
- Fix cargo-deny CI: use command-arguments instead of arguments for --config flag
- Fix list_group_members to return NotFoundErrorResponse instead of DefaultErrorResponse
- Log body-read errors in chunked transfer handler
- Add unit tests for escape_like_pattern helper

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The previous config grouped all Rust dependencies into a single PR,
which caused build failures from incompatible major version bumps.
Now patch and minor updates are grouped separately, and major version
bumps get individual PRs for easier review.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
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

Adds workflow import/export support to torc-dash (UI + backend CLI bridge), and fixes imported results not appearing in the default torc results list view by ensuring workflow_result is populated on result creation.

Changes:

  • Add import/export modals and UI actions in torc-dash, backed by new /api/cli/export and /api/cli/import endpoints.
  • Extend workflow export format to include compute_nodes when exporting results, and update import to remap/placeholder compute nodes so results can round-trip.
  • Fix results visibility after import by upserting workflow_result records on create_result; adjust Dependabot grouping behavior.

Reviewed changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
torc-dash/static/js/app.js Initializes new import/export modal setup in dashboard startup.
torc-dash/static/js/app-workflows.js Adds export/import execution logic and import modal opening behavior.
torc-dash/static/js/app-modals.js Implements export/import modal wiring, tab switching, and file upload handling.
torc-dash/static/js/app-details.js Adds “Export” button behavior and default output filename generation.
torc-dash/static/js/api.js Adds client helpers for /api/cli/export and /api/cli/import.
torc-dash/static/index.html Adds Import button and new Import/Export modals to the UI.
tests/test_workflow_export.rs Adds/extends tests for exporting/importing results + compute nodes and backward compatibility.
src/server/api/results.rs Fixes results listing behavior by inserting/updating workflow_result on result creation.
src/client/commands/workflows.rs Exports compute nodes with results; imports compute nodes + placeholder fallback; prints enhanced import summary.
src/client/commands/workflow_export.rs Extends export document + ID mappings/stats to include compute nodes.
src/bin/torc-dash.rs Adds new HTTP endpoints to run torc workflows export/import from the dashboard.
.github/dependabot.yml Adjusts Dependabot grouping/limits to reduce noisy PR behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
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

Copilot reviewed 11 out of 12 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@daniel-thom daniel-thom merged commit 239c8e2 into main Feb 16, 2026
10 checks passed
@daniel-thom daniel-thom deleted the feat/import-export branch February 16, 2026 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants