-
Notifications
You must be signed in to change notification settings - Fork 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
Customization Feature for Percentile Display on Statistics Page #2550
Customization Feature for Percentile Display on Statistics Page #2550
Conversation
I was thinking this could be even nicer to have controlled in the UI at run time? Is _TO_STATICS an abbreviation of _TO_STATISTICS? Looks weird to my eyes :) Median is more easily understood by people than 50%ile. Although tbh, I think we might want to remove it from the default anyways, so maybe it doesnt matter and we could just choose whatever is less complex code. Build fails because of code formatting. What do you think @andrewbaldwin44 ? |
Does the test actually cover the use of PERCENTILES_TO_STATICS? |
Hey looking good! I also had the thought (and I'm not sure if this is what you meant @cyberw) that it could be nice to be able to control the columns in the web UI. Something like this: The nice part about |
Yeah maybe we can add some tests for |
Thank you for your positive feedback and insightful suggestions. Here is my response to the points you have raised: Addressed Items
Next Actions
Regarding Your Suggestions
Additional QuestionRegarding the support for the legacy UI, I have already implemented some features. Should I consider removing these to focus solely on the modern UI, or would it be more beneficial to maintain them? Your guidance on this matter would be greatly appreciated. |
Added unit tests for |
docs/configuration.rst
Outdated
@@ -203,4 +203,6 @@ The list of statistics parameters that can be modified is: | |||
+-------------------------------------------+--------------------------------------------------------------------------------------+ | |||
| PERCENTILES_TO_CHART | The list of response time percentiles for response time chart | | |||
+-------------------------------------------+--------------------------------------------------------------------------------------+ | |||
| PERCENTILES_TO_STATISTICS | The list of response time percentiles for response time statistics | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest you change this to "list of response time percentiles to show in the statistics table"
And maybe remove "The" from all descriptions, I dont know why that is in there :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead maybe add something about this and PERCENTILES_TO_CHART being UI settings (just to make it clear)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In
Perhaps we should have this same validation for |
locust/webui/src/components/ViewColumnSelector/ViewColumnSelector.test.tsx
Outdated
Show resolved
Hide resolved
Awesome work with the column selector! The code and the tests look really great! :) Just a suggestion - what if we had the |
@andrewbaldwin44
|
Looks awesome, nice work! 💯 @cyberw Good with you to merge? |
Overview
This PR introduces a feature that allows users to freely specify which percentiles are displayed on the statistics page of Locust. Additionally, minor modifications are made to align the display content of the statistics page with that of the charts page.
Implementation Details
PERCENTILES_TO_STATISTICS
is added, enabling users to specify the percentiles displayed on the statistics page.PERCENTILES_TO_STATISTICS
will be reflected inboth the existing UI andthe modern UI of Locust.Display Modifications
Changed "Median (ms)" to "50%ile (ms)".Background
Based on Issue #2546, this enhancement aims to improve the customizability of the statistics page and ensure consistency with the charts page. This will enable users to analyze data more effectively.