-
Notifications
You must be signed in to change notification settings - Fork 312
refactor: rename codemod_permissions functions for discoverability #22658
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -27,8 +27,8 @@ func GetAllCodemods() []Codemod { | |||||
| getCommandToSlashCommandCodemod(), | ||||||
| getMCPScriptsModeCodemod(), | ||||||
| getUploadAssetsCodemod(), | ||||||
| getWritePermissionsCodemod(), | ||||||
| getPermissionsReadCodemod(), // Fix permissions: read -> permissions: read-all | ||||||
| getMigrateWritePermissionsToReadCodemod(), | ||||||
| getExpandPermissionsShorthandCodemod(), // Fix permissions: read -> permissions: read-all | ||||||
|
||||||
| getExpandPermissionsShorthandCodemod(), // Fix permissions: read -> permissions: read-all | |
| getExpandPermissionsShorthandCodemod(), // Expand invalid permissions shorthands (e.g., read -> read-all, write -> write-all) |
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.
These test names still refer to the old codemod name (e.g.,
TestGetPermissionsReadCodemod/TestPermissionsReadCodemod_*) even though they now exercisegetExpandPermissionsShorthandCodemod. Renaming the test functions to match the new codemod name will keep grep/search-based discoverability consistent with the refactor goal.This issue also appears on line 186 of the same file.