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

Support delete vertex without edge #3316

Merged

Conversation

cangfengzhs
Copy link
Contributor

What type of PR is this?

  • bug
  • feature
  • enhancement

What does this PR do?

support delete vertex without edge

Which issue(s)/PR(s) this PR relates to?

Special notes for your reviewer, ex. impact of this fix, etc:

Additional context:

Checklist:

  • Documentation affected (Please add the label if documentation needs to be modified.)
  • Incompatible (If it is incompatible, please describe it and add corresponding label.)
  • Need to cherry-pick (If need to cherry-pick to some branches, please label the destination version(s).)
  • Performance impacted: Consumes more CPU/Memory

Release notes:

Please confirm whether to reflect in release notes and how to describe:

                                                            `

@cangfengzhs cangfengzhs added the ready-for-testing PR: ready for the CI test label Nov 15, 2021
@cangfengzhs cangfengzhs linked an issue Nov 15, 2021 that may be closed by this pull request
@Shylock-Hg
Copy link
Contributor

Why #3123 need this?

@cangfengzhs
Copy link
Contributor Author

Why #3123 need this?

It is part of the support vertex with tag feature mentioned in the review meeting

@codecov-commenter
Copy link

codecov-commenter commented Nov 15, 2021

Codecov Report

Merging #3316 (1bbe867) into master (07d5e21) will increase coverage by 0.00%.
The diff coverage is 72.81%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3316   +/-   ##
=======================================
  Coverage   85.23%   85.24%           
=======================================
  Files        1289     1288    -1     
  Lines      119974   119889   -85     
=======================================
- Hits       102265   102201   -64     
+ Misses      17709    17688   -21     
Impacted Files Coverage Δ
src/graph/validator/MutateValidator.h 100.00% <ø> (ø)
src/kvstore/NebulaSnapshotManager.cpp 83.33% <ø> (ø)
src/kvstore/raftex/Host.h 90.47% <ø> (ø)
src/kvstore/raftex/RaftPart.h 98.30% <ø> (ø)
src/kvstore/raftex/SnapshotManager.h 100.00% <ø> (ø)
src/kvstore/wal/FileBasedWal.h 100.00% <ø> (ø)
src/kvstore/wal/Wal.h 100.00% <ø> (ø)
src/kvstore/wal/WalFileIterator.cpp 71.00% <50.00%> (-6.00%) ⬇️
src/kvstore/raftex/RaftPart.cpp 73.28% <51.88%> (-0.80%) ⬇️
src/kvstore/raftex/Host.cpp 75.91% <69.52%> (+8.61%) ⬆️
... and 34 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9ebc49d...1bbe867. Read the comment docs.

@cangfengzhs cangfengzhs marked this pull request as ready for review November 16, 2021 02:14
Copy link
Contributor

@critical27 critical27 left a comment

Choose a reason for hiding this comment

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

LGTM

@cangfengzhs cangfengzhs requested review from a team and removed request for a team December 7, 2021 07:28
if (withEdge_) {
std::vector<storage::cpp2::EdgeProp> edgeProps;
// make edgeRefs and edgeProp
auto index = 0u;
Copy link
Contributor

Choose a reason for hiding this comment

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

You could iterates both edgeTypes_ and edgeNames_ instead of using the index.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did not modify these codes, and just move them into an if statement.

@Shylock-Hg Shylock-Hg added the incompatible PR: incompatible with the recently released version label Dec 7, 2021
@Sophie-Xie Sophie-Xie added the doc affected PR: improvements or additions to documentation label Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc affected PR: improvements or additions to documentation incompatible PR: incompatible with the recently released version ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants