-
Notifications
You must be signed in to change notification settings - Fork 139
feat(key on repo url): support git hosts other than GitHub + multiple forks #1043
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for endearing-brigadeiros-63f9d0 canceled.
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1043 +/- ##
==========================================
+ Coverage 77.40% 80.72% +3.32%
==========================================
Files 56 63 +7
Lines 2288 2620 +332
Branches 258 310 +52
==========================================
+ Hits 1771 2115 +344
+ Misses 487 458 -29
- Partials 30 47 +17 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
LGTM after an initial scan through :) thanks for your contribution!
Picked up a couple of test failures after merging main - will resolve (and start working on the additional tests needed). |
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.
I went through the approval/rejection flows with a pre-existing repo, and things work well!
There is an issue with backwards compatibility with older, invalid databases from previous versions of GitProxy (unique URL enforcement with repos). This may also cause issues with the other files (pushes, users).
I also tested the Add Repo flow which caused my server to crash, maybe because of something wrong on my end (invalid input maybe?).
This comment was marked as resolved.
This comment was marked as resolved.
I think catching and displaying a simple error message with the invalid entry/entries could be enough - so that the GitProxy administrator can quickly identify the issue and fix it manually. Thankfully, the error seems to occur on backend (db) startup, so end users wouldn't really have the app suddenly blowing up. |
Signed-off-by: Raimund Hook <[email protected]>
…que as its our new primary key
Signed-off-by: Raimund Hook <[email protected]>
…te non-specific db fns
Signed-off-by: Raimund Hook <[email protected]>
Typescript wasn't working on the DB classes due to their dependency imports with require.
…making github fns optional
…file-based DB implementation
…file-based DB implementation
Thank you for fixing the merge conflicts! 🙏🏼 Those were mostly caused by our team's PR... I'll check out your recent updates before the next community meeting. |
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.
The tests look good so far, and test coverage is excellent! 😃 Just wondering if the merge conflicts with main have been resolved correctly as I wasn't able to do the Add Repo flow...
Looks fantastic! This is ready to merge for the v2 release candidates - just waiting on the remaining PRs. |
resolves #950
resolves #511
resolves #66
resolves #1107
resolves #1028
Refactor (api, proxy & UI) to remove the assumption of GitHub as the git repository host and the use of the repository
name
field as the id of the repository (as this prevents git-proxy instances from supporting multiple forks of a project or projects from multiple hosts with the same name).This PR:
name
field in the API with the _id field generated by the database adaptors,names
to be repeated (multiple forks or clashing names from different organisations/repository hosts)organisation/repoName.git
in the proxy URLs with the repository urlbecomes
https://myGitProxyInstance.com:8443/github.com/finos/git-proxy.git
To Do:
(contributed as part of a GitLab CoCreate collaboration with help from @StingRayZA)