Update filename#931
Conversation
|
Hello, is there anything else that needs to be done in this PR? |
|
Hi @SHU8HAM1 I have tested this and I am not sure it's working. I am in your branch of the Islandora Workbench Integration module, and in your branch of islandora_workbench. I have two thumbnail images, originally named and here is my config file: I can confirm that the {
"fid": [
{
"value": 16
}
],
"uuid": [
{
"value": "c823217a-6f88-4a68-9da5-23009b0cc786"
}
],
"langcode": [
{
"value": "en"
}
],
"uid": [
{
"target_id": 1,
"target_type": "user",
"target_uuid": "36d6a639-1c68-489a-80e8-cf3f7379787e",
"url": "/user/1"
}
],
"filename": [
{
"value": "alcatraz_tn.jpg"
}
],
"uri": [
{
"value": "public://2025-04/IMG_5083-Thumbnail Image.jpg",
"url": "/sites/default/files/2025-04/IMG_5083-Thumbnail%20Image.jpg"
}
],
"filemime": [
{
"value": "image/jpeg"
}
],
"filesize": [
{
"value": 7717
}
],
"status": [
{
"value": true
}
],
"created": [
{
"value": "2025-04-22T19:15:23+00:00",
"format": "Y-m-d\\TH:i:sP"
}
],
"changed": [
{
"value": "2025-04-22T19:47:27+00:00",
"format": "Y-m-d\\TH:i:sP"
}
]
}I can confirm that the "Filename" value for this file at Sorry if I misunderstood the functionality of this new task. Please let me know if what I describe above confirms that this is working as you intend. |
|
Hi Mark, so sorry about that. It seems like I forgot to push the last commit onto my branch, if you try it now, it should change the file URI and name as well |
|
To confirm, this is the PR I should be testing, not #861, correct? Does this PR superseded that one? |
|
Hi @mjordan, yes, this is the PR that should be tested |
|
OK, I'm going to close the other one. |
|
I'm running Workbench at commit 4301b4a (latest in your branch) and am now seeing the filename on the public filesystem being changed, and the filename in the "files" content list at https://islandora.dev/admin/content/files. The media name that the file belongs to is not updated. Is that intentional? I would guess that people would expect it to be, maybe we can add that later. |
|
Hi @mjordan, yes, that is intentional as the media name can be changed and set by the user but filename just gets updated automatically. |
|
OK, thanks, I'll test a bit more but this looks good. We will need to merge mjordan/islandora_workbench_integration#35 at the same time as this PR and I have left some comments over there for you. |

Link to Github issue or other discussion
What does this PR do?
What changes were made?
How to test / verify this PR?
Interested Parties
Checklist
setup.py?