Skip to content
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

Python - adds config reset stat command #381

Merged
merged 1 commit into from
Aug 30, 2023
Merged

Python - adds config reset stat command #381

merged 1 commit into from
Aug 30, 2023

Conversation

shohamazon
Copy link
Collaborator

@shohamazon shohamazon commented Aug 28, 2023

CONFIG RESETSTAT COMMAND:
request_policy: all_nodes
response_policy: all_succeeded

@shohamazon shohamazon requested a review from barshaul August 28, 2023 14:00
Copy link
Collaborator

@barshaul barshaul left a comment

Choose a reason for hiding this comment

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

Small changes, fix them, squash and merge

@@ -78,3 +78,17 @@ async def exec(
"""
commands = transaction.commands[:]
return await self.execute_transaction(commands, route)

async def config_reset_stat(
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should rename it to config_resetstat, to be aligned with Redis' cmd name

Copy link
Collaborator

Choose a reason for hiding this comment

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

Same for the other config_reset_stat function

@@ -233,6 +233,21 @@ async def test_delete(self, redis_client: BaseRedisClient):
assert await redis_client.delete(delete_keys) == 3
assert await redis_client.delete(keys) == 0

@pytest.mark.parametrize("cluster_mode", [True, False])
async def test_config_reset_stat(self, redis_client: BaseRedisClient):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please explain what are we testing here in a comment (see in Adan's)

@shohamazon shohamazon merged commit 8051a15 into main Aug 30, 2023
@shachlanAmazon shachlanAmazon deleted the python/config branch January 14, 2024 08:09
acarbonetto pushed a commit that referenced this pull request Jul 1, 2024
* Java: Add client configuration for subscribing to channels. (#381)

* Add client configuartion for subscribing to channels.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* CLIPPY I HATE YOU

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Get and store callback.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Fix tests.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Rework configuration and add docs.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Config rework.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* docs

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* More TODOs for the god of TODOs.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

---------

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Add `PUBLISH` and `SPUBLISH` commands. (#391)

* Add `PUBLISH` and `SPUBLISH` commands.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Fix the test.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

---------

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Java client: receive pubsub messages (#385)

* Add client configuartion for subscribing to channels.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* CLIPPY I HATE YOU

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Get and store callback.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Fix tests.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Rework configuration and add docs.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Config rework.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* docs

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Receive pushes (subscibed messages).

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Address PR comments.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* I HATE YOU SPOTLESS

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Rename a class.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

---------

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Address PR comments.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Address PR comments.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Java: add IT for pubsub (#400)

* Add some tests.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Test fixes.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Add more tests.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Address PR comments.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Experiment

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Add more tests.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Typo fix.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Typo fix.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* I HATE YOU SPOTLESS

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Typo fix.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Uncomment test timeout.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Address PR comments.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Typo fix.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Typo fix.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Typo fix.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Typo fix.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

---------

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Update function signature.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Address PR comments.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Address PR comments.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

---------

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
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.

2 participants