Skip to content

Conversation

@petruki
Copy link
Member

@petruki petruki commented Oct 12, 2025

This pull request updates the Switcher Client SDK to version 2.5.1 and fixes throttle feature when using Strategy inputs. The issue was that the mapper wasn't assigning the entries (Strategy inputs) to the copied response object, which caused the cache to have invalid entries.

Refactoring and Code Organization:

  • Moved query parameter constants (KEY, SHOW_REASON, BYPASS_METRIC) from SwitcherRequest to the ClientWS interface, centralizing their definitions and usage. ([[1]](https://github.com/switcherapi/switcher-client-java/pull/373/files#diff-50b643c046fcf01d65f95fbeb497f0da0daaf755828ef185e1a3bd8381b2b710L23-L28), [[2]](https://github.com/switcherapi/switcher-client-java/pull/373/files#diff-73f7c13916e88a9d34ab504ec707b33a7bfee0360c8ee1277bfdec7dd7ae0fceR45-R59))
  • Updated usages in ClientWSImpl to reference the constants from ClientWS instead of SwitcherRequest, ensuring consistency and reducing coupling. ([src/main/java/com/switcherapi/client/remote/ClientWSImpl.javaL50-R51](https://github.com/switcherapi/switcher-client-java/pull/373/files#diff-a39c02177032671f84fcce967ebed4fcf4003052d4f9ca76eb5423f7755d1219L50-R51))

@petruki petruki added this to the v1.9.1 milestone Oct 12, 2025
@petruki petruki self-assigned this Oct 12, 2025
@petruki petruki added the patch Updating internal dependencies label Oct 12, 2025
@sonarqubecloud
Copy link

@petruki petruki merged commit f9e0cc5 into master Oct 12, 2025
13 checks passed
@petruki petruki deleted the staging branch October 12, 2025 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Updating internal dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants