{"action":"created","issue":{"url":"https://api.github.com/repos/chaoss/grimoirelab-manuscripts/issues/31","repository_url":"https://api.github.com/repos/chaoss/grimoirelab-manuscripts","labels_url":"https://api.github.com/repos/chaoss/grimoirelab-manuscripts/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/chaoss/grimoirelab-manuscripts/issues/31/comments","events_url":"https://api.github.com/repos/chaoss/grimoirelab-manuscripts/issues/31/events","html_url":"https://github.com/chaoss/grimoirelab-manuscripts/issues/31","id":305064761,"number":31,"title":"Error if no project name is specified","user":{"login":"jgbarah","id":1039693,"avatar_url":"https://avatars3.githubusercontent.com/u/1039693?v=4","gravatar_id":"","url":"https://api.github.com/users/jgbarah","html_url":"https://github.com/jgbarah","followers_url":"https://api.github.com/users/jgbarah/followers","following_url":"https://api.github.com/users/jgbarah/following{/other_user}","gists_url":"https://api.github.com/users/jgbarah/gists{/gist_id}","starred_url":"https://api.github.com/users/jgbarah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgbarah/subscriptions","organizations_url":"https://api.github.com/users/jgbarah/orgs","repos_url":"https://api.github.com/users/jgbarah/repos","events_url":"https://api.github.com/users/jgbarah/events{/privacy}","received_events_url":"https://api.github.com/users/jgbarah/received_events","type":"User","site_admin":false},"labels":[{"id":570935683,"url":"https://api.github.com/repos/chaoss/grimoirelab-manuscripts/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":851371141,"url":"https://api.github.com/repos/chaoss/grimoirelab-manuscripts/labels/good%20first%20issue","name":"good first issue","color":"b60205","default":true},{"id":570935684,"url":"https://api.github.com/repos/chaoss/grimoirelab-manuscripts/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-14T08:35:04Z","updated_at":"2018-03-16T19:48:17Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When launching manuscripts with no project name (eg, no `-n` option), there is an error. For example:\r\n\r\n```\r\n$ manuscripts -d /tmp/report -u http://localhost:9200 --data-sources git\r\n2018-03-14 09:31:11,530 Generating the report from 2015-01-01 00:00:00+00:00 to 2018-03-13 23:59:59.999999+00:00\r\n2018-03-14 09:31:11,530 Generating the report data and figs from 2015-01-01 00:00:00+00:00 to 2018-03-13 23:59:59.999999+00:00\r\n2018-03-14 09:31:11,530 Generating Overview\r\n2018-03-14 09:31:11,889 Generating Communication Channels\r\n2018-03-14 09:31:11,890 Generating Detailed Activity by Project\r\n2018-03-14 09:31:11,890 Activity data for: general\r\n2018-03-14 09:31:12,321 Community data for: general\r\n2018-03-14 09:31:12,577 Process data for: general\r\n2018-03-14 09:31:12,577 Data and figs done\r\n2018-03-14 09:31:12,577 Generating PDF report\r\nTraceback (most recent call last):\r\n  File \"/tmp/gl/bin/manuscripts\", line 6, in <module>\r\n    exec(compile(open(__file__).read(), __file__, 'exec'))\r\n  File \"/home/jgb/src/jgbarah-grimoire/grimoirelab-manuscripts/bin/manuscripts\", line 133, in <module>\r\n    report.create()\r\n  File \"./manuscripts/report.py\", line 748, in create\r\n    self.create_pdf()\r\n  File \"./manuscripts/report.py\", line 673, in create_pdf\r\n    project_replace = self.report_name.replace(' ', r'\\ ')\r\nAttributeError: 'NoneType' object has no attribute 'replace'\r\n```\r\n\r\nIt would be much better if a default name is used, so that it doesn't fail if no `-n` argument is used. Given how the project name is now used in the report, I think a good default name would be \"Unnamed\". In the messages written by Manuscripts it should be obvious that the `- n` argument was not used, and that the default \"Unnamed\" project name was used because of that, and how to use `-n` to specify a name."},"comment":{"url":"https://api.github.com/repos/chaoss/grimoirelab-manuscripts/issues/comments/373825693","html_url":"https://github.com/chaoss/grimoirelab-manuscripts/issues/31#issuecomment-373825693","issue_url":"https://api.github.com/repos/chaoss/grimoirelab-manuscripts/issues/31","id":373825693,"user":{"login":"apoorvkhare07","id":26320019,"avatar_url":"https://avatars1.githubusercontent.com/u/26320019?v=4","gravatar_id":"","url":"https://api.github.com/users/apoorvkhare07","html_url":"https://github.com/apoorvkhare07","followers_url":"https://api.github.com/users/apoorvkhare07/followers","following_url":"https://api.github.com/users/apoorvkhare07/following{/other_user}","gists_url":"https://api.github.com/users/apoorvkhare07/gists{/gist_id}","starred_url":"https://api.github.com/users/apoorvkhare07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apoorvkhare07/subscriptions","organizations_url":"https://api.github.com/users/apoorvkhare07/orgs","repos_url":"https://api.github.com/users/apoorvkhare07/repos","events_url":"https://api.github.com/users/apoorvkhare07/events{/privacy}","received_events_url":"https://api.github.com/users/apoorvkhare07/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T19:48:16Z","updated_at":"2018-03-16T19:48:16Z","author_association":"NONE","body":"@varunotelli I am working on it, will be opening a PR soon."}}
{"actor":{"display_login":"apoorvkhare07"}}