Skip to content

Change content type for XLSX export endpoint - #77

Open
mspandey wants to merge 1 commit into
madhav2348:mainfrom
mspandey:patch-7
Open

Change content type for XLSX export endpoint#77
mspandey wants to merge 1 commit into
madhav2348:mainfrom
mspandey:patch-7

Conversation

@mspandey

Copy link
Copy Markdown

Summary

Pass job IDs from the queue worker to the screenshot pipeline to enable stage-level status tracking.

Changes Made

  • Updated createQueueWorker to pass the current job ID when invoking pipeline.process().
  • Enabled pipeline stage updates to be associated with the correct queue job.

Why This Change?

The screenshot pipeline already supports job-aware status updates through the optional jobId parameter. However, the queue worker was invoking the pipeline without providing the job ID, preventing intermediate stages such as OCR, Vision, Source Detection, and Tagging from being reflected in queue status updates.

Passing the job ID allows the pipeline to report accurate progress throughout processing.

Impact

  • Improves visibility into job execution progress.
  • Enables stage-level monitoring and debugging.
  • Makes queue status information more accurate and useful for users and developers.

## Summary

Fix export response headers for the XLSX export endpoint.

## Changes Made

* Updated the `/exports/xlsx` endpoint to return the correct MIME type for Excel files.
* Added an appropriate download filename for exported spreadsheets.

## Why This Change?

The endpoint is named `/exports/xlsx` and uses the `XlsxExporter`, but the response currently advertises the file as CSV content. This can cause incorrect file handling in browsers and spreadsheet applications.

Using the correct XLSX content type ensures exported files are recognized and downloaded properly.

## Impact

* Improves compatibility with spreadsheet software.
* Ensures browsers handle exports correctly.
* Aligns API behavior with endpoint naming and exporter implementation.
@github-actions

Copy link
Copy Markdown

🎉 Thanks for submitting a PR, @mspandey!

Please confirm the following checklist before review:

  • ⭐ I have starred this repository
  • 🍴 I have forked this repository
  • 📖 I have read the Contributing Guidelines
  • 🔀 My changes are pushed to the develop branch

A maintainer will review your PR shortly. Thank you! 🚀

@madhav2348 madhav2348 added the invalid This doesn't seem right label Jun 19, 2026
@madhav2348

Copy link
Copy Markdown
Owner

ESOC or SSOC ? and please read contribution guidlines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid This doesn't seem right

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants