Skip to content

Bugfix/17005 replacing assets via gql#17031

Merged
brandonkelly merged 4 commits into4.xfrom
bugfix/17005-replacing-assets-via-gql
Apr 7, 2025
Merged

Bugfix/17005 replacing assets via gql#17031
brandonkelly merged 4 commits into4.xfrom
bugfix/17005-replacing-assets-via-gql

Conversation

@i-just
Copy link
Copy Markdown
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