-
Notifications
You must be signed in to change notification settings - Fork 521
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
chore(api): support ignore graphspaces segment in url #2612
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2612 +/- ##
============================================
+ Coverage 45.17% 48.69% +3.52%
- Complexity 583 708 +125
============================================
Files 718 730 +12
Lines 58434 59532 +1098
Branches 7491 7662 +171
============================================
+ Hits 26396 28992 +2596
+ Misses 29318 27630 -1688
- Partials 2720 2910 +190 ☔ View full report in Codecov by Sentry. |
...aph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/filter/GraphSpaceFilter.java
Outdated
Show resolved
Hide resolved
...aph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/filter/GraphSpaceFilter.java
Show resolved
Hide resolved
...aph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/filter/GraphSpaceFilter.java
Outdated
Show resolved
Hide resolved
...aph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/filter/GraphSpaceFilter.java
Outdated
Show resolved
Hide resolved
...aph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/filter/GraphSpaceFilter.java
Outdated
Show resolved
Hide resolved
...aph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/filter/GraphSpaceFilter.java
Outdated
Show resolved
Hide resolved
String relativePathStr = relativePath.getPath(); | ||
// TODO: remember change the logic after we support "GraphSpace" | ||
if (relativePathStr.startsWith("graphspaces/")) { | ||
// Step 2: Extract the next substring after "graphspaces/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add a api-test case for this code branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see GraphSpaceVertexApiTest and GraphSpaceEdgeApiTest, could be more...
@@ -84,6 +84,7 @@ public static void init() { | |||
@AfterClass | |||
public static void clear() throws Exception { | |||
client.close(); | |||
client = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No special meaning, just set the client member variable to null to indicate that the closed client should not be used anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update~
As title.