ho-dev / HattrickOrganizer

Assistant for Hattrick online football manager
https://ho-dev.github.io/HattrickOrganizer/
GNU Lesser General Public License v3.0
195 stars 79 forks source link

[FEATURE] Move repository to https://github.com/ho-dev #1736

Closed wsbrenk closed 1 year ago

wsbrenk commented 1 year ago

Todo:

what is missing?

wsbrenk commented 1 year ago

@akasolace , @tychobrailleur i think i need some help to do this.

tychobrailleur commented 1 year ago

There are other things like:

wsbrenk commented 1 year ago

Thanks @tychobrailleur : added your points to task list.

wsbrenk commented 1 year ago

@akasolace do you agree with first list item?

wsbrenk commented 1 year ago

As an alternative to point 1, we could create a new GitHub organization (hattrick-organizer)

akasolace commented 1 year ago

Done

wsbrenk commented 1 year ago

On the new repo we should enhance the download feature: #1753. @tychobrailleur: What do you think

tychobrailleur commented 1 year ago

Just pushed the master branch there: https://github.com/ho-dev/HO

Need to see how to get all other branches, and the issues from repo.

wsbrenk commented 1 year ago

great!

concerning branches - i think only the release branches are useful issues are very useful and the actions

tychobrailleur commented 1 year ago

Awesome, will look into this tomorrow!

On Sat, 18 Mar 2023, 21:36 wsbrenk, @.***> wrote:

great!

concerning branches - i think only the release branches are useful issues are very useful and the actions

— Reply to this email directly, view it on GitHub https://github.com/akasolace/HO/issues/1736#issuecomment-1475000641, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA343MWQLKEEPZ2DE5FAQTW4YTEZANCNFSM6AAAAAASXEPCGQ . You are receiving this because you were assigned.Message ID: @.***>

wsbrenk commented 1 year ago

I just remember: In the release notes and the change logs I have included links to the milestones (Detailed changelog). It would be great if we could set them up in the new repo as well.

tychobrailleur commented 1 year ago

great!

concerning branches - i think only the release branches are useful issues are very useful and the actions

For issues it looks like they can only be “transferred:” https://docs.github.com/en/issues/tracking-your-work-with-issues/transferring-an-issue-to-another-repository

Not sure if we want to do this now, or wait a bit?

wsbrenk commented 1 year ago

that sounds very tedious, so we should look for better solutions (or program them ourselves;-)

wsbrenk commented 1 year ago

@tychobrailleur transferring a repository looks like the most easily way.

As far as i understand this, we have to create a copy of the repo at its origin place (akasolace) that will hold all the stuff that is needed to lead the users to the new place.

tychobrailleur commented 1 year ago

I have migrated the Wiki pages too: https://github.com/ho-dev/HO/wiki

akasolace commented 1 year ago

@wsbrenk @tychobrailleur please let me know when the transfer is over I will then archive the HO repository on my account ....

tychobrailleur commented 1 year ago

Sure, just need to figure out to transfer issues. I tried a script, but it failed, and creates everything under my name

On Sun, 19 Mar 2023, 14:28 akasolace, @.***> wrote:

@wsbrenk https://github.com/wsbrenk @tychobrailleur https://github.com/tychobrailleur please let me know when the transfer is over I will then archive the HO repository on my account ....

— Reply to this email directly, view it on GitHub https://github.com/akasolace/HO/issues/1736#issuecomment-1475276659, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA343LYGQZSAKSY6BMLHZ3W44JY3ANCNFSM6AAAAAASXEPCGQ . You are receiving this because you were mentioned.Message ID: @.***>

akasolace commented 1 year ago

I did it once using pyGithub, I will try to find it ....

akasolace commented 1 year ago

Actually no what I had to do was to duplicates issues but simple transfer is supported directly by the API. Strange that you are running into issues ... here something that can help

https://jloh.co/posts/bulk-migrate-issues-github-cli/

wsbrenk commented 1 year ago

please let me know when the transfer is over I will then archive the HO repository on my account ....

Hi @akasolace, we had planned to set up your page as a redirection to the new page for a while. at least until most users have moved to the new site via HO update.

akasolace commented 1 year ago

I guess it can still be archived and serve that purpose but you will let me know !

tychobrailleur commented 1 year ago

Actually no what I had to do was to duplicates issues but simple transfer is supported directly by the API. Strange that you are running into issues ... here something that can help

https://jloh.co/posts/bulk-migrate-issues-github-cli/

Troubleshooting the python I was using, this seems to be caused by throttling:

"You have exceeded a secondary rate limit and have been temporarily blocked from content creation. Please retry your request again later."

I'll have to update the script to include the retry after the rest period.

tychobrailleur commented 1 year ago

@tychobrailleur transferring a repository looks like the most easily way.

Yeah, I think you're right. Copying issues is just not workable with rate limits, and the ownership of issues and comments would be all me, which is not ideal.

Maybe we should just bite the bullet and do it, and then deal with the resulting issues?

As far as i understand this, we have to create a copy of the repo at its origin place (akasolace) that will hold all the stuff that is needed to lead the users to the new place.

An empty repo with just a link in the README to the new repo, is that it?

wsbrenk commented 1 year ago

@tychobrailleur i fear we'll need something more. At minimum all the tags (dev, beta, tag_stable) which are needed by the existing HOs in the world to download updates.

The newest HO version (HO7 or HO8) we should also place in origin repo, with links to the updates in the new repo.

wsbrenk commented 1 year ago

maybe this is possible by redirecting those tags (links). But i have no idea how that works.

tychobrailleur commented 1 year ago
    public VersionInfo getLatestStableVersion() {
        return getVersion("https://github.com/akasolace/HO/releases/download/tag_stable/version.properties");
    }

    public VersionInfo getLatestVersion() {
        return getVersion("https://github.com/akasolace/HO/releases/download/dev/version.properties");
    }

    public VersionInfo getLatestBetaVersion() {
        return getVersion("https://github.com/akasolace/HO/releases/download/beta/version.properties");
    }

One way we could approach this is:

I am sick at the moment, so my brains are not working very well, so there may very well be gaps in that reasoning, but these are my thoughts right now.

wsbrenk commented 1 year ago

@tychobrailleur Get well soon!!!

wsbrenk commented 1 year ago

@tychobrailleur how to go on further with this issue?

if there are no further bug reports, i would like to release stable 7.1 in about 2 weeks. then we could move to the new place.

in this repository (akasolace) i would like to release a stable 7.2 with modified update links to the new place. what do you think about this plan?

tychobrailleur commented 1 year ago

in this repository (akasolace) i would like to release a stable 7.2 with modified update links to the new place. what do you think about this plan?

Yes, that makes sense.

wsbrenk commented 1 year ago

as mentioned in #1849, we could do the move of this repository to the new place now (ho-dev if that repo is still a good choice as move target or new repo: hattrick-organizer)

After the move, we should recreate in akasolace/HO all the stuff that is required to lead old HO versions to the new place

wsbrenk commented 1 year ago

@tychobrailleur created a new github organization as possible target for the move

tychobrailleur commented 1 year ago

@tychobrailleur created a new github organization as possible target for the move

Great! You didn't like https://github.com/ho-dev/ ? :-)

wsbrenk commented 1 year ago

Great! You didn't like https://github.com/ho-dev/ ? :-)

I think we should retry a transfer of the repository. If we invoke the github transfer i would hope that issues and pull request will be included.

I don't care if it's called ho-dev or hattrick organizer. So feel free if you will remove the ho-dev repo and restart a transfer or use the new organization. I don't know if we can use anything from the other things in ho-dev?

wsbrenk commented 1 year ago

@tychobrailleur do you have admin rights on akasolace/ho. if so, you could invoke the transfer.

i don't see the settings option (anymore).

tychobrailleur commented 1 year ago

@tychobrailleur do you have admin rights on akasolace/ho. if so, you could invoke the transfer.

I don't, that's why I had to push code manually to ho-dev

wsbrenk commented 1 year ago

then we should ask @akasolace to transfer the ho repository.

akasolace commented 1 year ago

Hello, I will have a look now to move the code to ho-dev

akasolace commented 1 year ago

ok, so it seems it worked !

tychobrailleur commented 1 year ago

ok, so it seems it worked !

Wow, it also seems to have moved stars and forks, that's amazing! Thanks a lot for supporting, @akasolace

akasolace commented 1 year ago

ok, so it seems it worked !

Wow, it also seems to have moved stars and forks, that's amazing! Thanks a lot for supporting, @akasolace

I just had to push a button :/) Thank you @tychobrailleur and @wsbrenk for keeping the project alive !

wsbrenk commented 1 year ago

@tychobrailleur the old beta finds the new version. redirection is working perfectly.

image