Skip to content

Conversation

@leoraba
Copy link
Contributor

@leoraba leoraba commented Jun 11, 2025

Summary

Re implement support of upload submission files. Supported extensions are .tsv and .csv

Issues

Description of Changes

Enhanced endpoints to support file uploads for submissions.

Server

  • Modified the New Submission endpoint (POST /submission/category/:categoryId/data) to accept file uploads.
  • Modified the Edit Submission endpoint (PUT /submission/category/:categoryId/data) to accept file uploads.

Swagger

  • Updated Swagger documentation for both endpoints to include the required files parameter in the request.

Documentation

  • Updated README file to include a description with examples of new environment variable FILES_LIMIT_SIZE

Readiness Checklist

  • Self Review
    • I have performed a self review of code
    • I have run the application locally and manually tested the feature
    • I have checked all updates to correct typos and misspellings
  • Formatting
    • Code follows the project style guide
    • Autmated code formatters (ie. Prettier) have been run
  • Local Testing
    • Successfully built all packages locally
    • Successfully ran all test suites, all unit and integration tests pass
  • Updated Tests
    • Unit and integration tests have been added that describe the bug that was fixed or the features that were added
  • Documentation
    • All new environment variables added to .env.schema file and documented in the README
    • All changes to server HTTP endpoints have open-api documentation
    • All new functions exported from their module have TSDoc comment documentation

@leoraba
Copy link
Contributor Author

leoraba commented Jun 13, 2025

This PR depends on PR #146

@leoraba leoraba marked this pull request as draft June 13, 2025 13:44
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