Skip to content

Feat/catalog etl r2 image upload#1561

Open
Isthisanmol wants to merge 20 commits intomainfrom
feat/catalog-etl-r2-image-upload
Open

Feat/catalog etl r2 image upload#1561
Isthisanmol wants to merge 20 commits intomainfrom
feat/catalog-etl-r2-image-upload

Conversation

@Isthisanmol
Copy link
Collaborator

No description provided.

@cloudflare-workers-and-pages
Copy link
Contributor

cloudflare-workers-and-pages bot commented Aug 16, 2025

Deploying packrat-landing with  Cloudflare Pages  Cloudflare Pages

Latest commit: d876879
Status: ✅  Deploy successful!
Preview URL: https://798b1c03.packrat-landing.pages.dev
Branch Preview URL: https://feat-catalog-etl-r2-image-up.packrat-landing.pages.dev

View logs

@Isthisanmol Isthisanmol requested a review from mikib0 August 17, 2025 17:42
@andrew-bierman andrew-bierman requested a review from Copilot August 18, 2025 21:06

This comment was marked as outdated.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@andrew-bierman andrew-bierman requested a review from Copilot August 18, 2025 21:07

This comment was marked as outdated.

andrew-bierman and others added 2 commits August 18, 2025 15:11
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@andrew-bierman andrew-bierman requested a review from Copilot August 18, 2025 21:12

This comment was marked as outdated.

Isthisanmol and others added 3 commits August 19, 2025 22:39
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Isthisanmol Isthisanmol force-pushed the feat/catalog-etl-r2-image-upload branch from 10864c4 to 7d90373 Compare August 19, 2025 17:26
@cloudflare-workers-and-pages
Copy link
Contributor

cloudflare-workers-and-pages bot commented Aug 19, 2025

Deploying packrat-guides with  Cloudflare Pages  Cloudflare Pages

Latest commit: d876879
Status: ✅  Deploy successful!
Preview URL: https://369d0c9a.packrat-guides-6gq.pages.dev
Branch Preview URL: https://feat-catalog-etl-r2-image-up.packrat-guides-6gq.pages.dev

View logs

@Isthisanmol Isthisanmol requested a review from Copilot August 21, 2025 06:42
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 PR implements image upload functionality for the catalog ETL process, enabling automatic upload of product images to a dedicated R2 bucket during data processing.

Key changes:

  • Adds support for a new 'images' bucket type to handle image storage separately from catalog data
  • Implements image download, validation, and upload logic within the ETL pipeline
  • Replaces original image URLs with R2 storage keys for processed catalog items

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
packages/api/src/services/r2-bucket.ts Adds 'images' bucket type and maps it to PACKRAT_SCRAPY_BUCKET_R2_BUCKET_NAME environment variable
packages/api/src/services/etl/queue.ts Implements image processing logic including download, validation, upload to R2, and URL replacement in catalog items

Copy link
Collaborator

@andrew-bierman andrew-bierman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Isthisanmol
Copy link
Collaborator Author

@mikib0 Would you also take a look? As you are working on etl actively.

@mikib0
Copy link
Collaborator

mikib0 commented Aug 24, 2025

Good call @Isthisanmol! cuz there would like be clash with the work here #1625.

I'll look into this once I get that in since it's currently a blocker for ETL. That okay?

@Isthisanmol
Copy link
Collaborator Author

Good call @Isthisanmol! cuz there would like be clash with the work here #1625.

I'll look into this once I get that in since it's currently a blocker for ETL. That okay?

Yeah, sure

Base automatically changed from development to main August 25, 2025 04:21
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.

3 participants