-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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 f:secretTextarea UI analogous to f:password #3967
Conversation
Just as f:password is provided for secrets instead of f:textinput, this f:secretTextarea is provided for secrets instead of f:textarea where said secrets are multiline in nature. While this component does not provide any way to view an existing secret, it provides UIs to add and replace secrets. Signed-off-by: Matt Sicker <boards@gmail.com>
Good to add to the changelog entry the name of the new tag, easy to find when searching in the changelog |
The code is good. I'm just not sure it's a good idea to duplicate it into both a library and 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.
🐝
seems to be a perfect PR with exactly 500 lines added ;)
replaceUpdateButton(); | ||
removeSecretLegendLabel(); | ||
// fix UI bug when DOM changes | ||
Event.fire(window, 'jenkins:bottom-sticker-adjust'); |
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.
👍
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.
Looks good to me.
I guess it'd be good to also add an example usage in https://github.com/jenkinsci/ui-samples-plugin?
This is ready for merge. Given the small scope of this, fully new and unused yet I suppose, this is not very risky. Let's give it slightly more time, and merge it later today or tomorrow, so it goes in the next weekly. Please anyone object before we proceed, if there's any issue with this. Thanks everyone. |
Introduces new API to be supported forever though 🤷♂️ |
Just as f:password is provided for secrets instead of f:textinput,
this f:secretTextarea is provided for secrets instead of f:textarea
where said secrets are multiline in nature. While this component does
not provide any way to view an existing secret, it provides UIs to
add and replace secrets.
Code ported from standalone library: https://github.com/jenkinsci/lib-multiline-secrets-ui
Screenshots:
See JENKINS-TODO.
Proposed changelog entries
f:secretTextarea
to/lib/form
for adding and replacing multi-line secrets analogous to passwords for single-line.Submitter checklist
* Use the
Internal:
prefix if the change has no user-visible impact (API, test frameworks, etc.)Desired reviewers
@reviewbybees @jeffret-b @daniel-beck @batmat @Wadeck @thoulen