Skip to content
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

Modern UI - Failures line chart does not display current number of failures #2471

Merged
merged 2 commits into from
Nov 17, 2023

Conversation

andrewbaldwin44
Copy link
Collaborator

Fixes #2469

I propose adding a property total_fail_per_sec to /stats/requests, which tracks the total number of failures from the aggregated row. We will then use this as the proper value for currentFailPerSec in the charts.

The old UI used to use report.stats[report.stats.length-1] in the frontend. If you are against making changes to the python code we could do the same, however I am of the opinion that it is logical since we already return current_rps and this helps keep the FE "dumb" (it shouldn't really need to know that total stats are always last in the array)

@cyberw cyberw merged commit f4288d3 into locustio:master Nov 17, 2023
14 checks passed
@cyberw
Copy link
Collaborator

cyberw commented Nov 17, 2023

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Total RPS Charts | Failures line chart does not display current number of failures
2 participants