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

fix bug update property to value of removed element with unique index #679

Merged
merged 3 commits into from
Sep 3, 2019

Conversation

zhoney
Copy link
Contributor

@zhoney zhoney commented Sep 2, 2019

fixed: #678

Change-Id: I0aeb3603078fdc07af668cf0c65c3edbc28e8814

fixed: #678

Change-Id: I0aeb3603078fdc07af668cf0c65c3edbc28e8814
@codecov
Copy link

codecov bot commented Sep 2, 2019

Codecov Report

Merging #679 into master will increase coverage by <.01%.
The diff coverage is 84.12%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #679      +/-   ##
============================================
+ Coverage     72.94%   72.94%   +<.01%     
- Complexity     3919     3925       +6     
============================================
  Files           218      218              
  Lines         17688    17716      +28     
  Branches       2533     2541       +8     
============================================
+ Hits          12902    12923      +21     
  Misses         3468     3468              
- Partials       1318     1325       +7
Impacted Files Coverage Δ Complexity Δ
...baidu/hugegraph/backend/store/BackendMutation.java 84.46% <ø> (ø) 30 <0> (ø) ⬇️
...du/hugegraph/backend/tx/GraphIndexTransaction.java 80.74% <50%> (-0.11%) 175 <0> (-3)
...m/baidu/hugegraph/backend/tx/GraphTransaction.java 82.39% <87.71%> (-0.26%) 216 <11> (+5)
...a/com/baidu/hugegraph/backend/query/Condition.java 77.59% <0%> (-0.42%) 31% <0%> (ø)
.../baidu/hugegraph/backend/query/ConditionQuery.java 83.55% <0%> (+0.6%) 95% <0%> (+5%) ⬆️

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 0a0578f...043fac2. Read the comment docs.

private Set<HugeProperty<?>> updatedOldestProps; // Oldest props

private Set<HugeProperty<?>> addedProps;
private Set<HugeProperty<?>> removedProps;
Copy link
Contributor

Choose a reason for hiding this comment

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

move to line 102

// Override vertex
this.addVertex(vertex);
}
this.propertyUpdated(vertex, prop, vertex.setProperty(prop));
Copy link
Contributor

Choose a reason for hiding this comment

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

update comment, same as others

Change-Id: I7d99ae8d137d0286c6a5d6f5e1902bc86b48dab5
@@ -99,15 +99,14 @@

private Map<Id, HugeEdge> addedEdges;
private Map<Id, HugeEdge> removedEdges;
private Set<HugeProperty<?>> addedProps;
Copy link
Contributor

Choose a reason for hiding this comment

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

add empty line

Change-Id: I8569fa6aea9899d2152728c65c7bdc5adb6bed68
@Linary Linary merged commit 0184a63 into master Sep 3, 2019
@Linary Linary deleted the unique-index branch September 3, 2019 09:54
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.

唯一属性约束索引unique index问题
3 participants