-
Notifications
You must be signed in to change notification settings - Fork 2
Outputs #223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Outputs #223
Conversation
super(name); | ||
} | ||
|
||
public Map<String, Object> toMap() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably not needed
this.error = props.get("error", String.class); | ||
this.output = props.get("output", String.class); | ||
this.error = props.get("error", String.class); | ||
this.inputs = JsonUtils.read(props.get("inputs", InputStream.class), InputValues.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fallback executableInputs
to maintain backward compatibility
There was a problem hiding this 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 adds support for execution outputs functionality, allowing scripts to generate downloadable files. The changes include new type definitions for outputs, a download UI component, and backend support for storing and serving output files.
- Introduces
Output
andOutputs
types for defining downloadable script outputs - Adds
ExecutionDownloadOutputsButton
component for downloading execution outputs - Restructures input/output handling by moving
inputs
fromExecutable
toExecution
interface
Reviewed Changes
Copilot reviewed 40 out of 40 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
ui.frontend/src/utils/api.types.ts | Adds Output and Outputs types, moves inputs from Executable to Execution |
ui.frontend/src/pages/ScriptView.tsx | Updates API call structure to move inputs outside of code object |
ui.frontend/src/pages/ExecutionView.tsx | Integrates download button and updates UI layout |
ui.frontend/src/pages/ConsolePage.tsx | Adds execution download functionality with type tracking |
ui.frontend/src/components/ExecutionDownloadOutputsButton.tsx | New component for downloading execution outputs |
core/src/main/java/dev/vml/es/acm/core/servlet/ExecutionOutputServlet.java | New servlet for serving execution output files |
core/src/main/java/dev/vml/es/acm/core/code/Output.java | New class for individual output definitions |
core/src/main/java/dev/vml/es/acm/core/code/Outputs.java | New class for managing output collections |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
No description provided.