-
Notifications
You must be signed in to change notification settings - Fork 69
Add the support of group by for metric to Arithmetic #42
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
base: master
Are you sure you want to change the base?
Conversation
sunnut
commented
Oct 26, 2018
- If metric A & B has group by, the Output Name not work
- If metric A & B has no group by, the Order and Size not work
fixes #14 |
@Gauravshah @ShilpaSivanesan |
I would love to use this feature. When do you expect the code review will be complete? |
@sunnut Thanks for the contribution |
Hi @Gauravshah Any news here? This pull request is very relevant to me. |
@Foorth the PR had bugs and we did not invest in it. we are open to contribution but are not actively working on this issue |
Hi, @Gauravshah I have tried it on my product(db used elasticsearch) and work as expected. |
} | ||
}); | ||
|
||
if (orderSize > resultsTotalList.length) { |
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 code is not working as intended when you pick "No limit" as your group by size.
if (orderSize > resultsTotalList.length) { | |
if (orderSize > resultsTotalList.length || orderSize == 0) { |
This should fix 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.
Other than this it seems to be working as intended to me (I'm using it only on elasticsearch datasource)
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.
Yeah,I have fixed the bug in my project.
|
||
this.orderTypes = ['Top', 'Bottom']; | ||
|
||
if (!this.target.orderSize) { |
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 code makes it impossible to save an arithmetic metric with orderSize 'no limit' (id == 0).
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 bug also fixed by !this.target.orderSize && this.target.orderSize !== 0
@rasinhas can you raise another PR after fixing it ? |