Skip to content

refactor(shopware): Optimize getPlugins to use json output #3780

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 1 commit into from
Feb 16, 2024

Conversation

mralexandernickel
Copy link
Contributor

@mralexandernickel mralexandernickel commented Feb 16, 2024

Refactoring the getPlugins function to not parse regular commandline output anymore, instead use the --json flag plugin:list. Refactoring 'sw:plugin:update:all' to not upgrade every installed plugin, but every installed plugin that in fact is upgradable.

  • Bug fix #…?

  • New feature?

  • BC breaks?

  • Tests added?

  • Docs added?

    Please, regenerate docs by running next command:
    $ php bin/docgen
    

@Schrank
Copy link
Contributor

Schrank commented Feb 16, 2024

Thank you so much for taking care of that. It is on my list for months.

@Schrank
Copy link
Contributor

Schrank commented Feb 16, 2024

And please regenerate the doc:

Please, regenerate docs by running next command:
$ php bin/docgen

Thanks! :)

Refactoring the `getPlugins` function to not parse regular commandline
output anymore, instead use the --json flag `plugin:list`.
Refactoring 'sw:plugin:update:all' to not upgrade every installed
plugin, but every installed plugin that in fact is upgradable.
@mralexandernickel
Copy link
Contributor Author

@Schrank so, I've removed the explode (obviously^^), and used these changes within a real projects deployment, looking good to me. And I've also updated the docs 😊

And thank you very much for your effort on this project! ❤

@Schrank
Copy link
Contributor

Schrank commented Feb 16, 2024

Awesome, thank you!

@Schrank Schrank merged commit 51e8e82 into deployphp:master Feb 16, 2024
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.

2 participants