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(util): join_path function should not trim leading / #3280

Merged
merged 3 commits into from
Feb 7, 2024
Merged

fix(util): join_path function should not trim leading / #3280

merged 3 commits into from
Feb 7, 2024

Conversation

dalprahcd
Copy link
Contributor

I hereby agree to the terms of the GreptimeDB CLA

What's changed, and what's your intention?

Replaced opendal::raw::normalize_path with own implementation of normalize_path in order to fix expected behaviour of not trimming leading '/'.

Also fixed some typing errors (I believe) when I was reading the Makefile.

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.
  • This PR does not require documentation updates.

Refer to a related PR or issue link (optional)

Closes #3212

@github-actions github-actions bot added docs-not-required This change does not impact docs. Size: S labels Feb 4, 2024
@dalprahcd
Copy link
Contributor Author

@tisonkun you are welcome to review it and let me know about any necessary changes.

Copy link

codecov bot commented Feb 4, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (902570a) 85.69% compared to head (b167292) 85.07%.
Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3280      +/-   ##
==========================================
- Coverage   85.69%   85.07%   -0.63%     
==========================================
  Files         859      871      +12     
  Lines      140796   141519     +723     
==========================================
- Hits       120662   120393     -269     
- Misses      20134    21126     +992     

Copy link
Collaborator

@tisonkun tisonkun 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 your contribution! Comments inline.

src/object-store/src/util.rs Outdated Show resolved Hide resolved
src/object-store/src/util.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@v0y4g3r v0y4g3r left a comment

Choose a reason for hiding this comment

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

Almost LGTM, just some style and doc issues

src/object-store/src/util.rs Outdated Show resolved Hide resolved
src/object-store/src/util.rs Outdated Show resolved Hide resolved
src/object-store/src/util.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

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

It's good to merge :D

Thanks for your contribution!

src/object-store/src/util.rs Outdated Show resolved Hide resolved
src/object-store/src/util.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@evenyag evenyag left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for your contribution!

@evenyag evenyag added this pull request to the merge queue Feb 7, 2024
Merged via the queue into GreptimeTeam:main with commit 6b4be3a Feb 7, 2024
16 checks passed
@dalprahcd dalprahcd deleted the fix/3212/unexpected-trim-behavior-of-join-path branch February 8, 2024 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-not-required This change does not impact docs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unexpected trim behavior of join_path
4 participants