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

handle node deleted merge edge case #5026

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

ajtmccarty
Copy link
Contributor

@ajtmccarty ajtmccarty commented Nov 22, 2024

fixes #3315
IFC-312

final piece of handling deleted node conflicts in the new diff and merge
this PR adds a shortcut to delete everything connected to a node deleted in the diff during the merge. this should improve performance if a diff includes a lot of deleted nodes

it also fixes a problem that could arise if a node was deleted on a branch and had a one-way relationship added to it on main or vice versa. the deleted node and all of its attributes/relationships would be set to deleted except for the new relationship added on main. added a test with some customer cypher queries to verify it

@github-actions github-actions bot added the group/backend Issue related to the backend (API Server, Git Agent) label Nov 22, 2024
Copy link

codspeed-hq bot commented Nov 22, 2024

CodSpeed Performance Report

Merging #5026 will improve performances by 34.01%

Comparing ajtm-11222024-node-merge-full-delete (5db5c68) with develop (f120de0)

Summary

⚡ 1 improvements
✅ 9 untouched benchmarks

Benchmarks breakdown

Benchmark develop ajtm-11222024-node-merge-full-delete Change
test_schemabranch_duplicate 417.7 µs 311.7 µs +34.01%

@ajtmccarty ajtmccarty force-pushed the ajtm-11222024-node-merge-full-delete branch from b91e120 to fa55c0a Compare November 25, 2024 15:01
@ajtmccarty ajtmccarty changed the base branch from develop to release-1.1 November 25, 2024 21:05
@ajtmccarty ajtmccarty marked this pull request as ready for review November 25, 2024 21:09
@ajtmccarty ajtmccarty requested a review from a team November 25, 2024 21:09
@ajtmccarty ajtmccarty merged commit 9d27f79 into release-1.1 Nov 26, 2024
32 checks passed
@ajtmccarty ajtmccarty deleted the ajtm-11222024-node-merge-full-delete branch November 26, 2024 14:16
LucasG0 pushed a commit that referenced this pull request Nov 28, 2024
* handle node deleted merge edge case

* fix query
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group/backend Issue related to the backend (API Server, Git Agent)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants