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

Manage the Nextcloud trash #4432

Merged
merged 7 commits into from
Jul 2, 2024
Merged

Manage the Nextcloud trash #4432

merged 7 commits into from
Jul 2, 2024

Conversation

nono
Copy link
Member

@nono nono commented Jun 27, 2024

No description provided.

nono added 5 commits June 27, 2024 09:13
The path for files/directories inside the NextCloud trashbin are NOT
their parent path + their name, but also contains a suffix. So, we need
to add the path to the response to allow the clients to make operations
on them.
@nono nono requested a review from cballevre June 27, 2024 10:33
@nono nono requested a review from a team as a code owner June 27, 2024 10:33
"attributes": {
"type": "directory",
"name": "Old",
"path": "/trash/Old.d93571568",
Copy link
Member Author

Choose a reason for hiding this comment

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

@cballevre be careful, the path for things inside the trash is a bit weird and cannot be computed with just the parent and the name, so it was added to the response

Copy link
Member

Choose a reason for hiding this comment

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

Interesting clarification. I saw that you added the path everywhere. In cozy-client, I add a second attribute named parentPath. It corresponds to the folder path. This is to make it easier to replay requests with sift.js (commit with some explanation). Wouldn't it make sense to add it to the back as well, so we wouldn't have to calculate anything on the front?

model/nextcloud/nextcloud.go Show resolved Hide resolved
model/nextcloud/nextcloud.go Show resolved Hide resolved
model/nextcloud/nextcloud.go Outdated Show resolved Hide resolved
@nono nono merged commit 8a145e0 into master Jul 2, 2024
4 checks passed
@nono nono deleted the nextcloud-trash branch July 2, 2024 16:06
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.

3 participants