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
[JENKINS-49331] Handle exceptions when rebuilding with invalid choice parameter #9027
Conversation
Yay, your first pull request towards Jenkins core was created successfully! Thank you so much! |
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.
Thanks for the pull request!
The proposed change doesn't seem to change the behavior much from the existing behavior. An "Oops" page is shown to the user when they enter an invalid value for a choice parameter with this change, just as an "Oops" page was shown to the user before this change.
The "Oops" page that I see looks like this:
Thanks for completing the "Testing done" entry.
Please provide a proposed changelog entry that more completely describes the change in terms that a user will understand.
Please also reinsert the rest of the pull request template and complete the checkboxes. It helps you as a submitter and it helps maintainers as reviewers.
I tested this interactively by performing the following steps:
That results in the "Oops" page that is mentioned in #9027 (review) Without this change, the "Oops" page looks like this: |
I'm not sure what the user expects when they rebuild with an invalid value for a choice parameter. I assume they expect the job to not be executed because an invalid value was provided. The I don't think that changing the signature of |
Hi Mark, i really appreciate your comments, theyre really helpful to me. im trying to reproduce the issue the way that you described, i also agree with your last comment and ill try to make the correct adjustments. |
Thanks again for the pull request. Unfortunately, my comments only highlight the problem and don't really offer a solution. I don't understand how to solve the problem without wider changes than I think would be appropriate for this case. |
oh, i see. I might have underestimated the issue. I picked an issue from the newbie-friendly issues. What are your thoughts on this, do you reckon that i should abandon this task and try my hand at something else, more simple? I understand thats it of course based on my skills and its hard for you to know, but just changing method took me a while, so fiddling with anything more complex would probably be too much for me |
I think that this issue is incorrectly labeled as "newbie-friendly". I think you are wise to choose another issue. If you choose to work on another issue, you can close this pull request. |
See JENKINS-49331.
Testing done
Testing done by compiling the project and running the light-test profile provided
Proposed changelog entries