-
Notifications
You must be signed in to change notification settings - Fork 7
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
PLU-309: [TILES-ATOMIC-INCREMENT-4] backend implementation for increment/decrement row value #835
base: fix/tiles/update-operator
Are you sure you want to change the base?
PLU-309: [TILES-ATOMIC-INCREMENT-4] backend implementation for increment/decrement row value #835
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Datadog ReportBranch report: ✅ 0 Failed, 736 Passed, 0 Skipped, 2m 18.89s Total Time |
@@ -32,13 +32,13 @@ function sortVariables(variables: Variable[]): void { | |||
variables.sort((a, b) => { | |||
// Put vars with null order last, but preserve ordering (via `sort`'s | |||
// stability) if both are null. | |||
if (!a.order && !b.order) { | |||
if (a.order == null && !b.order == null) { |
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.
b.order == null
instead
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.
oops!
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.
goood catch
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.
other than the small nit, lgtm
tested that the
- 3 operations work
- error is caught for non-numeric add/subtract
- old update row steps still work
- columns variables now maintain order
6419851
to
76739a8
Compare
TL;DR
Add backend implementation for 'add' and 'subtract' operations for Tiles update row action
What changed?
patchTableRow
to handle mathematical operationsHow to test?
Regression test