Skip to content

IBX-9262: Fixed Relation::Asset not being cleaned up on content deletion #523

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

Open
wants to merge 3 commits into
base: 4.6
Choose a base branch
from

Conversation

ViniTou
Copy link
Contributor

@ViniTou ViniTou commented Apr 8, 2025

🎫 Issue IBX-9262

Description:

We were missing image asset cleanup when asset content was deleted.

For QA:

Check also if that change did not affect normal relation field type cleanup in any way.

Documentation:

@ViniTou ViniTou requested a review from a team April 9, 2025 05:24
Comment on lines +1230 to +1231
* id: int|string,
* version: int|string,
Copy link
Contributor

Choose a reason for hiding this comment

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

Are there any situations in which these values are integers?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it strictly depends on database driver.

Copy link
Contributor

@konradoboza konradoboza left a comment

Choose a reason for hiding this comment

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

Apart from missing import.


$assetContent = $this->contentService->loadContentByContentInfo($assetContent->getContentInfo());

/** @var \Ibexa\Core\FieldType\ImageAsset\Value $value */
Copy link
Contributor

Choose a reason for hiding this comment

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

You can make an assertion instead.

Copy link

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.

10 participants