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

Feature/import as #1859

Merged
merged 16 commits into from
Nov 22, 2024
Merged

Feature/import as #1859

merged 16 commits into from
Nov 22, 2024

Conversation

shivamka1
Copy link
Collaborator

@shivamka1 shivamka1 commented Nov 18, 2024

What changes were proposed in this pull request?

#1737: Add an import_as function for edges and nodes
Changed the force argument in import to 'merge' to better indicate what it is doing

Why are the changes needed?

When importing node/nodes or edge/edges from an existing graph user should be able to provide new id.

Does this PR introduce any user-facing change? If yes is this documented?

Yes, yes.

How was this patch tested?

Unit tests

Are there any further changes required?

No

@shivamka1 shivamka1 marked this pull request as ready for review November 19, 2024 18:05
Copy link
Collaborator

@miratepuffin miratepuffin left a comment

Choose a reason for hiding this comment

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

Couple of change suggested.

We also need to add a test for added edges from the same graph which lucas noticed deadlocks.

Can you make sure to run make tidy as you need to generate the stubs for these new functions.

If you can also quickly merge master to bring in the changes to allow iterators.

raphtory/src/python/graph/graph_with_deletions.rs Outdated Show resolved Hide resolved
raphtory/src/python/graph/graph_with_deletions.rs Outdated Show resolved Hide resolved
raphtory/src/python/graph/graph_with_deletions.rs Outdated Show resolved Hide resolved
raphtory/src/python/graph/graph_with_deletions.rs Outdated Show resolved Hide resolved
raphtory/src/db/graph/graph.rs Outdated Show resolved Hide resolved
raphtory/src/db/graph/graph.rs Show resolved Hide resolved
raphtory/src/db/api/mutation/import_ops.rs Outdated Show resolved Hide resolved
raphtory/src/db/api/mutation/import_ops.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@miratepuffin miratepuffin left a comment

Choose a reason for hiding this comment

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

Can you just change the force flag to 'merge'

@miratepuffin miratepuffin merged commit e289e5a into master Nov 22, 2024
4 checks passed
@miratepuffin miratepuffin deleted the feature/import_as branch November 22, 2024 17:32
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