Skip to content

Feat: ownerless trashbin for EOS#5475

Merged
glpatcern merged 1 commit intoeos5.4from
fix/ownerless-trashbin
Jan 22, 2026
Merged

Feat: ownerless trashbin for EOS#5475
glpatcern merged 1 commit intoeos5.4from
fix/ownerless-trashbin

Conversation

@jessegeens
Copy link
Copy Markdown
Contributor

@jessegeens jessegeens commented Jan 16, 2026

Depends on #5474

@jessegeens jessegeens force-pushed the fix/ownerless-trashbin branch 5 times, most recently from c108e29 to 159c76c Compare January 21, 2026 13:36
@jessegeens jessegeens marked this pull request as ready for review January 21, 2026 13:36
@jessegeens jessegeens changed the base branch from master to eos5.4 January 21, 2026 13:37
Copy link
Copy Markdown
Member

@glpatcern glpatcern left a comment

Choose a reason for hiding this comment

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

All good to me except for a mini change:

Comment thread pkg/storage/utils/eosfs/eosfs.go Outdated
@jessegeens jessegeens force-pushed the fix/ownerless-trashbin branch from 159c76c to a2c3242 Compare January 22, 2026 09:18
@jessegeens jessegeens requested a review from glpatcern January 22, 2026 09:19
@glpatcern glpatcern merged commit f489dd5 into eos5.4 Jan 22, 2026
11 checks passed
Comment thread pkg/storage/utils/eosfs/eosfs.go
// We'll get the owner of the particular resource and impersonate them
// if we have access to it.
// user's own trashbin
if basePath == "/" {
Copy link
Copy Markdown
Contributor

@diocas diocas Jan 22, 2026

Choose a reason for hiding this comment

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

Don't we have a separate way to detect projects? Not that this is a problem right now, but this prevents us from using folder navigation inside a trashbin in the future. Also, have the impression this was being handled differently in other parts of the code.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm also not sure why we need this special case. If we're talking about a home trashbin, wouldn't we do the same as bellow and request as the owner?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Don't we have a separate way to detect projects?

Yes, sure, but that's not the only case: you can also be working in someone else's home when a folder has been shared with you. So that wouldn't work here

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

To me a proper way to detect project vs personal space going forward will be to look for this recycleid, as all projects will have it and none of the personal spaces will have it.

@jessegeens jessegeens deleted the fix/ownerless-trashbin branch April 7, 2026 08:40
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