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

Add color configuration of trend chart (show passed tests in green or blue ) #286

Merged
merged 13 commits into from
May 2, 2022

Conversation

uhafner
Copy link
Member

@uhafner uhafner commented Aug 8, 2021

The new configuration option allows choosing green or blue as color for passed tests:

Bildschirmfoto 2021-08-08 um 23 42 33

Additionally, the stacked chart series have been reordered so that the passed tests come first.
Then the automatic axis scaling of ECharts works as expected and shows only the important chart part. In the screenshot below the x-Axis now starts at 500.

Here is a screenshot of the new layout:
Bildschirmfoto 2021-08-08 um 23 42 17

This PR is an add-on for #272. I will rebase and cleanup this PR after #272 has been merged.

uhafner added 11 commits May 21, 2021 16:39
Additionally, trend charts are now configurable due to an upgrade to the echarts plugin.
It is not required to retain backward compatibility for restricted classes.
Now the general trend options are changed for *all* charts.
So individual trend chart dialogs change the global configuration and the local one.
Now configuration of trend charts in job page and trend charts in details pages use a different dialog.
The new configuration option allows choosing green or blue as color for passed tests.
Additionally, the stacked chart series have been reordered so that the passed tests come first.
Then the automatic axis scaling of ECharts works as expected and shows only the important chart part.
@timja
Copy link
Member

timja commented Aug 9, 2021

Nice we could probably change the default colour to green?

@timja timja added the feature A PR that adds a feature - used by Release Drafter label Aug 9, 2021
@uhafner
Copy link
Member Author

uhafner commented Aug 9, 2021

Nice we could probably change the default colour to green?

Yes, absolutely. This makes more sense for JUnit results (and the build success status is green anyway).

@timja
Copy link
Member

timja commented Aug 9, 2021

Some conflicts from the history bug fixes btw.

@uhafner
Copy link
Member Author

uhafner commented Aug 9, 2021

Yes, I also need to clean up the patch, I forgot to disable IntelliJ's new on save actions. I will do this after the #272 has been merged.

@timja
Copy link
Member

timja commented Aug 9, 2021

Yes, I also need to clean up the patch, I forgot to disable IntelliJ's new on save actions. I will do this after the #272 has been merged.

sure, unlikely code will change much in this area now so any patch should be stable

@uhafner uhafner mentioned this pull request Feb 18, 2022
6 tasks
# Conflicts:
#	pom.xml
#	src/main/java/hudson/tasks/junit/History.java
#	src/main/java/hudson/tasks/test/TestResultDurationChart.java
#	src/main/java/hudson/tasks/test/TestResultProjectAction.java
#	src/main/java/hudson/tasks/test/TestResultTrendChart.java
#	src/main/resources/hudson/tasks/junit/History/index.jelly
#	src/main/resources/hudson/tasks/test/TestResultProjectAction/floatingBox.jelly
#	src/main/webapp/history/history.css
#	src/main/webapp/history/history.js
@uhafner uhafner marked this pull request as ready for review May 2, 2022 11:24
@uhafner uhafner requested a review from timja May 2, 2022 11:24
Copy link
Member

@timja timja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do think about swapping the default?

@uhafner
Copy link
Member Author

uhafner commented May 2, 2022

I have no strong opinion. Swapping the default would not change the existing visualization, so it might be a better start.

@timja
Copy link
Member

timja commented May 2, 2022

Ah actually this is the right way round, I just tested it out. Looks good

@timja timja merged commit 3963462 into jenkinsci:master May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A PR that adds a feature - used by Release Drafter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants