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

Ensure delete actions remove inbound edges #1820

Merged
merged 2 commits into from
Aug 28, 2024

Conversation

Swahvay
Copy link
Contributor

@Swahvay Swahvay commented Jul 9, 2024

The only thing I'm not 100% sure about is soft deletes, but I believe those get their delete actions converted to update actions, so it won't have any effect here.

Fixes #1819

The only thing I'm not 100% sure about is soft deletes, but I believe those get their delete actions converted to update actions, so it won't have any effect here.
@Swahvay Swahvay changed the title Ensure delete actions remove inbound edges #1819 Ensure delete actions remove inbound edges Aug 10, 2024
@@ -14,7 +14,7 @@
{{$tsFieldName := $field.TsBuilderFieldName -}}

{{/* we magically expect a local variable input to be defined when this is used */ -}}
if (input.{{$tsFieldName}} !== undefined) {
if (input.{{$tsFieldName}} !== undefined || this.operation === WriteOperation.Delete) {
Copy link
Owner

Choose a reason for hiding this comment

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

this makes sense. my guess is it expects only the remove parts to apply for deletes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In looking at this file now I might have to add this check in other places too. Let me do some checking before we merge this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, finally got back around to this and double checked everything. This should be good to merge. 👍

@lolopinto lolopinto merged commit 226471c into lolopinto:main Aug 28, 2024
3 of 4 checks passed
@lolopinto lolopinto mentioned this pull request Aug 28, 2024
@Swahvay Swahvay deleted the deleteInboundEdges branch August 30, 2024 02:08
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.

Delete actions do not call removeInboundEdge on field edges
2 participants