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

chore(api): support ignore graphspaces segment in url #2612

Merged
merged 12 commits into from
Aug 13, 2024

Conversation

VGalaxies
Copy link
Contributor

As title.

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Aug 2, 2024
@VGalaxies VGalaxies changed the title chore(server): temporary ignore graphspaces segment in url for forwards compatibility chore(api): temporary ignore graphspaces segment in url for forwards compatibility Aug 2, 2024
Copy link

codecov bot commented Aug 2, 2024

Codecov Report

Attention: Patch coverage is 80.64516% with 6 lines in your changes missing coverage. Please review.

Project coverage is 48.69%. Comparing base (a038d23) to head (8560c87).

Files Patch % Lines
.../apache/hugegraph/api/filter/GraphSpaceFilter.java 78.57% 3 Missing and 3 partials ⚠️
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.
📢 Have feedback on the report? Share it here.

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/"
Copy link
Contributor

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

Copy link
Contributor Author

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...

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Aug 12, 2024
@VGalaxies VGalaxies requested a review from javeme August 12, 2024 10:38
@@ -84,6 +84,7 @@ public static void init() {
@AfterClass
public static void clear() throws Exception {
client.close();
client = null;
Copy link
Member

Choose a reason for hiding this comment

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

what's for?

Copy link
Contributor Author

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.

Copy link
Member

@imbajin imbajin left a 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~

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Aug 13, 2024
@imbajin imbajin changed the title chore(api): temporary ignore graphspaces segment in url for forwards compatibility chore(api): support ignore graphspaces segment in url Aug 13, 2024
@imbajin imbajin merged commit 1c577de into master Aug 13, 2024
16 of 17 checks passed
@imbajin imbajin deleted the graphspaces-filter branch August 13, 2024 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants