-
Notifications
You must be signed in to change notification settings - Fork 61
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
search only custom result index on detector detail page #126
search only custom result index on detector detail page #126
Conversation
Signed-off-by: Yaliang Wu <ylwu@amazon.com>
So looks like this adds a param to the following redux functions: which ends up making calls to the following server-side functions: Any reason why the logic for determining whether |
Is this change only for detectors that themselves have a custom result index? Not across the board for every detector detail page right? |
Yeah, we can do that. Here I expose the parameter to make it more flexible for client side. If we want to query only |
Yes, if detector is not using custom result index, we just query default result index. This change is mainly to improve performance for detector using custom result index by not querying default result index. |
Got it, yeah I'm ok with this since it does add more flexibility, and easier to change in the future. Just hesitant to add more parameters since some components already have such a long list, and overall prefer to abstract out the details to be determined on server-side and/or downstream functions if possible. Can you confirm the functionality is working fine for non-custom and custom detectors? If so I'm ok to approve. |
Yeah, I have deployed this PR to our test cluster. All detectors look good. You can also help verify on the test cluster. |
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, thanks for the change!
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, spent some time understanding change and Tyler's questions/comments above helped a lot. Thanks for adding this!
…roject#126) Signed-off-by: Yaliang Wu <ylwu@amazon.com>
…roject#126) Signed-off-by: Yaliang Wu <ylwu@amazon.com>
Signed-off-by: Yaliang Wu <ylwu@amazon.com>
Signed-off-by: Yaliang Wu <ylwu@amazon.com>
Signed-off-by: Yaliang Wu ylwu@amazon.com
Description
Only query custom result index for detector detail page. Query both default and custom AD result index on dashboard and detector list page.
Check List
--signoff
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.