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

Add ability to update file names #829

Open
Sora201710 opened this issue Oct 12, 2024 · 5 comments
Open

Add ability to update file names #829

Sora201710 opened this issue Oct 12, 2024 · 5 comments

Comments

@Sora201710
Copy link

The idea is to implement a new task, called update-files, to be able to update file names from workbench. Is this something people would be interested in?

@mjordan
Copy link
Owner

mjordan commented Oct 13, 2024

Tell me more! What's your use case?

@Sora201710
Copy link
Author

The use case is to be able to update filenames of files that have already been ingested to conform to particular file naming conventions.

@mjordan
Copy link
Owner

mjordan commented Oct 16, 2024

This sounds like it could be useful. Would it be able to change filenames on local (public/private) Drupal filesystems as well as Fedora URLs?

@Sora201710
Copy link
Author

Currently, I'm not sure it can do that (all the function does is send a patch request to the site) but it could maybe be extended to include that functionality.

@mjordan
Copy link
Owner

mjordan commented Oct 17, 2024

Even if this only works on local filesystems it will be useful. If you can include an integration test in your PR I would appreciate it (e.g. create a media / file, hit its URL and expect a 200, rename it, then hit its new location and expect a 200).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants