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

Create a new taglib to capture the save/apply bottom bar #9813

Merged
merged 7 commits into from
Oct 14, 2024

Conversation

Vlatombe
Copy link
Member

@Vlatombe Vlatombe commented Oct 2, 2024

This introduces <f:saveApplyBar/>, capturing a recurring pattern in our jelly views (originally introduced in fbb2bca)

Added save/apply pattern to

See JENKINS-XXXXX.

Testing done

  • Checked with various roles (Admin/Manage/ExtendedRead) that configuration screens were displayed the same as before.
  • Checked that Save/Apply works as expected for Log Recorder configuration submission.
  • Checked that Save/Apply works as expected for Computer configuration submission.
  • Checked that Save/Apply works as expected for MasterComputer configuration submission.

Proposed changelog entries

  • Developer: a new taglib <f:saveApplyBar/> is now available for configuration forms.

Proposed upgrade guidelines

N/A

Submitter checklist

Desired reviewers

@mention

Before the changes are marked as ready-for-merge:

Maintainer checklist

* Add Save/Apply to LogRecorder configuration screen
@Vlatombe Vlatombe added the developer Changes which impact plugin developers label Oct 2, 2024
<f:apply />
</f:bottomButtonBar>
</l:hasAdministerOrManage>
<j:set var="readOnlyMode" value="${!h.hasPermission(app.MANAGE)}"/>
Copy link
Member Author

@Vlatombe Vlatombe Oct 2, 2024

Choose a reason for hiding this comment

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

@Vlatombe Vlatombe marked this pull request as ready for review October 2, 2024 09:21
@Vlatombe Vlatombe requested a review from a team October 2, 2024 09:22
@@ -55,12 +55,8 @@ THE SOFTWARE.
<!-- view property configurations -->
<f:descriptorList descriptors="${it.getVisiblePropertyDescriptors()}" instances="${it.properties}" />

<f:bottomButtonBar>
<f:submit value="${%OK}" />
Copy link
Member Author

Choose a reason for hiding this comment

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

This effectively changes the label OK to Save. But I don't think there was any good reason for this label to differ from other screens.

<f:submit value="${%Save}"/>
</f:bottomButtonBar>
</j:if>
<f:saveApplyBar/>
Copy link
Member

Choose a reason for hiding this comment

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

This one is funny, after clicking Apply:

Screenshot 2024-10-11 at 14 49 59

Copy link
Member Author

Choose a reason for hiding this comment

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

<f:submit id="saveButton" value="${%Save}" clazz="jenkins-hidden" />
</f:bottomButtonBar>
</l:isAdmin>
<f:saveApplyBar/>
Copy link
Member

Choose a reason for hiding this comment

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

Also funny:

Screenshot 2024-10-11 at 15 09 56

<f:submit value="${%Save}"/>
</f:bottomButtonBar>
</l:hasPermission>
<f:saveApplyBar/>
Copy link
Member

Choose a reason for hiding this comment

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

Also funny:

Screenshot 2024-10-11 at 15 12 07

Copy link
Member Author

Choose a reason for hiding this comment

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

@daniel-beck daniel-beck added the security-approved @jenkinsci/core-security-review reviewed this PR for security issues label Oct 11, 2024
@NotMyFault NotMyFault requested a review from a team October 13, 2024 09:58
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.

/label ready-for-merge


This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback.

Thanks!

@comment-ops-bot comment-ops-bot bot added the ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback label Oct 13, 2024
@timja timja merged commit fe80df5 into jenkinsci:master Oct 14, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer Changes which impact plugin developers ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback security-approved @jenkinsci/core-security-review reviewed this PR for security issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants