-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
feat: combine equalTo clauses with clauses #1373
base: alpha
Are you sure you want to change the base?
Changes from all commits
62b8cd3
0fc3c45
0baadba
2a04e8b
64bd728
2c294b4
03ee504
445fa8e
b20de35
aaff959
eb1ead9
7c9f111
d6ca68d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -301,7 +301,9 @@ describe('CloudController', () => { | |
expect(data).toEqual({ | ||
limit: 1, | ||
where: { | ||
objectId: 'jobId1234', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should all these tests be modified? That means the original syntax would not be tested anymore? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, all test are modified. And yes, original syntax would not be tested anymore as it will always make any equalTo query with this updated syntax There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could that be a breaking change for existing deployments? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't see it as a breaking change, as it will just change the syntax of query for For adding q.equalTo('age', 10); // same implementation, just query that will be sent is of new syntax. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this mean the query sent to the DB has a different syntax, or only the query sent to Parse Server? |
||
objectId: { | ||
$eq: 'jobId1234', | ||
}, | ||
}, | ||
}); | ||
expect(options.useMasterKey).toBe(true); | ||
|
@@ -323,7 +325,9 @@ describe('CloudController', () => { | |
expect(data).toEqual({ | ||
limit: 1, | ||
where: { | ||
objectId: 'pushId1234', | ||
objectId: { | ||
$eq: 'pushId1234', | ||
}, | ||
}, | ||
}); | ||
expect(options.useMasterKey).toBe(true); | ||
|
@@ -345,7 +349,9 @@ describe('CloudController', () => { | |
expect(data).toEqual({ | ||
limit: 1, | ||
where: { | ||
objectId: 'pushId1234', | ||
objectId: { | ||
$eq: 'pushId1234', | ||
}, | ||
}, | ||
}); | ||
expect(options.useMasterKey).toBe(false); | ||
|
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 comment seems to be a leftover?
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.
Sure, will remove.
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.
Will update the pr once all checks are passing.