-
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
Replace alert workflow status (open/acknowledged/closed) and filter with alert status filter (active/recovered) in Alerts View #117686
Comments
@vinaychandrasekhar As you probably know, we have a filter in the table also based on the alerts status (Active, Recovered). In the screenshot (1 then 2) However, when a filter is selected, e.g., Do you want to have the same behavior, which means updating the search bar when you click on one of the |
@fkanout thanks for the question. |
Thanks for catching this @fkanout. I spoke with @vinaychandrasekhar and I think we should remove the "filter in" action from the Alert Status column since this can cause a conflicting query. For now, let's keep the current behavior the same where the It's an interesting idea that the
It get's a little tricky when users are able to type and add their own queries to the mix. There are some things I'd like to think through some more before we go down this route. As one example, questions like should the Let's circle back on this in another issue. Created one here: #118078 |
@hbharding, thanks for your reply.
Yes, it's feasible.
That's correct. BTW, after some testing, I discovered that the current behavior is keeping the query bar and the URL in the browser always in sync when a filter is applied, and it's attentional for consistency.
Maybe it is worth mentioning #116135
Currently, we have something similar, if you change the workflow status in the browser URL to That leaves us with two questions:
|
Yes to both questions! Thanks @fkanout |
One follow up question @fkanout -
When I test that on a snapshot 8.0 build, I only see the button and the browser URL being in sync but the KQL query bar is not kept in sync. What am I missing? cc @hbharding |
@vinaychandrasekhar I don't think @fkanout means they are truly "in sync". Rather, the Browser URL is able to capture all the currently applied filters from the page (whether that be from a search bar or button). This is useful because it allows someone to copy the URL and open it somewhere else and see the same exact view. As you describe, the browser URL and KQL searchbar don't show the same information. The KQL query searchbar does not reflect all the currently applied filters like the Browser URL does. It's just one part of potentially many other filters. This is the part I think we should explore changing in another issue. I created this #118078 for now, which also feels related to the one @fkanout mentioned #116135 |
@hbharding ah, okay if that's what @fkanout meant, that makes sense to me. Otherwise, keeping the KQL query bar in sync with button state might get tricky with needing to parse out or update complex KQL queries to get to alert status filters. |
Thank you, @hbharding, that's correct!
@vinaychandrasekhar, as @hbharding mentioned, query search bar does not reflect all the currently applied filters like the Browser URL does . That's right, and the current "Open / Acknowledged / Closed" is one of this unreflected info. Currently, adding a filter from the grid e.g., Active, will be reflected in the query search bar as mentioned in the screenshot here #117686 (comment) |
@fkanout, yes that's what I'm seeing as well thanks. |
Panagiota got to my attention that we still have a way to access the I assume we need to hide these leading checkboxes. Do you confirm that? @hbharding, @vinaychandrasekhar? |
Hi @fkanout , yes please hide the ''Mark as'' actions in 8.0. And I assume if they are the only two actions possible, that the selection feature also needs to be hidden? cc @hbharding |
Good catch @fkanout / @mgiota. Unless these are the only "bulk actions" we provide, I don't see a need to keep the checkboxes in the first column and the "Select X alerts" + "Select all X alerts" buttons above the table. Just thinking ahead, I could see us potentially needing a way to bulk select and do:
So while we don't need bulk selection today, it might be good to keep some of this code around / readily availabile in case we need to reimplement a bulk select feature in the future. |
I was working on the keep-in-sync requirement, and yes, it was tricky, as @vinaychandrasekhar mentioned 😅 |
Hiding the alerts' leading checkboxes could not be done in the linked PR, as there is a bug in the T Grid. (please check this issue for more details). |
Do you know what tests are failing and who to reach out to? Do you think it's possible to get this solved in another PR for 8.0? If not, perhaps there are some short term alternatives we could pursue. For example, hiding the checkbox cells with CSS... probably not the best idea, but I'm open to other ideas if we need to pursue an alternative route. |
On the alerts page, we want to replace the "workflow status"
EuiButtonGroup
to show "alert status" instead. So, instead of "Open / Acknowledged / Closed", we'll have "Show all / Active / Recovered" instead.Also, we should hide or remove the acknowledge/close/reopen actions in the table since they are no longer useful.
More details:
Mockup:
Please check with the Design team if further assistance is needed.
The text was updated successfully, but these errors were encountered: