-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Cloudinary usability improvements #15091
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
b049151
Cloudinary package update
GTFalcao 531d3d9
Get Account Usage improvements and error handling
GTFalcao 13b8822
Get Resources improvements & error handling
GTFalcao b474087
Upload Media reworked and simplified
GTFalcao d9a54c5
File upload improvements
GTFalcao abe2c20
Reworking image transformation
GTFalcao c482de6
Video transformation + version bumps
GTFalcao c43afd8
ESLint fixes
GTFalcao 45ca93f
Merge branch 'master' into cloudinary-usability-improvements
GTFalcao 57a81ee
pnpm
GTFalcao 7b01566
Improvements to transformation options
GTFalcao cd1d313
Removing 'transform image' in favor of 'transform resource'
GTFalcao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,30 +2,68 @@ import cloudinary from "../../cloudinary.app.mjs"; | |||||
|
|
||||||
| export default { | ||||||
| key: "cloudinary-image-transformation", | ||||||
| name: "Image Transformation", | ||||||
| description: "Transforms images on-the-fly. It modifies them to any required format, style and dimension, resize and crop the images, etc. [See the documentation](https://cloudinary.com/documentation/image_transformations)", | ||||||
| version: "0.1.2", | ||||||
| name: "Transform Image", | ||||||
| description: "Transform an image asset on-the-fly with several options. [See the documentation](https://cloudinary.com/documentation/image_transformations)", | ||||||
| version: "0.1.0", | ||||||
|
||||||
| version: "0.1.0", | |
| version: "0.2.0", |
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
🛠️ Refactor suggestion
Add metadata property to options object
The review comment is correct. The
metadataproperty is defined in the component's props but not included in the options object passed to the Cloudinary API call. Here are the specific locations that need attention:components/cloudinary/actions/get-resources/get-resources.mjs, add themetadataproperty to the options object in therunmethod:🔗 Analysis chain
Verify metadata property integration with Cloudinary API
The new metadata property is well-documented, but it needs to be included in the options object passed to the Cloudinary API.
Add the metadata property to the options object in the run method:
const options = { resource_type: this.resourceType, type: this.type, prefix: this.prefix, tags: this.tags, context: this.context, moderation: this.moderation, + metadata: this.metadata, };Let me verify if the metadata property is properly integrated with the Cloudinary API by checking the implementation.
Let me fix the regex and try again.
🏁 Scripts executed
The following scripts were executed for the analysis:
Error: No shell scripts found
Script:
Length of output: 190
Script:
Length of output: 674