The logs section shows old log lines when a filter is applied
Summary
When you open the Logs section the logs are shown in ASC
order and the automatic scroll goes down and show always the last log lines. If a filter is applied the order change to DESC
and the automatic scroll starts to show the old lines instead of the new ones.
Current Behaviour
When a filter is applied to the logs section the show order is changed and starts to show old lines instead of the new ones. The scroll always goes to the bottom showing old lines.
Steps to reproduce
- Create a cluster with Distributed logs enabled
- Go to the Logs section
- Apply a filter
Expected Behaviour
The automatic scroll shows the newest logs instead of the old ones.
Possible Solution
- Sync the order of the logs with the automatic scroll to show the newest log lines.
Environment
- StackGres version: v1.0.0-beta3
- Kubernetes version: 1.19
- Cloud provider or hardware configuration: DO
Edited by Kadaffy Talavera