Skip to content

#1548 - feature: recycle folder less duplication #1621

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

Closed

Conversation

mloitzl
Copy link
Contributor

@mloitzl mloitzl commented Feb 28, 2025

No description provided.

@mloitzl
Copy link
Contributor Author

mloitzl commented Feb 28, 2025

The same as #1620 but with less duplication.

Introducing RecyclableBaseDataModel feels strange to reduce duplicated code, since all ExpandoBaseDataModel inherit Recycle capabilities, but only ListItem actually is able to be recycled.

I am not sure that there are others than File, Folder and List having recycle capabilities that could be inherited.

I don't know, @jansenbe should I further elaborate on that?

Actually I am not a fan of avoiding duplication at the cost of readability.

@mloitzl mloitzl changed the title Feature/recycle folder less duplication Feature: recycle folder less duplication Feb 28, 2025
@mloitzl mloitzl changed the title Feature: recycle folder less duplication #1548 - feature: recycle folder less duplication Feb 28, 2025
@jansenbe jansenbe self-assigned this Mar 10, 2025
@jansenbe
Copy link
Contributor

@mloitzl : let's favor readability, I'll merge your other PR.

@jansenbe
Copy link
Contributor

@mloitzl : closing this one as the more readable version was merged. Thanks for proposing this alternative option.

@jansenbe jansenbe closed this Mar 12, 2025
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