Git Product home page Git Product logo

github-migrate-trac-tickets's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

github-migrate-trac-tickets's Issues

Migration does not continue if it was interrupted

Hi!

First, thanks a lot for this project! We are using it to migrate from trac to github and it seems to work quite well! :-)

Although, during a migration github returned a 502 and there is no way to continue the migration. And seems we didn't find any way to delete the issues (as you say in the README), we have to delete and re-create the repository.

Right now I'm running it again in the re-created repository and hope it will finish this time. Just in case, when it throw a 502 this was the output:

Traceback (most recent call last):
  File "./trac-tickets-to-gh.py", line 154, in <module>
    gh_issue = github.issues(data=issue)
  File "./github.py", line 49, in issues
    return self.access(path, query=query, data=data)
  File "./github.py", line 38, in access
    raise RuntimeError("Error on url=%s e=%s" % (url, e))
RuntimeError: Error on url=https://api.github.com/repos/<org>/<repo>/issues e=HTTP Error 502: Bad Gateway

(I've just changed the path to the files and the organization in the URL)

When I try to re-run with an incomplete migration, this is the output:

Traceback (most recent call last):
  File "./trac-tickets-to-gh.py", line 124, in <module>
    gh_milestone = github.milestones(data=milestone)
  File "./github.py", line 70, in milestones
    return self.access('milestones', query=query, data=data)
  File "./github.py", line 38, in access
    raise RuntimeError("Error on url=%s e=%s" % (url, e))
RuntimeError: Error on url=https://api.github.com/repos/<org>/<repo>/milestones e=HTTP Error 422: Unprocessable Entity

It will be nice if a migration could be resumed, although I don't know if this change is worthless. For big trac this might be useful quite useful, though :-)

Thanks a lot,
Rodrigo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.