soniav780 / support-tools

Automatically exported from code.google.com/p/support-tools
Apache License 2.0
0 stars 0 forks source link

Fix for issue 92 breaks issues export for BitBucket #93

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Generate the Google Takeout JSON file
2. Follow the export instructions for BitBucket and export issues for a project 
with non-consecutive issues Ids

What is the expected output?

Expected all issues to be converted.

What do you see instead?

Instead the script breaks with the following trace:

Issue: 3/27 -> Comment: 2/2        Traceback (most recent call last):
  File "C:\googlecode-issues-exporter\bitbucket_issue_converter.py", line 234, in <module>
    main(sys.argv)
  File "C:\googlecode-issues-exporter\bitbucket_issue_converter.py", line 230, in main
    parsed_args.user_file_path, parsed_args.default_issue_kind)
  File "C:\googlecode-issues-exporter\bitbucket_issue_converter.py", line 189, in ExportIssues
    issue_exporter.Start()
  File "C:\googlecode-issues-exporter\issues.py", line 665, in Start
    last_issue_id = self._CreateIssue(DELETED_ISSUE_PLACEHOLDER)
  File "C:\googlecode-issues-exporter\issues.py", line 586, in _CreateIssue
    return self._issue_service.CreateIssue(googlecode_issue)
  File "C:\googlecode-issues-exporter\bitbucket_issue_converter.py", line 118, in CreateIssue
    "content_updated_on": googlecode_issue.GetContentUpdatedOn(),
  File "C:\googlecode-issues-exporter\issues.py", line 136, in GetContentUpdatedOn
    return self._issue["updated"]
KeyError: 'updated'

Original issue reported on code.google.com by azizatif on 1 Jun 2015 at 6:35

GoogleCodeExporter commented 8 years ago
I should add that this was tested with revision 779ff66c1b98, which I realized 
later was behind since my last fetch and update. After sync'ing up with 
revision f381663cb79a, the error no longer appears.

Original comment by azizatif on 1 Jun 2015 at 6:52

GoogleCodeExporter commented 8 years ago
Good to hear. Please reactivate if you have any problems.

Original comment by chrsm...@google.com on 1 Jun 2015 at 10:43