-
Notifications
You must be signed in to change notification settings - Fork 1.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
[Refactor]: Added tag and datatype in options for query builder #3555
Conversation
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, but check with @pranay01 if we can shift the details to the left. I think that will be better.
@pranay01 this is the possible solution where to show the type and datatype in the option for the select Option 2: Option 3: |
✅ 3 |
@Rajat-Dabade Lets go with Option 1. I had a discussion with Kaushik earlier on this, and from a UX perspective Option 1 made more sense - option 3 confused user with details on data type when his first objective is to select the right variable |
Looking at the code, this is done for the where clause only. There are other filters where we created the |
this is already done in the logs detail view. @nityanandagohain what other places needs to be taken care of? |
Yeah it's done in log detail view, I think the groupby and aggreagte attribute field is only left. |
Bumping this, can the changes be aded to groupBY and aggreagte attribute ? |
@Rajat-Dabade please add the same to the group by clause everywhere and aggregate attributes for logs and traces only, because the metric name doesn't have any associated type and the data type is always a number. |
11339bb
to
47890a1
Compare
@nityanandagohain PTAL |
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.
69988ad
to
0b6aacf
Compare
@nityanandagohain Done. Please review it once. |
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! But there is another issue where removing field from groupby is slow sometimes, please create a separate for that as it is an existing issue in staging as well.
@YounixM @palashgdev please review this |
frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/OptionRenderer.tsx
Show resolved
Hide resolved
@YounixM Will take up these changes in subsequent PR. |
Close #3299
Loom: https://www.loom.com/share/aa61fb1cd97c41eba18b18e095f67588?sid=59117602-790e-47d6-aea6-cbed3fb5d5a5