Skip to content
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

Imported Closed Issues Aren't Closed In GitHub #59

Open
envisionnw opened this issue Mar 21, 2017 · 0 comments
Open

Imported Closed Issues Aren't Closed In GitHub #59

envisionnw opened this issue Mar 21, 2017 · 0 comments

Comments

@envisionnw
Copy link

Likely related to #35 , however while transferred issues are identified as [CLOSED] they are not "closed" in GitHub and appear when filtering "issues:open" and vice versa for open issues. This may be a coincidence but the # of open issues imported to destination = # of closed issues in source (& vice versa).

Milestones completed in source were incomplete in destination.

Milestone issues are tagged as for a specific milestone, but looking via the milestone shows no issues.

Started out with 66 issues with milestones & comments in various states (closed/open) and ran

>>> import runpy
>>> import sys
>>> sys.argv = ["","-i","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94"]

to start.
First issues (30?) were copied over with the following traceback to request.py [file specific tracebacks removed]:

   raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<pyshell#5>", line 1, in <module>
    runpy.run_path('gh-issues-import.py', run_name='__main__')
  File "X:\DevApps\Python33\lib\runpy.py", line 231, in run_path
    mod_loader, pkg_name)
  File "X:\DevApps\Python33\lib\runpy.py", line 83, in _run_module_code
    mod_name, mod_fname, mod_loader, pkg_name)
  File "X:\DevApps\Python33\lib\runpy.py", line 73, in _run_code
    exec(code, run_globals)
  File "gh-issues-import.py", line 445, in <module>
    import_issues(issues)
  File "gh-issues-import.py", line 410, in import_issues
    result_comments = import_comments(issue['comments'], result_issue['number'])
  File "gh-issues-import.py", line 295, in import_comments
    result_comment = send_request('target', "issues/%s/comments" % issue_number, comment)
  File "gh-issues-import.py", line 215, in send_request
    sys.exit(http_error_messages[error.code])
SystemExit: ERROR: There was a problem during authentication.
Double check that your username and password are correct, and that you have permission to read from or write to the specified repositories.

So I attempted to chunk the remaining issues, yielding portions of success (copied issues/comments) but unfortunately not everything migrating as expected.

Great script with some tweaks it will be even better. Thanks!

@rosscado rosscado mentioned this issue Jun 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant