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: Add XINFO STREAM command #2083

Merged

Conversation

acarbonetto
Copy link
Contributor

@acarbonetto acarbonetto added the node Node.js wrapper label Aug 2, 2024
@acarbonetto acarbonetto self-assigned this Aug 2, 2024
@acarbonetto acarbonetto requested a review from a team as a code owner August 2, 2024 22:23
@acarbonetto acarbonetto force-pushed the node/integ_acarbo_xinfo_stream_valkey-59 branch from b50a719 to 5b8a668 Compare August 2, 2024 22:24
node/src/BaseClient.ts Outdated Show resolved Hide resolved
node/src/BaseClient.ts Outdated Show resolved Hide resolved
* // 'seen-time': 1722624726802,
* // 'active-time': 1722624726802,
* // 'pel-count': 1,
* // pending: [ [ '1719877599564-0', 'consumer', 1722624726802, 1 ] ],
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* // pending: [ [ '1719877599564-0', 'consumer', 1722624726802, 1 ] ],
* // 'pending': [ [ '1719877599564-0', 1722624726802, 1 ] ],

Copy link
Contributor Author

Choose a reason for hiding this comment

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

quotes are only necessary for keys that have dashes. This is the output produced by VS Code.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We still don't have here consumer name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

for full details, you get the consumer name... according to the shared testes.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, but consumer name isn't duplicated per each consumer

node/src/BaseClient.ts Outdated Show resolved Hide resolved
node/src/BaseClient.ts Outdated Show resolved Hide resolved
node/src/Transaction.ts Outdated Show resolved Hide resolved
node/tests/GlideClient.test.ts Show resolved Hide resolved
node/src/Commands.ts Show resolved Hide resolved
* // 'seen-time': 1722624726802,
* // 'active-time': 1722624726802,
* // 'pel-count': 1,
* // pending: [ [ '1719877599564-0', 'consumer', 1722624726802, 1 ] ],
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, but consumer name isn't duplicated per each consumer

node/src/Transaction.ts Outdated Show resolved Hide resolved
@acarbonetto acarbonetto force-pushed the node/integ_acarbo_xinfo_stream_valkey-59 branch from a2f4503 to e42c828 Compare August 7, 2024 22:34
Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
@acarbonetto acarbonetto force-pushed the node/integ_acarbo_xinfo_stream_valkey-59 branch from e42c828 to 6af2cab Compare August 7, 2024 22:37
@acarbonetto acarbonetto merged commit fc75778 into valkey-io:main Aug 7, 2024
8 checks passed
@acarbonetto acarbonetto deleted the node/integ_acarbo_xinfo_stream_valkey-59 branch August 7, 2024 23:01
cyip10 pushed a commit to Bit-Quill/valkey-glide that referenced this pull request Aug 12, 2024
* Node: Add XINFO STREAM command

---------

Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Signed-off-by: Chloe Yip <chloe.yip@improving.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
node Node.js wrapper
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants