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

Improve check for getting vertex when create edge #1477

Merged
merged 3 commits into from
Jun 9, 2021

Conversation

Linary
Copy link
Contributor

@Linary Linary commented Jun 2, 2021

Change-Id: I86b7ac068154c52faf0d0d7f035cbf08178bf0d8

Change-Id: I86b7ac068154c52faf0d0d7f035cbf08178bf0d8
javeme
javeme previously approved these changes Jun 3, 2021
@@ -402,6 +403,12 @@ private static Vertex getVertex(HugeGraph graph,
throw new IllegalArgumentException(String.format(
"Invalid vertex id '%s'", id));
}
if (vertex.label().equals(label)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

if (!vertex.label().equals(label)) {

Change-Id: I52acfae504460d2c2a7927aa129cb658822836e0
javeme
javeme previously approved these changes Jun 8, 2021
Change-Id: I3addbb2ffd44b53c4edd0241327ba6d4f4895126
@codecov
Copy link

codecov bot commented Jun 8, 2021

Codecov Report

Merging #1477 (c01e998) into master (461948e) will increase coverage by 0.41%.
The diff coverage is 50.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1477      +/-   ##
============================================
+ Coverage     63.63%   64.04%   +0.41%     
- Complexity     5863     5882      +19     
============================================
  Files           381      381              
  Lines         32190    32193       +3     
  Branches       4506     4507       +1     
============================================
+ Hits          20484    20619     +135     
+ Misses         9608     9466     -142     
- Partials       2098     2108      +10     
Impacted Files Coverage Δ
...in/java/com/baidu/hugegraph/api/graph/EdgeAPI.java 53.36% <50.00%> (-0.85%) ⬇️
...va/com/baidu/hugegraph/task/ServerInfoManager.java 71.34% <0.00%> (-2.25%) ⬇️
.../baidu/hugegraph/backend/query/ConditionQuery.java 86.40% <0.00%> (+0.40%) ⬆️
.../backend/store/cassandra/CassandraSessionPool.java 57.14% <0.00%> (+1.02%) ⬆️
...egraph/backend/store/cassandra/CassandraShard.java 52.77% <0.00%> (+1.85%) ⬆️
...h/backend/store/scylladb/ScyllaDBTablesWithMV.java 96.03% <0.00%> (+96.03%) ⬆️
...graph/backend/store/scylladb/ScyllaDBFeatures.java 100.00% <0.00%> (+100.00%) ⬆️
.../backend/store/scylladb/ScyllaDBStoreProvider.java 100.00% <0.00%> (+100.00%) ⬆️

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 461948e...c01e998. Read the comment docs.

@zhoney zhoney merged commit 9f62e6f into master Jun 9, 2021
@zhoney zhoney deleted the improve-get-vertex-check branch June 9, 2021 09:39
jadepeng pushed a commit to jadepeng/hugegraph that referenced this pull request Jun 25, 2021
Change-Id: I86b7ac068154c52faf0d0d7f035cbf08178bf0d8
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.

None yet

3 participants