Node: Add FT.PROFILE command#2633
Merged
acarbonetto merged 34 commits intorelease-1.2from Nov 12, 2024
Merged
Conversation
6 tasks
eb7e086 to
b498c6c
Compare
acarbonetto
commented
Nov 8, 2024
|
|
||
| it.each([ProtocolVersion.RESP2, ProtocolVersion.RESP3])( | ||
| "FT.AGGREGATE ft.aggregate", | ||
| "FT.INFO ft.info", |
Contributor
Author
There was a problem hiding this comment.
moved from below
Contributor
There was a problem hiding this comment.
i mightve missed the context but why is this the only test with upper and lower case descriptions?
There was a problem hiding this comment.
I don't know how jest applies test filter (case sensitive or not) so I duplicated the test names
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>
Yury-Fridlyand
approved these changes
Nov 12, 2024
Comment on lines
+2764
to
+2767
| const aggregProfile: [ | ||
| FtAggregateReturnType, | ||
| Record<string, number>, | ||
| ] = await GlideFt.profileAggregate( |
There was a problem hiding this comment.
I think you can omit type there
Suggested change
| const aggregProfile: [ | |
| FtAggregateReturnType, | |
| Record<string, number>, | |
| ] = await GlideFt.profileAggregate( | |
| const aggregProfile = await GlideFt.profileAggregate( |
Contributor
Author
There was a problem hiding this comment.
I prefer to add the type.
| .sort((a, b) => (a["genre"]! > b["genre"]! ? 1 : -1)), | ||
| ).toEqual(expectedAggreg); | ||
|
|
||
| const aggregProfile: [ |
| expect(binaryResult).toEqual(expectedBinaryResult); | ||
|
|
||
| response = await GlideFt.info(client, index, { | ||
| const binaryProfileResult: [ |
| ]; | ||
| expect(stringResult).toEqual(expectedStringResult); | ||
|
|
||
| const stringProfileResult: [ |
Yury-Fridlyand
approved these changes
Nov 12, 2024
mo-amzn
pushed a commit
that referenced
this pull request
Nov 13, 2024
mo-amzn
pushed a commit
to mo-amzn/valkey-glide
that referenced
this pull request
Nov 13, 2024
* Node: Add FT.PROFILE command --------- Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com> Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com> Co-authored-by: Yury-Fridlyand <yury.fridlyand@improving.com> Signed-off-by: Muhammad Awawdi <mawawdi@amazon.com>
mo-amzn
pushed a commit
to mo-amzn/valkey-glide
that referenced
this pull request
Nov 13, 2024
* Node: Add FT.PROFILE command --------- Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com> Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com> Co-authored-by: Yury-Fridlyand <yury.fridlyand@improving.com>
mo-amzn
pushed a commit
to mo-amzn/valkey-glide
that referenced
this pull request
Nov 13, 2024
* Node: Add FT.PROFILE command --------- Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com> Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com> Co-authored-by: Yury-Fridlyand <yury.fridlyand@improving.com> Signed-off-by: Muhammad Awawdi <mawawdi@amazon.com>
mo-amzn
pushed a commit
to mo-amzn/valkey-glide
that referenced
this pull request
Nov 13, 2024
* Node: Add FT.PROFILE command --------- Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com> Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com> Co-authored-by: Yury-Fridlyand <yury.fridlyand@improving.com> Signed-off-by: Muhammad Awawdi <mawawdi@amazon.com>
prateek-kumar-improving
pushed a commit
that referenced
this pull request
Nov 14, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue link
This Pull Request is linked to issue (URL): #2527
depends on: #2554
Checklist
Before submitting the PR make sure the following are checked:
Passing tests on 599a828
