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

Update File Name task #861

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

Sora201710
Copy link

@Sora201710 Sora201710 commented Dec 5, 2024

Link to Github issue or other discussion

#829

What does this PR do?

Adds a new task called "update_files" which allows you to update filenames of files that have already been ingested

What changes were made?

Adds a new function in the workbench file called "update_files", adds an integration test in islandora_tests.py and slightly modifies functions in workbench_utils.py to include "update_files" as a task.

How to test / verify this PR?

For the integration test, open islandora_workbench folder in terminal, then run "python3 tests/islandora_tests.py TestUpdateFileName". To test the usage of the task, you have to create a config file with task as "update_files" and host, username, password, input_csv. For the csv file, you only need the file_id (the file you are trying to update) and filename (the new, updated file name).

Interested Parties

@mjordan


Checklist

  • Before opening this PR, have you opened an issue explaining what you want to to do?
  • Have you included some configuration and/or CSV files useful for testing this PR?
  • Have you written unit or integration tests if applicable?
  • Does the code added in this PR require a version of Python that is higher than the current minimum version?
  • If the changes in this PR require an additional Python library, have you included it in setup.py?
  • If the changes in this PR add a new configuration option, have you provided a default for when the option is not present in the .yml file?

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

Successfully merging this pull request may close these issues.

1 participant