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

AT entity creation event listener fix #7387

Merged
merged 1 commit into from
Oct 20, 2024

Conversation

daneryl
Copy link
Collaborator

@daneryl daneryl commented Oct 20, 2024

not using permissions commandContext anymore, the listener gets executed in the same context as the entity creation, we are only separating this into a event listener / use case to decouple v1 and v2 codes.

for some reason some of the entity saves at this point ocury without the entities having _id even though they where already created and in this case the special permission commandId gets replaced on the entities leaving them "corrupted" with a wrong id.

this pr fixes the issue because we do not need to use the commandContext, but the original issue causing this potentially remains and should be understood.

not using permissions commandContext anymore, the listener gets executed
in the same context as the entity creation, we are only separating this
into a event listener / use case to decouple v1 and v2 codes.

for some reason some of the entity saves at this point ocury without the
entities having _id even though they where already created and in this
case the special permission commandId gets replaced on the entities
leaving them "corrupted" with a wrong id.

this pr fixes the issue because we do not need to use the
commandContext, but the original issue causing this potentially remains
and should be understood.
@daneryl daneryl marked this pull request as ready for review October 20, 2024 11:29
@daneryl daneryl merged commit 81e4b93 into production Oct 20, 2024
29 of 32 checks passed
@daneryl daneryl deleted the AT_fix_request_entity_translation_listener branch October 20, 2024 18:21
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.

1 participant