Skip to content

Conversation

@hengxian-jiang
Copy link
Collaborator

@hengxian-jiang hengxian-jiang commented Jan 15, 2026

Merge Checklist

Please cross check this list if additions / modifications needs to be done on top of your core changes and tick them off. Reviewer can as well glance through and help the developer if something is missed out.

  • Automated Tests (Jasmine integration tests, Unit tests, and/or Performance tests)
  • Updated Manual tests / Demo Config
  • Documentation (Application guide, Admin guide, Markdown, Readme and/or Wiki)
  • Verified that local development environment is working with latest changes (integrated with latest develop branch)
  • following best practices in code review doc
Screenshot 2026-01-19 at 3 02 12 PM

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

This pull request adds support for uploading, downloading, listing, and deleting Strategus results files through a new set of storage APIs. The implementation creates dedicated endpoints for managing Strategus results stored in a separate Supabase storage bucket.

Changes:

  • Added four new API endpoints for Strategus results management (upload, download, list, delete) with corresponding authorization scopes
  • Implemented direct storage methods that bypass path transformation logic used by existing storage operations
  • Created a new controller in jobplugins to handle Strategus results operations with file validation (zip files up to 500MB)

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 16 comments.

Show a summary per file
File Description
functions/portal/src/supabase-storage/supabase.storage.controller.ts Added four new endpoints for Strategus results operations (upload/download/list/delete) with query parameter validation
functions/portal/src/supabase-storage/supabase.storage.client.ts Implemented direct storage methods (uploadDirect, downloadDirect, deleteDirect, listByPrefix) and added strategus-results bucket initialization
functions/package.json Added authorization scope configurations for the new Strategus results endpoints
functions/jobplugins/src/controllers/StrategusResultsController.ts Created new controller with file validation, size limits, and error handling for Strategus results
functions/jobplugins/src/api/PortalServerAPI.ts Added four client methods to interface with the new Strategus results storage endpoints and removed unused import
functions/jobplugins/index.ts Registered the new StrategusResultsController route in the application

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

…rolled format string

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: hengxian-jiang <155619404+hengxian-jiang@users.noreply.github.com>
@SantanM
Copy link
Collaborator

SantanM commented Jan 21, 2026

As discussed, please test the scenario when two set of results results_a.zip and results_b.zip will be uploaded to the same study.
In this case the output must be as follows -

  1. Both results must go to the same schema
  2. On the result viewer both results must be available (without any override or losing the past results)

The assumptions you can make are -

  1. both results_a.zip and results_b.zip have same analysis specification
  2. the available csv files are exactly the same

…rolled format string

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: hengxian-jiang <155619404+hengxian-jiang@users.noreply.github.com>
@hengxian-jiang hengxian-jiang added this pull request to the merge queue Jan 26, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 26, 2026
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.

Enable download and upload functionality for Strategus results

4 participants