-
Notifications
You must be signed in to change notification settings - Fork 53
Allow theme and plugin list generation to fail gracefully #676
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
Conversation
|
Is see in DoD of the task Also, I am thinking - is it expected to have empty array? What is we have some plugins/theme, looks like they will be ignored, won't they? |
Yes, in such a case, an entry in |
I mean, here, we have "Done is: Application doesn't crash and send error to Sentry when WP CLI can't get plugins or themes details".
I am not enough in context, but I have a personal feeling that it's better to show the errors instead of allowing using a site that doesn't have all the original data. Since it can make frustration for users, with feeling like "There should be plugins/theme, but I don't have them and I didn't know why, since I didn't have errors". |
And I think it exactly does that now: it doesn't crash and doesn't send errors to Sentry.
The exported package will include all plugins and themes inside
I think that a potential case is when a user installed a plugin that results in dumping some HTML when the wp cli command is executed. |
Oh, I see 😅 When I was reading, I applied "doesn't" only for the first part of the sentence :) Thanks for the answers, LGTM 👍 |
Related issues
Proposed Changes
I propose to return an empty array when Studio gets an error from WP CLI when it tries to get a list of plugins or themes for export purposes.
Testing Instructions
meta.jsonfilePre-merge Checklist