-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[TSVB] Math Aggregation (two point oh) #16965
Conversation
This reverts commit 43bf1db.
💚 Build Succeeded |
Haleluya |
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.
LGTM
package.json
Outdated
@@ -199,6 +199,7 @@ | |||
"tabbable": "1.1.0", | |||
"tar": "2.2.0", | |||
"tinygradient": "0.3.0", | |||
"tinymath": "^0.2.1", |
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 should probably be made static
💔 Build Failed |
💚 Build Succeeded |
Nice! There are conflicts on this PR though. |
Will this recognize saved objects that were created with the old mathjs feature? |
Nice!! @simianhacker @epixa will this make 6.3? |
@epixa Good catch, I'm going to change the key to |
@simianhacker To be clear, I was asking specifically because it would be convenient for folks that had used the old feature to be able to upgrade and have this new feature power their previous visualizations that used math aggs. The math featureset might not be 100% compatible, so it wouldn't be a perfect upgrade experience, but in theory it would allow them to go in and fix their existing math aggs in the event that they stopped working. Does that make sense? Do you agree? |
@epixa Gotcha... I misinterpreted your comment, to answer you're question now that I understand where you're coming from. Yes, this uses the same aggregation type so it will allow them to re-write their equations (if it's more complex then just basic math). Most things should just work (fingers crossed). |
Awesome. There was at least one user that created 100s of visualizations using math aggs in 6.1.0, so it's at least good they'll have a path forward that doesn't involve exporting, find+replacing on the raw json, and reimporting. |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
- Fixing bad tests - Resetting page for every test suite (why donesn't beforeEach work?) - Adding test for Math agg
you can try running the tests locally and limit them to just your test suite so you don't have to wait an hour to see if it fails. |
@ppisljar There were two things going on with the tests:
|
💔 Build Failed |
💔 Build Failed |
Jenkins test this |
💚 Build Succeeded |
QUICK! Review this sucker before it turns RED again. |
💚 Build Succeeded |
jenkins, test this |
💚 Build Succeeded |
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.
LGTM
* Revert "Remove MathJS Feature (#15652)" This reverts commit 43bf1db. * replacing math with tinymath * pining version * updating yarn.lock * Fixing Prettier mis formatting * fixing tests * Adding unsupported agg back * Adding functional test for math aggregation - Fixing bad tests - Resetting page for every test suite (why donesn't beforeEach work?) - Adding test for Math agg * Trying to fix values (due to inconsistencies in env)
Back ported to 6.x with 84ad08e |
This PR reverts the "Remove MathJS Feature" and replaces
mathjs
withtinymath
Closes #16958