-
Notifications
You must be signed in to change notification settings - Fork 13k
feat: Require token name when creating personal access token #35315
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
feat: Require token name when creating personal access token #35315
Conversation
|
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: 311f264 The changes in this PR will be included in the next version bump. This PR includes changesets to release 38 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
dougfabris
left a comment
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.
@xmaxlad Hey, thanks for the contribution!
Instead of dispatching a toast, can we add a FieldError to the Field?
For your reference
3de1f21 to
f60bcb3
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #35315 +/- ##
===========================================
- Coverage 64.35% 62.75% -1.60%
===========================================
Files 3139 3024 -115
Lines 104662 102697 -1965
Branches 19759 19324 -435
===========================================
- Hits 67350 64447 -2903
- Misses 34628 35804 +1176
+ Partials 2684 2446 -238
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Co-authored-by: Douglas Fabris <27704687+dougfabris@users.noreply.github.com> Co-authored-by: gabriellsh <40830821+gabriellsh@users.noreply.github.com>
Proposed changes (including videos or screenshots)
Only allow creating PAT with a name.
If user clicks on 'Add' without giving a name, an error message is displayed, requiring the PAT name.
If users enters a name, the PAT is created as before with no changes.
Issue(s)
closes: #35314
Currently users can create a PAT without a name (an empty string). Which is not a appropriate case, creating tokens with no name can lead to confusion if there are multiple such tokens.
Steps to test or reproduce
Further comments
The pull request displays a error message that informs the user to provide a name to the token rather than creating a PAT without no name.
Looking forward to any views or comments.
CORE-1085