-
Notifications
You must be signed in to change notification settings - Fork 118
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
Support Git clone over HTTP in Central Dogma. #954
Conversation
Motivation: Adding support for Git clone over HTTP in Central Dogma server would enhance its capabilities and make it more user-friendly. This PR partially addressed line#543. Please note that I didn't impelent Git over HTTP fully because - We have APIs for commit separately. - The underlying Git repository could be changed to other format instead of Git. Modifications: - Added support for Git clone over HTTP to Central Dogma. Result: You can now clone your repositories via Git clone over HTTP.
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.
As a follow-up, could you also add an integration test that makes sure if this implementation works with Spring Cloud Config Server?
server/src/main/java/com/linecorp/centraldogma/server/internal/api/GitHttpService.java
Show resolved
Hide resolved
server/src/test/java/com/linecorp/centraldogma/server/internal/api/GitHttpServiceTest.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/linecorp/centraldogma/server/internal/api/GitHttpService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/linecorp/centraldogma/server/internal/api/GitHttpService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/linecorp/centraldogma/server/internal/api/GitHttpService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/linecorp/centraldogma/server/internal/api/GitHttpService.java
Outdated
Show resolved
Hide resolved
Thanks! Created. 😉 |
@trustin, thanks! All addressed. 😉 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #954 +/- ##
============================================
- Coverage 66.86% 66.47% -0.40%
- Complexity 3529 3581 +52
============================================
Files 370 377 +7
Lines 14531 14859 +328
Branches 1563 1594 +31
============================================
+ Hits 9716 9877 +161
- Misses 3936 4097 +161
- Partials 879 885 +6 ☔ View full report in Codecov by Sentry. |
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.
Looks good as a starting point to me 👍 Thanks @minwoox 👍 🙇 👍
server/src/main/java/com/linecorp/centraldogma/server/internal/api/GitHttpService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/linecorp/centraldogma/server/internal/api/GitHttpService.java
Outdated
Show resolved
Hide resolved
...c/main/java/com/linecorp/centraldogma/server/internal/storage/project/ProjectApiManager.java
Show resolved
Hide resolved
server/src/main/java/com/linecorp/centraldogma/server/internal/api/GitHttpService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/linecorp/centraldogma/server/internal/api/GitHttpService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/linecorp/centraldogma/server/internal/api/GitHttpService.java
Show resolved
Hide resolved
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.
Fantastic feature! 🤩✨
server/src/main/java/com/linecorp/centraldogma/server/internal/api/GitHttpService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/linecorp/centraldogma/server/internal/api/GitHttpService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/linecorp/centraldogma/server/internal/api/GitHttpService.java
Outdated
Show resolved
Hide resolved
...ain/java/com/linecorp/centraldogma/server/internal/api/auth/RequiresPermissionDecorator.java
Outdated
Show resolved
Hide resolved
This reverts commit 9e50f48.
Motivation: Added necessary headers and MediaTypes for Git HTTP, as a follow-up to line/centraldogma#954.
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!
Motivation: Added necessary headers and MediaTypes for Git HTTP, as a follow-up to line/centraldogma#954.
Motivation: Added necessary headers and MediaTypes for Git HTTP, as a follow-up to line/centraldogma#954.
Motivation:
Adding support for Git clone over HTTP in Central Dogma server would enhance its capabilities and make it more user-friendly. This PR partially addressed #543.
Please note that I didn't impelent Git over HTTP fully because:
Modifications:
Result:
References:
The CLI command that allows you to view the packets being sent and received: