-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Repository transfer should be confirmed by the new owner before the transfer actually occurs #5744
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
Conversation
@@ -1444,120 +1444,6 @@ func RepoPath(userName, repoName string) string { | |||
return filepath.Join(UserPath(userName), strings.ToLower(repoName)+".git") | |||
} | |||
|
|||
// TransferOwnership transfers all corresponding setting from old user to new one. |
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.
Should in case anyone is looking at this, it was moved to the newly created repo_transfer.go
file https://github.com/go-gitea/gitea/pull/5744/files#diff-4a00b23928d7e63417b6a39f3052ec23R126
So I have this guy already working fine. I just need to send an email to the potential new owner. Thinking out loud if it makes any sense creating a redirect for the repo after a transfer |
Will try to wrap up the email and tests this weekend |
tested this pull: resiver get no notivication in ui |
and secound test didn't worked:
|
Hmm, I should get rid of the UI notification. It’s not needed actually. Made a mental note to remove it but forgot. There’s no sense to it being in the notification or so I think. GitHub doesn’t do that either. Secondly, there’s a nice case. Will handle it |
@@ -26,7 +26,7 @@ type ( | |||
) | |||
|
|||
var ( | |||
_ base.Notifier = ¬ificationService{} | |||
_ base.Notifier = (*notificationService)(nil) |
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.
unrelated change
pleace resolve conflics :O |
Resolved |
Will get to this over the weekend |
2 years ago.. Damn |
|
Please merge this immediately. The current behaviour makes it look like you have been hacked, which is actually quite terrifying. The best way to move forward would be a user interface element (like a notification) that asks |
@resynth1943 we are all volunteers working on this for free. If you’d like development to go at a pace you prefer you are free to resolve the issues above yourself or pay someone to do it for you. |
@techknowlogick not sure what your problem is, mate. Simply offering a use-case in which this can be abused, and a possible way of implementing it. |
@resynth1943 it can not be merged while it is not finished so you can't really request to merge it immediately, in fact requesting someone to do for free anything is very bad tone |
Thanks for sharing. I'd like to focus on the pull request, though ❤️ Is there a mockup of what the UI looks like in this new rendition? |
just an idear: but we could extend RepoState and add "RepoTransvering" next to Migrating status ... |
I'll fix and finish this one or open a new pull based on this :) |
close since #14792 is here |
@resynth1943 #14792 has a demo video now ... |
Fixes #4743