Skip to content
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

feat: add exports for convenient extending of the plugin features #20152

Open
wants to merge 1 commit into
base: v5/main
Choose a base branch
from

Conversation

chupacabri
Copy link

Hello strapi contributors,

Thank you for the project!

Please review my idea. It is small and safe change, but it is very important because it opens many ways to customize default behavior of the plugin.

Thanks.

What does it do?

added additional exports to upload plugin

Why is it needed?

exporting of these functions give us an opportunity to reuse they when we want to extend, change or disable part of functionality of the original upload plugin. so we don't have to create a new upload module to change something in behavior of the original plugin, because it is very well, but sometimes we need to have this option.

for example: I would like to change generateBreakpoint algorithm and reuse it after in my own generateResponsiveFormats call which I can override when I extend the plugin or if I would like to extend default behavior of generateResponsiveFormats adding some additional actions.

How to test it?

extend upload plugin with extending and overriding these functions

Related issue(s)/PR(s)

no

Copy link

vercel bot commented Apr 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
contributor-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 18, 2024 2:12pm

@chupacabri chupacabri changed the title add exports for convenient extending of the plugin features feat: add exports for convenient extending of the plugin features Apr 18, 2024
@chupacabri
Copy link
Author

@alexandrebodin, Could you please look at the pr? Thanks.

@alexandrebodin
Copy link
Member

Hello @chupacabri we will reviews as soon as we can. Please avoid pinging directly people from the team 🙏

@alexandrebodin alexandrebodin added source: core:upload Source is core/upload package pr: enhancement This PR adds or updates some part of the codebase or features labels Apr 18, 2024
@alexandrebodin alexandrebodin self-requested a review April 18, 2024 14:45
@alexandrebodin alexandrebodin self-assigned this Apr 18, 2024
@chupacabri
Copy link
Author

Hello @chupacabri we will reviews as soon as we can. Please avoid pinging directly people from the team 🙏

Of course. There is no problem. Thanks for the clarification.

@alexandrebodin
Copy link
Member

@chupacabri Our CI is complaining about your commit message, (commitlint, can you amend it to feat with conventional commits please)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community pr: enhancement This PR adds or updates some part of the codebase or features source: core:upload Source is core/upload package
Projects
Status: To be reviewed
Development

Successfully merging this pull request may close these issues.

None yet

3 participants