Skip to content

Comments

Add PATCH to HttpMethods enum for service invocation#1623

Merged
salaboy merged 3 commits intodapr:masterfrom
lindner:add-patch-http-method
Feb 2, 2026
Merged

Add PATCH to HttpMethods enum for service invocation#1623
salaboy merged 3 commits intodapr:masterfrom
lindner:add-patch-http-method

Conversation

@lindner
Copy link
Contributor

@lindner lindner commented Jan 21, 2026

Summary

  • Adds PATCH to the HttpMethods enum to enable using DaprClient.invokeMethod() with PATCH requests through HTTPEndpoints

Test plan

  • SDK compiles successfully
  • Verify PATCH method works with invokeMethod() for HTTPEndpoint service invocation

Fixes #1622

@lindner lindner requested review from a team as code owners January 21, 2026 17:21
@lindner lindner force-pushed the add-patch-http-method branch from c703f67 to 443b03d Compare January 21, 2026 17:22
@salaboy
Copy link
Collaborator

salaboy commented Jan 21, 2026

@lindner thanks for the contribution. We will definitely need a test for this. I would recommend you an integration test too using test container to validate that the change works using the sidecar.

@lindner
Copy link
Contributor Author

lindner commented Jan 29, 2026

@lindner thanks for the contribution. We will definitely need a test for this. I would recommend you an integration test too using test container to validate that the change works using the sidecar.

Can you help me identify the correct place for this? It's just another HTTP verb, so I don't think it's going to need much...

@salaboy
Copy link
Collaborator

salaboy commented Jan 30, 2026

Copy link
Collaborator

@salaboy salaboy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change is great but we need tests, one test here will be enough: https://github.com/dapr/java-sdk/blob/master/sdk/src/test/java/io/dapr/client/DaprHttpTest.java#L247

@lindner lindner force-pushed the add-patch-http-method branch from ce4b3c7 to 68f006f Compare February 2, 2026 06:09
@lindner lindner requested a review from salaboy February 2, 2026 06:10
Adds PATCH to the HttpMethods enum to enable using DaprClient.invokeMethod()
with PATCH requests through HTTPEndpoints. This is commonly required for
partial updates when calling external REST APIs via Dapr service invocation.

Fixes dapr#1622

Signed-off-by: Paul Lindner <plindner@metropolis.io>
Signed-off-by: Paul Lindner <plindner@metropolis.io>
@lindner lindner force-pushed the add-patch-http-method branch from 68f006f to a2ac14a Compare February 2, 2026 06:12
Copy link
Collaborator

@salaboy salaboy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/LGTM

@salaboy salaboy merged commit 528451f into dapr:master Feb 2, 2026
10 of 11 checks passed
@codecov
Copy link

codecov bot commented Feb 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.97%. Comparing base (a47a62a) to head (c2024f4).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1623      +/-   ##
============================================
- Coverage     79.02%   78.97%   -0.05%     
  Complexity     2097     2097              
============================================
  Files           228      228              
  Lines          6321     6322       +1     
  Branches        693      693              
============================================
- Hits           4995     4993       -2     
- Misses          975      978       +3     
  Partials        351      351              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

javier-aliaga pushed a commit to javier-aliaga/java-sdk that referenced this pull request Feb 2, 2026
* Add PATCH to HttpMethods enum for service invocation

Adds PATCH to the HttpMethods enum to enable using DaprClient.invokeMethod()
with PATCH requests through HTTPEndpoints. This is commonly required for
partial updates when calling external REST APIs via Dapr service invocation.

Fixes dapr#1622

Signed-off-by: Paul Lindner <plindner@metropolis.io>

* Add test for PATCH HTTP method

Signed-off-by: Paul Lindner <plindner@metropolis.io>

---------

Signed-off-by: Paul Lindner <plindner@metropolis.io>
Co-authored-by: salaboy <Salaboy@gmail.com>
javier-aliaga pushed a commit to javier-aliaga/java-sdk that referenced this pull request Feb 2, 2026
* Add PATCH to HttpMethods enum for service invocation

Adds PATCH to the HttpMethods enum to enable using DaprClient.invokeMethod()
with PATCH requests through HTTPEndpoints. This is commonly required for
partial updates when calling external REST APIs via Dapr service invocation.

Fixes dapr#1622

Signed-off-by: Paul Lindner <plindner@metropolis.io>

* Add test for PATCH HTTP method

Signed-off-by: Paul Lindner <plindner@metropolis.io>

---------

Signed-off-by: Paul Lindner <plindner@metropolis.io>
Co-authored-by: salaboy <Salaboy@gmail.com>
Signed-off-by: Javier Aliaga <javier@diagrid.io>
javier-aliaga pushed a commit to javier-aliaga/java-sdk that referenced this pull request Feb 2, 2026
* Add PATCH to HttpMethods enum for service invocation

Adds PATCH to the HttpMethods enum to enable using DaprClient.invokeMethod()
with PATCH requests through HTTPEndpoints. This is commonly required for
partial updates when calling external REST APIs via Dapr service invocation.

Fixes dapr#1622

Signed-off-by: Paul Lindner <plindner@metropolis.io>

* Add test for PATCH HTTP method

Signed-off-by: Paul Lindner <plindner@metropolis.io>

---------

Signed-off-by: Paul Lindner <plindner@metropolis.io>
Co-authored-by: salaboy <Salaboy@gmail.com>
javier-aliaga pushed a commit to javier-aliaga/java-sdk that referenced this pull request Feb 2, 2026
* Add PATCH to HttpMethods enum for service invocation

Adds PATCH to the HttpMethods enum to enable using DaprClient.invokeMethod()
with PATCH requests through HTTPEndpoints. This is commonly required for
partial updates when calling external REST APIs via Dapr service invocation.

Fixes dapr#1622

Signed-off-by: Paul Lindner <plindner@metropolis.io>

* Add test for PATCH HTTP method

Signed-off-by: Paul Lindner <plindner@metropolis.io>

---------

Signed-off-by: Paul Lindner <plindner@metropolis.io>
Co-authored-by: salaboy <Salaboy@gmail.com>
Signed-off-by: Javier Aliaga <javier@diagrid.io>
salaboy added a commit that referenced this pull request Feb 2, 2026
* push removing unnecesary var (#1634)

Signed-off-by: salaboy <Salaboy@gmail.com>
Signed-off-by: Javier Aliaga <javier@diagrid.io>

* Replace old log based waits with DaprWait strategy. (#1635)

* Replace old log based waits with DaprWait strategy.

Signed-off-by: Artur Ciocanu <artur.ciocanu@gmail.com>

* Revert ConsumerAppIT to make tests pass.

Signed-off-by: Artur Ciocanu <artur.ciocanu@gmail.com>

* Revert ConsumerAppIT so there are no changes.

Signed-off-by: Artur Ciocanu <artur.ciocanu@gmail.com>

* Disable the IT test for failing CI.

Signed-off-by: Artur Ciocanu <artur.ciocanu@gmail.com>

---------

Signed-off-by: Artur Ciocanu <artur.ciocanu@gmail.com>
Signed-off-by: Javier Aliaga <javier@diagrid.io>

* Add PATCH to HttpMethods enum for service invocation (#1623)

* Add PATCH to HttpMethods enum for service invocation

Adds PATCH to the HttpMethods enum to enable using DaprClient.invokeMethod()
with PATCH requests through HTTPEndpoints. This is commonly required for
partial updates when calling external REST APIs via Dapr service invocation.

Fixes #1622

Signed-off-by: Paul Lindner <plindner@metropolis.io>

* Add test for PATCH HTTP method

Signed-off-by: Paul Lindner <plindner@metropolis.io>

---------

Signed-off-by: Paul Lindner <plindner@metropolis.io>
Co-authored-by: salaboy <Salaboy@gmail.com>
Signed-off-by: Javier Aliaga <javier@diagrid.io>

---------

Signed-off-by: salaboy <Salaboy@gmail.com>
Signed-off-by: Javier Aliaga <javier@diagrid.io>
Signed-off-by: Artur Ciocanu <artur.ciocanu@gmail.com>
Signed-off-by: Paul Lindner <plindner@metropolis.io>
Co-authored-by: salaboy <Salaboy@gmail.com>
Co-authored-by: artur-ciocanu <artur.ciocanu@gmail.com>
Co-authored-by: Paul Lindner <lindner@inuus.com>
@nelson-parente nelson-parente added this to the v1.17 milestone Feb 12, 2026
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.

Add PATCH to HttpMethods enum for service invocation

4 participants