java-sdk icon indicating copy to clipboard operation
java-sdk copied to clipboard

Add Unsubscribe API for Configuration building block

Open mukundansundar opened this issue 3 years ago • 5 comments

https://github.com/dapr/dapr/pull/4130 changes proto files to add unsubscribe API as well as additional fields to existing configuration API response.

Implement the unsubscribe API as well as add in the additional fields necessary for the change to include ID field in subscribe API to track for stopping subscription.

Release Note

RELEASE NOTE: Add unsubscribe API.

mukundansundar avatar Feb 28 '22 13:02 mukundansundar

@artursouza

mukundansundar avatar Feb 28 '22 13:02 mukundansundar

/assign

pravinpushkar avatar Mar 16 '22 12:03 pravinpushkar

@mukundansundar Verified this with dapr master and proto file, it works fine. There is no change needed at Java-sdk level.

We can close this issue.

pravinpushkar avatar Mar 18 '22 16:03 pravinpushkar

@pravinpushkar Interesting ... We are not using the full SubscribeConfigurationResponse anywhere ... Which is kind of expected since it only contained List<ConfigurationItem> till the above PR. Now it has an ID field too ... which is used for unsubscribe API.

I will keep this issue open and change the title to implement unsubscribe API. Then we would need the proto changes that were made in dapr/dapr. https://github.com/dapr/dapr/pull/4130/files#diff-da511bac0105b1e517ff78c6351b68bda0d5862cb0daae89127f6c0250551265R528

mukundansundar avatar Mar 18 '22 19:03 mukundansundar

I have added a breaking changes label since I believe the exposed API in the preview client will change to include the SubscribeConfigurationResponse.

mukundansundar avatar Mar 18 '22 19:03 mukundansundar