-
Notifications
You must be signed in to change notification settings - Fork 567
do not return payload as field #1914
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
Conversation
|
Tests will pass when this will be merged: |
ashtul
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These tests are for the payload.
|
|
||
| for _ in env.retry_with_rdb_reload(): | ||
| waitForIndex(env, 'things') | ||
| res = env.cmd('ft.search', 'things', 'foo') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add 'WITHPAYLOAD`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is withpayloads right below..
| env.assertEqual(toSortedFlatList(res), toSortedFlatList([1L, 'thing:foo', ['name', 'foo', 'payload', 'stuff']])) | ||
| env.assertEqual(toSortedFlatList(res), toSortedFlatList([1L, 'thing:foo', ['name', 'foo']])) | ||
|
|
||
| res = env.cmd('ft.search', 'things', 'foo', 'withpayloads') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is withpayloads
| for _ in env.retry_with_rdb_reload(): | ||
| waitForIndex(env, 'things') | ||
| res = env.cmd('ft.search', 'things', 'foo') | ||
| env.assertEqual(toSortedFlatList(res), toSortedFlatList([1L, 'thing:foo', ['name', 'foo', 'payload', '\x00\xAB\x20']])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
| env.assertEqual(toSortedFlatList(res), toSortedFlatList([1L, 'thing:foo', ['name', 'foo']])) | ||
|
|
||
| res = env.cmd('ft.search', 'things', 'foo', 'withpayloads') | ||
| env.assertEqual(toSortedFlatList(res), toSortedFlatList([1L, 'thing:foo', '\x00\xAB\x20', ['name', 'foo', 'payload', '\x00\xAB\x20']])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
Codecov Report
@@ Coverage Diff @@
## master #1914 +/- ##
=======================================
Coverage 80.30% 80.30%
=======================================
Files 148 148
Lines 21503 21504 +1
=======================================
+ Hits 17268 17269 +1
Misses 4235 4235
Continue to review full report at Codecov.
|
|
LGTM 👍🏻 |
* do not return payload as field * fix tests * fix tests * fix tests * fix tests Co-authored-by: Rafi Einstein <rafi@redislabs.com>
Uh oh!
There was an error while loading. Please reload this page.