Skip to content

OneDev migration: fix broken migration caused by various REST API changes in OneDev 7.8.0 and later #35216

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

DevCharly
Copy link

OneDev migration: fix broken migration caused by various REST API changes in OneDev 7.8.0 and later

  • in REST urls use ~api instead of api
  • check minimum required OneDev version before starting migration
  • required OneDev version is now 12.0.1
    (older versions do not offer necessary API: https://code.onedev.io/onedev/server/~issues/2491)
  • support migrating OneDev subprojects (e.g. http:/onedev.host/projectA/subProjectB)
  • set milestone closed state if milestone is closed in OneDev
  • moved memory allocation for milestone JSON decoding into for loop (which gets 100 milestones per iteration) to fix wrong due dates when having more than 100 milestones

…nges in OneDev 7.8.0 and later

- in REST urls use `~api` instead of `api`
- check minimum required OneDev version before starting migration
- required OneDev version is now 12.0.1
  (older versions do not offer necessary API: https://code.onedev.io/onedev/server/~issues/2491)
- support migrating OneDev subprojects (e.g. http:/onedev.host/projectA/subProjectB)
… into for loop (which gets 100 milestones per iteration) to fix wrong due dates when having more than 100 milestones
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 5, 2025
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Aug 5, 2025
@lunny lunny added this to the 1.25.0 milestone Aug 6, 2025
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm/need 1 This PR needs approval from one additional maintainer to be merged. modifies/go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants