Skip to content

Sorting is not correct when mixing audit and error messages. #1525

@DCollart

Description

@DCollart

Describe the bug

Description

We have some audit/error messages sorted by time sent.
The display does not respect this ordering.

Expected behavior

Either we have a way to only see error or audit messages (in that case the ordering would be OK).
Either they are still mixed together but the ordering is correct.

Actual behavior

The first page displayed a bunch of audit messages (sorted correctly) then a bunch of error messages (sorted correctly) but in the second page I see audit messages that happened after than the error messages. So they should have been displayed on the first page instead of error messages.
image

In the second page:
image

Versions

ServiceInsight : 2.13.1
ServiceControl: Empty in the about section
Please list the version of the relevant packages or applications in which the bug exists.

Steps to reproduce

Send some messages that will end up in failure.
Send some messages that will end up in audit (same endpoint). Enough to have more that one page.
Order by time sent.
In the first page you'll see some of your audit messages then the error messages.
Normally the audit messages should have filled the full first page since they have been sent later.

Check the second page and you'll see the following audit messages (expected in first page).

Relevant log output

No response

Additional Information

Workarounds

Possible solutions

Additional information

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions