Skip to content

feat(portal): offload object downloads to a Web Worker#1062

Draft
mark-karnaukh-extern-sap wants to merge 2 commits into
mainfrom
mark-ceph-download-worker-setup
Draft

feat(portal): offload object downloads to a Web Worker#1062
mark-karnaukh-extern-sap wants to merge 2 commits into
mainfrom
mark-ceph-download-worker-setup

Conversation

@mark-karnaukh-extern-sap

Copy link
Copy Markdown
Contributor

Summary

Changes Made

  • Change 1
  • Change 2
  • Change 3

Related Issues

  • Issue 1: [link to issue]

Screenshots (if applicable)

Testing Instructions

  1. pnpm i
  2. pnpm run test

Checklist

  • I have performed a self-review of my code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • I have made corresponding changes to the documentation (if applicable).
  • My changes generate no new warnings or errors.

Move object download streaming, base64 decode and Blob assembly into a
dedicated module worker so large objects don't jank the main thread.
Ownership of in-flight transfers moves to a module store (outside React)
so a download survives ObjectsTableView unmounting during folder
navigation. Includes a cancelDownload mutation to stop the BFF read
server-side without waiting on the httpBatchStreamLink connection to close.
The server-side cancel procedure isn't needed: cancellation already clears
the UI synchronously and aborts the worker's fetch, which tears down the
request so the BFF stops reading. Remove the cancelDownload mutation and
downloadAborters registry, and cancel through ctx.req.signal alone — the
pre-worker behavior. Keeps the worker/store download offload intact.
@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 77e527dd-f166-4745-8d9e-35f05a5cef6c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch mark-ceph-download-worker-setup

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

[Task](aurora-portal): move object downloads to a background Web Worker

1 participant