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

TASK: Remove Neos.Media functionality in resource:clean #3285

Draft
wants to merge 2 commits into
base: 9.0
Choose a base branch
from

Conversation

mhsdesign
Copy link
Member

@mhsdesign mhsdesign commented Jan 27, 2024

Depends on #3275
Resolves #3272

There will be another PR towards Neos.Media to include this functionality in ./flow media:cleanresources.

Additionally warn if this command is used in a Neos installation, and let the dev know that it's preferred to use Neos' command.

While reading the code, looking for improvement, it seems tedious that we `getIdentifierByObject` just to `findByIdentifier` a few lines later.

This happened due to a funny history of back and forth.

At first - 2014 - `resource:clean` was introduced looping over the PersistentResource
- neos@8a1ce0f

Then - 2016 - it was decided to save the sha1 and loop over them and retrieve the asset via `findOneBySha1`

But that did not improve the situation as described in neos#1678 and was removed again - 2019.

So in functionality we made a full round, im just here to followup on the last fix to restore the full state syntactically as it was once though of.
@github-actions github-actions bot added the 9.0 label Jan 27, 2024
@mhsdesign mhsdesign marked this pull request as draft January 27, 2024 19:11
Resolves neos#3272

There will be another PR towards Neos.Media to include this functionality in `./flow media:cleanresources`.

Additionally warn if this command is used in a Neos installation, and let the dev know that it's preferred to use Neos' command.
@mhsdesign mhsdesign changed the title task/3272 cleanupNeosMediaDependencyInResourceCleanCommand TASK: Remove Neos.Media functionality in resource:clean Jan 27, 2024
@github-actions github-actions bot added the Task label Jan 27, 2024
@mhsdesign mhsdesign force-pushed the task/3272-cleanupNeosMediaDependencyInResourceCleanCommand branch from 51acfea to 53dc4db Compare January 27, 2024 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TASK: Cleanup illegal dependency from Flow to Neos.Media
1 participant