Closed
Conversation
- Add product ID as tag and product name as metadata when uploading images - Update StorageService to support metadata and tagging - Add helper functions for retrieving object metadata and tags - Update integration tests to validate metadata and tags are applied correctly Resolves #64
|
Overview
Environment Variables (1 changes)
NODE_ENV=production
-NODE_VERSION=22.13.0
+NODE_VERSION=22.21.1
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
YARN_VERSION=1.22.22Labels (3 changes)
-org.opencontainers.image.created=2025-01-15T22:47:28.805Z
+org.opencontainers.image.created=2025-11-10T21:35:31.381Z
org.opencontainers.image.description=
org.opencontainers.image.licenses=CC0-1.0
-org.opencontainers.image.revision=781663d8eeebad7825a85796e942c08bc774cbd0
+org.opencontainers.image.revision=3aff9bab406caf05722ba825cad2532c4b0b3ad7
org.opencontainers.image.source=https://github.com/dockersamples/catalog-service-node
org.opencontainers.image.title=catalog-service-node
org.opencontainers.image.url=https://github.com/dockersamples/catalog-service-node
-org.opencontainers.image.version=v0.2.0
+org.opencontainers.image.version=pr-65Policies (1 improved, 1 worsened, 2 missing data)
Packages and Vulnerabilities (347 package changes and 43 vulnerability changes)
Changes for packages of type
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Package | Versiondockerdevrel/catalog-service-node:latest |
Versiondockerdevrel/catalog-service-node:pr-65 |
|
|---|---|---|---|
| ➖ | node | 22.13.0 |
|
| Removed vulnerabilities (6): |
|||
Changes for packages of type github (1 changes)
| Package | Versiondockerdevrel/catalog-service-node:latest |
Versiondockerdevrel/catalog-service-node:pr-65 |
|
|---|---|---|---|
| ➕ | node | 22.21.1 |
Changes for packages of type npm (284 changes)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements the requirements from issue #64 to add product metadata and tags to S3 objects when uploading product images.
Changes Made
StorageService.js
GetObjectTaggingCommandandHeadObjectCommanduploadFile()to accept product name parameterproductnamekey)productIdkey)getObjectMetadata()andgetObjectTags()for testingProductService.js
uploadProductImage()to fetch product name from databaseStorageService.uploadFile()Integration Tests
Benefits
Testing
Resolves #64