-
Notifications
You must be signed in to change notification settings - Fork 15
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
[analytics] track order status changes #349
Conversation
@@ -20,6 +21,7 @@ data class PlaceOrderRecord( | |||
val clientId: Int, | |||
val timestampInMilliseconds: Double, | |||
val fromSlTpDialog: Boolean, | |||
var lastOrderStatus: OrderStatus?, |
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.
is this.. legal? :D
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.
nit I wonder if we can just do val lastOrderStatus: OrderStatus? = 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.
the main issue is i can't reassign lastOrderStatus if it's val
instead of var
, but i can add the =null there
@@ -20,6 +21,7 @@ data class PlaceOrderRecord( | |||
val clientId: Int, | |||
val timestampInMilliseconds: Double, | |||
val fromSlTpDialog: Boolean, | |||
var lastOrderStatus: OrderStatus?, |
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.
nit I wonder if we can just do val lastOrderStatus: OrderStatus? = null
d1bd0fe
to
ac7e671
Compare
tested locally: