-
Notifications
You must be signed in to change notification settings - Fork 643
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(client): add http_patch
method
#2471
Conversation
@nejch Just wanted to get the ball rolling on this. Not sure how much should be in the PR. Some unit tests are going to be wanted. Not sure about functional tests. |
How about placing the function in the backend? |
Since I don't know much about the backend, can you explain why? I'm doing it like all the other |
ac3531a
to
97e4438
Compare
Moving the http_* functions to the backend has already started. It will save a future work of moving this one as well and there will be no need to change the function signature. |
Sorry. I haven't looked into the back-end code. Can you explain how that will work? I don't really see much of anything in the back-end. I don't see any of the If all the other |
You might want to take a look at #2435 |
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #2471 +/- ##
=======================================
Coverage 96.18% 96.19%
=======================================
Files 86 86
Lines 5635 5644 +9
=======================================
+ Hits 5420 5429 +9
Misses 215 215
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@JohnVillalovos, I think this could be a
@lmilbaum in any case we will have these user-facing helper methods on the client, preferably backend-agnostic (https://python-gitlab.readthedocs.io/en/stable/api-levels.html#lower-level-api-http-methods). They help users work around endpoints we haven't implemented in the library. I hope if we get this right only |
I am not following what you are trying to say. In any case, maybe switching the return type in a similar way I've done in the PR #2435. |
In order to support some new API calls we need to support the HTTP `PATCH` method. Closes: #2469
97e4438
to
b27f4ee
Compare
@lmilbaum since this PR is a separate concern, I think we can do that after, I can also rebase your PR with |
In order to support some new API calls we need to support the HTTP
PATCH
method.Closes: #2469