-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(discover): Add the snql feature flag to eventsv2 #29395
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
- This also gets the last few tests passing
- Mocking the snql query too
- Adding an order to the user_misery test, not sure why this didn't
flake before, but definitely wasn't passing consistently now
- We don't allow sorting by issue in the UI, so i assume this is an
older test. Updated with a sort that does make sense
ea2c40a to
7659182
Compare
| "transaction", | ||
| "user_misery()", | ||
| ], | ||
| "orderby": "user_misery()", |
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.
Was this test never flakey somehow? But 👍 to making the result more deterministic.
| assert abs(data[1]["user_misery"] - 0.06586) < 0.0001 | ||
| assert abs(data[2]["user_misery"] - 0.05751) < 0.0001 | ||
| assert abs(data[1]["user_misery"] - 0.05751) < 0.0001 | ||
| assert abs(data[2]["user_misery"] - 0.06586) < 0.0001 |
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.
Thoughts on using pytest.approx going forwards?
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.
TIL, we can update in a future PR cc @shruthilayaj (as a btw not saying you're the one who has to do it)
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.
ooh nice, good to know 👍
flake before, but definitely wasn't passing consistently now
older test. Updated with a sort that does make sense