Skip to content

Conversation

@yvonnedejong-uk
Copy link
Collaborator

@yvonnedejong-uk yvonnedejong-uk commented Nov 12, 2025

Testcase: Delete file function to OneData

@yvonnedejong-uk yvonnedejong-uk changed the base branch from main to feature/storage-brokering November 12, 2025 15:29
@marcuslowndes marcuslowndes changed the base branch from feature/storage-brokering to fix/file-download January 23, 2026 19:50
@marcuslowndes marcuslowndes changed the base branch from fix/file-download to feature/storage-brokering January 23, 2026 19:52
Comment on lines 122 to 134
@@ -129,26 +130,33 @@ def locate(self, filename) -> object:
files = response.get("children", []) or response.get("entries", [])
for f in files:
if f.get("name") == filename:
return f.get("id")

self._set_file_id(f.get("file_id"))
return f.get("file_id")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yvonnedejong-uk So, as I mentioned today, we shouldn't just do a "get all" of the entire directory on OneData. We should do a direct search in OneData for that file name in OneData (if possible)

As we discussed, there will not be multiple files with the same name in the same directory, so we don't need to worry about that

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Handing back to you

* file download function

* Bring back upload file test and add find file test

* Separate provisioning tests from file mgmt tests

* revert unnecessary change

* Update deletable file ID env name for clarity

---------

Co-authored-by: marcuslowndes <marcuslowndes@yahoo.co.uk>
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.

2 participants