Skip to content

Bugfix/17005 replacing assets via gql #17031

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

Merged
merged 4 commits into from
Apr 7, 2025

Conversation

i-just
Copy link
Contributor

@i-just i-just commented Apr 7, 2025

Description

Issue 1:
Fixes a bug where avoidFilenameConflicts wasn’t always working as expected.

For example, if you have two assets with filenames file-one.png and file-two.png and you’re replacing the file-one.png via GQL mutation, the data specifies that the new filename is supposed to be file-two.png then the file will be uploaded, and the asset will be updated, but you’ll end up with two separate assets with files with filename file-two.png.

Issue 2:
Trigger Assets::EVENT_BEFORE_REPLACE_ASSET and Assets::EVENT_AFTER_REPLACE_ASSET when replacing an asset via GQL mutation.

Related issues

#17005

@i-just i-just marked this pull request as ready for review April 7, 2025 13:12
@brandonkelly brandonkelly merged commit 6872801 into 4.x Apr 7, 2025
@brandonkelly brandonkelly deleted the bugfix/17005-replacing-assets-via-gql branch April 7, 2025 17:46
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