-
Notifications
You must be signed in to change notification settings - Fork 75
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 an optional column with claim/unclaim/reclaim action to the test result page. #279
Add an optional column with claim/unclaim/reclaim action to the test result page. #279
Conversation
commit 8a3362d Author: Martin, Christian <ch.martin97@googlemail.com> Date: Thu May 2 13:44:18 2024 +0200 refactored and written comments commit 6273475 Author: Martin, Christian <ch.martin97@googlemail.com> Date: Thu May 2 11:51:02 2024 +0200 Revert "added some documentation while reading through the code" This reverts commit 587162e. commit 2e30aad Author: Martin, Christian <ch.martin97@googlemail.com> Date: Tue Apr 30 18:43:14 2024 +0200 added <?jelly escape-by-default='true'?> to the jelly files commit da01bd9 Author: Martin, Christian <ch.martin97@googlemail.com> Date: Tue Apr 30 18:17:37 2024 +0200 fixed typo commit b13f599 Author: Martin, Christian <ch.martin97@googlemail.com> Date: Tue Apr 30 18:17:12 2024 +0200 put the getRelativeUrl only in ClaimTestAction commit 4523a03 Author: Martin, Christian <ch.martin97@googlemail.com> Date: Tue Apr 30 18:14:53 2024 +0200 functioning Claim in TestOverview commit 587162e Author: Martin, Christian <ch.martin97@googlemail.com> Date: Mon Apr 29 12:15:32 2024 +0200 added some documentation while reading through the code
+1 for this. This would certainly be helpful for Devs who want to fix a complete Test Class. Any comments from the Codeowners? |
Hi, sorry for the delay, will try to take a look in the following days ! |
Thank you for testing and the feedback, i'll look into it. |
Hi, Sorry for the delay, i addressed the issues, could you have a look at it again? |
45fcece
to
8bc723a
Compare
Hi, I just did a small round of changes. Can you please take a look and confirm everything is working as expected ? |
</j:if> | ||
<j:if test="${it.canReassign()}"> | ||
<j:if test="${linkWritten}"><st:nbsp/></j:if> | ||
<a id="reassign" href="#" onClick="ShowPopup(this); return false;"> |
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.
It´s looking good and everything I tried is working. I added the configuration to the readme, feel free to adjust it. |
Thanks let's merge this! |
My test-scope was to small when testing it. I found a bug when I tried it in production. |
Hey I´m Chris,
I was missing a claim option on the test result page and wanted to contribute it to the plugin.
Let me know if I should change something.
Changes:
Old Test Result page:
![image](https://private-user-images.githubusercontent.com/57817042/327421811-77a4e65f-3bde-4541-a727-d5ae0e686197.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3ODIzOTAsIm5iZiI6MTczOTc4MjA5MCwicGF0aCI6Ii81NzgxNzA0Mi8zMjc0MjE4MTEtNzdhNGU2NWYtM2JkZS00NTQxLWE3MjctZDVhZTBlNjg2MTk3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE3VDA4NDgxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYzN2YzNWQ0NjNhYmE0MTNiMzRkMWRmMWVkZDNhMjE3OWFjODE5MWI4MDg3ZWNiNDUwMzM4OTE5YmQ2YjAxYWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.KKl9qT7lXbdAQ8jbPGWuxSz7u2Qj7TuZYm1vwv2zndY)
New Test Result page:
![image](https://private-user-images.githubusercontent.com/57817042/327422628-5be2f4e6-fb0b-4359-b650-c990f46951d8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3ODIzOTAsIm5iZiI6MTczOTc4MjA5MCwicGF0aCI6Ii81NzgxNzA0Mi8zMjc0MjI2MjgtNWJlMmY0ZTYtZmIwYi00MzU5LWI2NTAtYzk5MGY0Njk1MWQ4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE3VDA4NDgxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZjMWRmNzA2ZDJmYmVkNTYxMjliNTk4NzI4NTQ2MjhiZGRkYmU4MTZjZmRlZGM0NmU3OGM0NjUwMjlmZmRhN2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.UdkX7mTGnffSlKOrAcd23GhiHNsGl_b83aBHyj-U4Ss)
When the user is logged in, it shows the option to claim/reclaim and drop the claim in a new "Claim-Action" column on the Test Result page. When the user is not logged in, these options are not displayed.
Testing done
Tested the Plugin as anonymous and logged in user from an hpi:run instance.
Jira Issues:
https://issues.jenkins.io/browse/JENKINS-4169?jql=resolution%20is%20EMPTY%20and%20component%3D15531
Quick Claim Action could be added in the same column:
https://issues.jenkins.io/browse/JENKINS-69430?jql=resolution%20is%20EMPTY%20and%20component%3D15531
Submitter checklist