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
MGMT-13306 - Events pagination #2004
MGMT-13306 - Events pagination #2004
Conversation
02cdc04
to
2cdcc54
Compare
a1c804a
to
6eebb7c
Compare
@jgyselov I'm reviewing the PR and I've found this: |
@ammont82 Yes. The numbers in the dropdown are taken directly from the API and they correspond to the number of events of each severity with the applied filters - that includes hosts, text, and severity... So if you select e.g. "Warning", the numbers next to the rest of the severities will be zero because all of them have been filtered out. I am aware that these numbers worked differently before - maybe that was more intuitive? But we cannot get the previous behavior with the new API, so the way I see it, we have these options:
The severity counts (coming from the response headers) are also used to calculate the total number of events which is then used in the Pagination component. With the second option, there would be no need for the severity counts - and we should probably ask BE to simply send us one number (the total). What option do you think is the better one? Or can you think of some other options? cc @nirfarkas |
@jgyselov I think for user maybe is confusing this implementation. I thnk the best for me is to get rid of the numbers next to severities altogether. We need @nirfarkas for UX perspective |
@jgyselov you mentioned that the reason we do not get the other severities is related to the way the API works. So I guess that in the current state of the implementation, if I send an API request like: |
@jgyselov @jkilzi I think that if we want to have the severity count, it makes sense to have the filtered numbers, as it represents the counts of the events on the user side. I can change it to be the total counts, and provide an additional count of the filtered evetns in order to calculate offsets. LMK what you wish to do, btw looks good! |
If we wanted the behavior to be as close as possible to the way it was before, the severity counts would have to be
And we would need to receive information about the total number of events (with the Personally, I am okay with either of the three options:
From the UI POV, these would require relatively small changes (if any) and could be done as a follow-up. |
Agreed, let's open a follow up enhancement task, detached from this epic. I think we should go with the 3rd option in the list above. |
6eebb7c
to
26e270b
Compare
26e270b
to
b8b3589
Compare
b8b3589
to
92f96d9
Compare
* Events pagiantion - update API * Events pagination --------- Co-authored-by: Montse Ortega <ammont82@users.noreply.github.com>
* Events pagiantion - update API * Events pagination --------- Co-authored-by: Montse Ortega <ammont82@users.noreply.github.com>
https://issues.redhat.com/browse/MGMT-13306
Cluster events:
Host events:
Video:
events_pagination.mp4