-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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: Machinery configuration via API #13056
base: main
Are you sure you want to change the base?
feat: Machinery configuration via API #13056
Conversation
…figuration_via_API
…figuration_via_API
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.
What I miss is support for removing a service.
Also the semantics is slightly different than with the other API endpoints.
How about:
PATCH
would change configuration for a single service. Setting it to blank would remove it.PUT
would replace configuration for all services.
) | ||
|
||
if service is None or errors: | ||
return Response({"errors": errors}, status=HTTP_400_BAD_REQUEST) |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
) | ||
|
||
if service is None or errors: | ||
return Response({"errors": errors}, status=HTTP_400_BAD_REQUEST) |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
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.
There are some errors in OpenAPI validation: https://github.com/WeblateOrg/weblate/pull/13056/checks (You can ignore the warnings, these were present before).
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13056 +/- ##
==========================================
+ Coverage 90.92% 90.95% +0.03%
==========================================
Files 601 601
Lines 62143 62248 +105
Branches 6404 6415 +11
==========================================
+ Hits 56505 56620 +115
+ Misses 3976 3967 -9
+ Partials 1662 1661 -1
|
Proposed changes
/api/projects/{string:project}/machinery_settings/
weblate.machinery.models
to be used by both API based and command based configurationChecklist
Other information