8000 File argument by krystian-panek-vmltech · Pull Request #125 · wttech/acm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

File argument #125

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

Merged
merged 25 commits into from
Jun 9, 2025
Merged

File argument #125

merged 25 commits into from
Jun 9, 2025

Conversation

krystian-panek-vmltech
Copy link
Collaborator
@krystian-panek-vmltech krystian-panek-vmltech commented Jun 6, 2025
image

@krystian-panek-vmltech krystian-panek-vmltech changed the title File argument PoC File argument Jun 9, 2025
@krystian-panek-vmltech krystian-panek-vmltech marked this pull request as ready for review June 9, 2025 09:11
@krystian-panek-vmltech krystian-panek-vmltech requested review from Copilot and mariusz-pacyga-wttech and removed request for Copilot June 9, 2025 09:11
Copy link
Contributor
@Copilot 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 introduces and integrates file upload functionality into the application by adding a new FileUploader component, updating argument types to support file and multi‐file inputs, and implementing backend file management endpoints.

  • Adds a FileUploader component in the frontend to handle file uploads and deletions.
  • Updates CodeArgumentInput to render file and multi‐file inputs using the new FileUploader component.
  • Introduces new backend components (FileServlet, FileManager, and related classes) to support file operations.

Reviewed Changes

Copilot reviewed 22 out of 22 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
ui.frontend/src/components/UserInfo.tsx Removed an extra blank line for style consistency.
ui.frontend/src/components/FileUploader.tsx New FileUploader component for file handling using React Spectrum components.
ui.frontend/src/components/CodeArgumentInput.tsx Updated to conditionally render FileUploader for file and multi‐file arguments.
ui.content/.../argument/*.yml Updated snippets and documentation to reflect file and multi‐file usage.
core/src/main/java/dev/vml/es/acm/core/util/TypeUtils.java Added conversion support for File and array types.
core/src/main/java/dev/vml/es/acm/core/servlet/FileServlet.java New servlet to manage file upload and deletion endpoints.
core/src/main/java/dev/vml/es/acm/core/code/* New/updated classes to support file and multi‐file arguments and management.
Comments suppressed due to low confidence (1)

core/src/main/java/dev/vml/es/acm/core/code/FileManager.java:25

  • [nitpick] The exception message in this validation could be improved for clarity, for example by adding a space after 'root directory' in the error text.
if (!StringUtils.startsWith(path, root().getAbsolutePath())) {

8000 krystian-panek-vmltech and others added 3 commits June 9, 2025 11:18
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@krystian-panek-vmltech krystian-panek-vmltech merged commit 857b57c into main Jun 9, 2025
1 check passed
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
0