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

Feature: Command line tool for renaming slugs #1609

Closed
anvit opened this issue Jun 15, 2023 · 2 comments · Fixed by #1619
Closed

Feature: Command line tool for renaming slugs #1609

anvit opened this issue Jun 15, 2023 · 2 comments · Fixed by #1619
Assignees
Labels
Type: enhancement An improvement to existing functionality.
Milestone

Comments

@anvit
Copy link
Contributor

anvit commented Jun 15, 2023

Having a command line tool to rename slugs (say something like php symfony tools:rename-slug old_slug_name new_slug_name)
can speed up things for users who want to batch rename them using a shell script, and don't want to manually update them one at a time using the UI or run SQL queries.

@anvit anvit added the Type: enhancement An improvement to existing functionality. label Jun 15, 2023
@anvit anvit added this to the 2.8.0 milestone Jun 15, 2023
@fiver-watson
Copy link
Contributor

@anvit if you develop this tool, i would recommend that you also consider something like a --csv option. When used, instead of the input being individual before and after slug values, it is a file path to a CSV with 2 columns - oldSlug and slug (or similar). That way the task can be used for selective bulk updates, regardless of entity type

@anvit
Copy link
Contributor Author

anvit commented Jun 15, 2023

@fiver-watson Oh, that's a good idea! That would make things much easier for a lot of folks who want to bulk update slugs!

@anvit anvit self-assigned this Jun 21, 2023
anvit added a commit that referenced this issue Jun 22, 2023
anvit added a commit that referenced this issue Jun 23, 2023
Add a CLI task which lets users update slugs. Slugs can be provided
in a CSV file with the --csv option, or be provided as command line
arguments.
@anvit anvit linked a pull request Jun 23, 2023 that will close this issue
@anvit anvit modified the milestones: 2.8.0, 2.7.3 Jul 4, 2023
anvit added a commit that referenced this issue Jul 4, 2023
Add a CLI task which lets users update slugs. Slugs can be provided
in a CSV file with the --csv option, or be provided as command line
arguments.

Change base class to arBaseTask
Mbtj pushed a commit that referenced this issue Jul 5, 2023
Add a CLI task which lets users update slugs. Slugs can be provided
in a CSV file with the --csv option, or be provided as command line
arguments.

Change base class to arBaseTask
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: enhancement An improvement to existing functionality.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants