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

Node: ZINTER and ZUNION commands #1556

Closed
wants to merge 6 commits into from

Conversation

adarovadya
Copy link
Collaborator

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@adarovadya adarovadya requested a review from a team as a code owner June 12, 2024 20:03
@Yury-Fridlyand Yury-Fridlyand added the node Node.js wrapper label Jun 12, 2024
Copy link
Collaborator

@Yury-Fridlyand Yury-Fridlyand left a comment

Choose a reason for hiding this comment

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

  1. Add changelog entry
  2. Add cross slot test

node/src/BaseClient.ts Show resolved Hide resolved
node/src/BaseClient.ts Outdated Show resolved Hide resolved
node/src/BaseClient.ts Outdated Show resolved Hide resolved
node/src/BaseClient.ts Outdated Show resolved Hide resolved
node/src/Commands.ts Show resolved Hide resolved
node/src/Transaction.ts Outdated Show resolved Hide resolved
node/tests/SharedTests.ts Show resolved Hide resolved
node/tests/SharedTests.ts Show resolved Hide resolved
node/src/BaseClient.ts Outdated Show resolved Hide resolved
node/src/BaseClient.ts Show resolved Hide resolved
node/src/BaseClient.ts Show resolved Hide resolved
node/src/Transaction.ts Show resolved Hide resolved
client.zinterstore("abc", ["zxy", "lkn"]),
client.zunion(["abc", "zxy", "lkn"]),
client.zunionWithScores(["abc", "zxy", "lkn"]),
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: add with version check (see line 304)

node/tests/TestUtilities.ts Outdated Show resolved Hide resolved
node/tests/TestUtilities.ts Outdated Show resolved Hide resolved
node/tests/SharedTests.ts Outdated Show resolved Hide resolved
Ubuntu and others added 6 commits August 5, 2024 09:19
Signed-off-by: Adar Ovadia <[email protected]>
Signed-off-by: Adar Ovadia <[email protected]>
Signed-off-by: Adar Ovadia <[email protected]>
Signed-off-by: Adar Ovadia <[email protected]>
Signed-off-by: Adar Ovadia <[email protected]>
node/src/BaseClient.ts Show resolved Hide resolved
node/src/BaseClient.ts Show resolved Hide resolved
node/src/BaseClient.ts Show resolved Hide resolved
node/src/BaseClient.ts Show resolved Hide resolved
Comment on lines +3109 to +3110
* string[] - for keys only.
* KeyWeight[] - for weighted keys with score multipliers.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you format this as a list please?

node/src/Transaction.ts Show resolved Hide resolved
node/tests/SharedTests.ts Show resolved Hide resolved
node/tests/SharedTests.ts Show resolved Hide resolved
@@ -772,6 +774,22 @@ export async function transactionTest(
responseData.push(['zmscore(key12, ["two", "one"]', [2.0, 1.0]]);
baseTransaction.zinterstore(key12, [key12, key13]);
responseData.push(["zinterstore(key12, [key12, key13])", 0]);
baseTransaction.zadd(key25, { one: 1, two: 2 });
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add version check

node/src/BaseClient.ts Show resolved Hide resolved
node/src/BaseClient.ts Show resolved Hide resolved
node/src/BaseClient.ts Show resolved Hide resolved
node/src/BaseClient.ts Show resolved Hide resolved
node/src/Transaction.ts Show resolved Hide resolved
node/src/Transaction.ts Show resolved Hide resolved
node/src/Transaction.ts Show resolved Hide resolved
node/src/Transaction.ts Show resolved Hide resolved
Copy link
Collaborator

@tjzhang-BQ tjzhang-BQ left a comment

Choose a reason for hiding this comment

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

Created a new PR with the changes to both rebase and address comments #2146

@GumpacG
Copy link
Collaborator

GumpacG commented Aug 20, 2024

Closing as #2146 took its place.

@GumpacG GumpacG closed this Aug 20, 2024
@adarovadya adarovadya deleted the zinter-node branch August 21, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
node Node.js wrapper
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants