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-68712] updateCenter successfully installs nothing where there's nothing to install #7041
Conversation
…e's nothing to install
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.
sounds reasonable, untested this, reproduced issue on weekly.ci.jenkins.io
Is there a specific reason, why the change affects the "Available" tab only, but not the "Updates" tab? |
…e's nothing to install
Apologize, I didn't notice, I have made some change, please take a look. |
While this addresses the problem of unintentional form submissions by pressing Enter, it does not address the reported issue which could as easily be triggered by pressing one of the buttons. The user would still land on the same page, seeing the same confusing message. |
In this issue, reporter said his expectation is nothing happened, or a more user friendly dialog, so I just make pressing enter nothing happens. |
Right, but with minimally different steps (Press Button instead of Enter), the same problem occurs. Perhaps disable the buttons too, until at least one plugin is selected for installation? |
If some plugin updates are already waiting for Jenkins to be restarted, I think it should be possible to proceed from the list of available plugins to the installation screen where the "restart when no jobs are running" check box is, even if the user does not select any more plugins to update or install. I did not test whether this PR allows that. |
…e's nothing to install
I'm not sure I understand what you mean or not but I have made some change, please take a look. |
That's already possible through a sidepanel link that appears when there's something to show. |
@daniel-beck Sorry, perhap I misunderstand your mean, but I hope if there is anything I can improve please let me know. |
@frankie139506 I'll try to review and test this PR tomorrow. Right now I have no requests for changes. My previous message was responding to a different comment. Thanks for checking! |
…e's nothing to install
@daniel-beck I made some changes, when I don't have something selected to update, the loading plugin extension doesn't appear when I press another button, I think this change makes the question more reasonable, please take a look if you have time. Thanks. |
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.
The submission by pressing Enter is correctly blocked.
The change to the button is incorrect and breaks its functionality, that should be reverted.
What to do about the buttons? As I wrote previously, my recommendation would be to disable the "Download" buttons by default, and only enable them while any checkboxes are checked. That would prevent people from clicking them when nothing would be installed.
I think just preventing pressing Enter as it is currently is a fine change too, if you don't want to bother with the buttons. Skipping the buttons leaves part of the reported issue open IMO so we either should leave the Jira issue open, or file a new one for the buttons.
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
…e's nothing to install
@daniel-beck I have made some change, please take a look. |
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 probably best to revert the change to row.jelly
and otherwise leave the PR as is, following up in a separate PR with the rest?
core/src/main/resources/hudson/model/UpdateCenter/CompleteBatchJob/row.jelly
Outdated
Show resolved
Hide resolved
Apologize, I cannot solved this problem at this moment. I have reverted the |
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.
This PR is now ready for merge. We will merge it after ~24 hours if there is no negative feedback.
Please see the merge process documentation for more information about the merge process.
Thanks!
Co-authored-by: Alexander Brandes <brandes.alexander@web.de>
Thanks for your suggestion. |
Please take a moment and address the merge conflicts of your pull request. Thanks! |
# Conflicts: # core/src/main/resources/hudson/PluginManager/available.jelly # core/src/main/resources/hudson/PluginManager/table.jelly
@frankie139506 I've reverted this as the merge conflicts weren't resolved properly with #6783 the pages and titles were inconsistent and markup was incorrect in some places |
See JENKINS-68712.
Before:
After:
Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Proposed changelog entries
section only if there are breaking changes or other changes which may require extra steps from users during the upgrade@Restricted
or have@since TODO
Javadoc, as appropriate.@Deprecated(since = "TODO")
or@Deprecated(forRemoval = true, since = "TODO")
if applicable.eval
to ease future introduction of Content-Security-Policy directives (see documentation on jenkins.io).Desired reviewers
@mention
Maintainer checklist
Before the changes are marked as
ready-for-merge
:Proposed changelog entries
are accurate, human-readable, and in the imperative moodupgrade-guide-needed
label is set and there is aProposed upgrade guidelines
section in the PR title. (example)lts-candidate
to be considered (see query).