{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8208","repository_url":"https://api.github.com/repos/jhipster/generator-jhipster","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8208/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8208/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8208/events","html_url":"https://github.com/jhipster/generator-jhipster/pull/8208","id":356554292,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyNzg2NDI1","number":8208,"title":"Prevent sending insight stats when running unit tests","user":{"login":"PierreBesson","id":513471,"node_id":"MDQ6VXNlcjUxMzQ3MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/513471?v=4","gravatar_id":"","url":"https://api.github.com/users/PierreBesson","html_url":"https://github.com/PierreBesson","followers_url":"https://api.github.com/users/PierreBesson/followers","following_url":"https://api.github.com/users/PierreBesson/following{/other_user}","gists_url":"https://api.github.com/users/PierreBesson/gists{/gist_id}","starred_url":"https://api.github.com/users/PierreBesson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PierreBesson/subscriptions","organizations_url":"https://api.github.com/users/PierreBesson/orgs","repos_url":"https://api.github.com/users/PierreBesson/repos","events_url":"https://api.github.com/users/PierreBesson/events{/privacy}","received_events_url":"https://api.github.com/users/PierreBesson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-03T16:01:59Z","updated_at":"2018-09-03T16:08:12Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/pulls/8208","html_url":"https://github.com/jhipster/generator-jhipster/pull/8208","diff_url":"https://github.com/jhipster/generator-jhipster/pull/8208.diff","patch_url":"https://github.com/jhipster/generator-jhipster/pull/8208.patch"},"body":"I noticed strange patterns when looking at the graphs. They looked like they are produced by an automated system. Look how openshift and k8s stats follow the exact same trend !\r\n\r\n<img width=\"926\" alt=\"screen shot 2018-09-03 at 17 56 48\" src=\"https://user-images.githubusercontent.com/513471/44995300-c6d1c880-afa2-11e8-8662-cf5da3d83a15.png\">\r\n\r\nIt seems the --no-insight option is correctly set for Travis builds, however after adding some log in the analytics code, I noticed that it's our unit tests that are causing the issue.\r\n\r\n<img width=\"492\" alt=\"screen shot 2018-08-30 at 18 15 45\" src=\"https://user-images.githubusercontent.com/513471/44995418-3cd62f80-afa3-11e8-8445-0e1a39fe78f9.png\">\r\n\r\nThe solution is to pass the --no-insight flag to npm test as well.\r\n"},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/418153456","html_url":"https://github.com/jhipster/generator-jhipster/pull/8208#issuecomment-418153456","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8208","id":418153456,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODE1MzQ1Ng==","user":{"login":"jdubois","id":316835,"node_id":"MDQ6VXNlcjMxNjgzNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/316835?v=4","gravatar_id":"","url":"https://api.github.com/users/jdubois","html_url":"https://github.com/jdubois","followers_url":"https://api.github.com/users/jdubois/followers","following_url":"https://api.github.com/users/jdubois/following{/other_user}","gists_url":"https://api.github.com/users/jdubois/gists{/gist_id}","starred_url":"https://api.github.com/users/jdubois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdubois/subscriptions","organizations_url":"https://api.github.com/users/jdubois/orgs","repos_url":"https://api.github.com/users/jdubois/repos","events_url":"https://api.github.com/users/jdubois/events{/privacy}","received_events_url":"https://api.github.com/users/jdubois/received_events","type":"User","site_admin":false},"created_at":"2018-09-03T16:08:12Z","updated_at":"2018-09-03T16:08:12Z","author_association":"MEMBER","body":"Oh indeed! Thanks a lot "}}
{"actor":{"display_login":"jdubois"}}