Skip to content

feat(file-versions): #53151 add VersionCreatedEvent event #53154

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 1 commit into
base: master
Choose a base branch
from

Conversation

bdovaz
Copy link

@bdovaz bdovaz commented May 28, 2025

Summary

This event ensures the correct flow when creating custom metadata for a previously created version.

As I mentioned in that issue, that +1 in the catch makes everything very fragile:

$versionEntity->setTimestamp($versionEntity->getTimestamp() + 1);

We could even refactor VersionAuthorListener if you think it's a good idea, so that it uses this event and decouples it from file events, which means that not all cases are covered (#53152) and it is more fragile.

TODO

  • ...

Checklist

@bdovaz bdovaz requested a review from a team as a code owner May 28, 2025 09:44
@bdovaz bdovaz requested review from icewind1991, nfebe and skjnldsv and removed request for a team May 28, 2025 09:44
@bdovaz bdovaz force-pushed the add-VersionCreatedEvent branch from ce098ab to 4681bb5 Compare May 28, 2025 09:56
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.

[Bug]: Cannot write file version metadata when copying or moving a folder or file
2 participants