-
Notifications
You must be signed in to change notification settings - Fork 1.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
[JENKINS-72854] UX improvement: make pod templates readonly from UI for NonConfigurableKubernetesCloud #1566
Conversation
…or NonConfigurableKubernetesCloud
There is a built-in mechanism in core to switch all controls to readonly
|
@Vlatombe, Yeah, I tried to use it but enum dropdown is still active with it. |
So fix |
…UI for NonConfigurableKubernetesCloud
Ok, I agree it's more rational. Let's fix this in core. |
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.
LGTM
Should this be closed in favor of jenkinsci/jenkins#9336? |
No, we need both: current one and jenkinsci/jenkins#9336 |
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.
A few simplifications could be applied, but otherwise it looks good.
src/main/resources/org/csanchez/jenkins/plugins/kubernetes/PodTemplate/index.jelly
Outdated
Show resolved
Hide resolved
src/main/resources/org/csanchez/jenkins/plugins/kubernetes/PodTemplate/index.jelly
Outdated
Show resolved
Hide resolved
src/main/resources/org/csanchez/jenkins/plugins/kubernetes/PodTemplate/sidepanel.jelly
Outdated
Show resolved
Hide resolved
…Template/index.jelly Co-authored-by: Vincent Latombe <[email protected]>
…Template/index.jelly Co-authored-by: Vincent Latombe <[email protected]>
…Template/sidepanel.jelly Co-authored-by: Vincent Latombe <[email protected]>
CI failure seems not related to the fix, might be a flake, @Vlatombe can you please retrigger the ci again as I don't have permissions? |
https://issues.jenkins.io/browse/JENKINS-72854
This issue is just a UX issue, backend do not save changes in pod templates for NonConfigurableKubernetesCloud (covered by NonConfigurableKubernetesCloudTest#configRoundTrip). But users are very confused as they may assume that changes should be saved.
Testing done
I tested manually by running NonConfigurableKubernetesCloudTest#configRoundTrip, I stopped the test in debug mode and verified that for NonConfigurableKubernetesCloud Pod templates can not be edited anymore from UI, user see the message
This Pod template is associated with a non-configurable cloud setup.
, "Save" button is not visible and "Delete Pod Template" on side panel is not visible.For KubernetesCloud no changes on UX (it is still configrable).
Submitter checklist