-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Tables] Fix query filter encoding for Date objects #23058
Conversation
API change check API changes are not detected in this pull request. |
/azp run js - data-tables - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
Looks great! Thanks for adding a test :)
@@ -7,7 +7,7 @@ function escapeQuotesIfString(input: unknown, previous: string): string | unknow | |||
if (typeof input === "string") { | |||
result = escapeQuotes(input); | |||
// check if we need to escape this literal | |||
if (!previous.trim().endsWith("'")) { | |||
if (previous !== "" && !previous.trim().endsWith("'")) { |
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.
I think we should have more unit tests for odata
, as this has the potential to break more things than it fixes.
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.
Added a test for escaping strings!
/azp run js - data-tables - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
Make failover group status type object to fix resource sync (Azure#23058) * Make status object to fix resource sync * Remove trailing comma * Move changes to 2023-03-15-preview --------- Co-authored-by: Charmaine Chan <chachan@microsoft.com>
Querying tables with a filter on a date field was not working. This change fixes that bug.
Fixes #22156