-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
REST API: Fix wrong plugin schema #34858
Conversation
We serialize some plugin's fields as dictionaries leading to errors when accessing the `/plugins` endpoint. Here's the error: ValueError: dictionary update sequence element #0 has length 1; 2 is required The fields are lists of strings and this PR addresses it.
I'm not sure how we can test this. Create a Plugin? |
We already have tests to test the endpoint, but those fields are all empty in the stub plugin so it does not reflect the change. Maybe it would be possible to add those to the test. |
Yeah, Looking at adding possible items to the fields |
* REST API: Fix wrong plugin schema We serialize some plugin's fields as dictionaries leading to errors when accessing the `/plugins` endpoint. Here's the error: ValueError: dictionary update sequence element #0 has length 1; 2 is required The fields are lists of strings and this PR addresses it. * fixup! REST API: Fix wrong plugin schema * Add test at the endpoint * fixup! Add test at the endpoint (cherry picked from commit 474fa4d)
* REST API: Fix wrong plugin schema We serialize some plugin's fields as dictionaries leading to errors when accessing the `/plugins` endpoint. Here's the error: ValueError: dictionary update sequence element #0 has length 1; 2 is required The fields are lists of strings and this PR addresses it. * fixup! REST API: Fix wrong plugin schema * Add test at the endpoint * fixup! Add test at the endpoint (cherry picked from commit 474fa4d)
We serialize some plugin's fields as dictionaries leading to errors when accessing the /plugins endpoint.
Here's the error:
ValueError: dictionary update sequence element #0 has length 1; 2 is required
The fields are lists of strings and this PR addresses it.