{"action":"created","comment":{"url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/pulls/comments/93869186","pull_request_review_id":14402785,"id":93869186,"diff_hunk":"@@ -0,0 +1,52 @@\n+import { Component, OnInit } from '@angular/core';\n+import { CategoriesService } from '../../shared/service/categories.service';\n+import { ActivatedRoute } from '@angular/router';\n+import { FormGroup, FormBuilder, Validators } from '@angular/forms';\n+import { TranslateService } from 'ng2-translate';\n+\n+@Component({\n+  selector: 'add-routes',\n+  styleUrls: [ './add-routes.style.scss' ],\n+  templateUrl: './add-routes.template.html'\n+})\n+export class AddRoutesCategories implements OnInit {\n+  public categoriesRoutes: any;\n+  public error = '';\n+  public routesForm: FormGroup;\n+  constructor(private categoriesService: CategoriesService,\n+              private routeActiv: ActivatedRoute,\n+              private formBuilder: FormBuilder,\n+              private translate: TranslateService) {\n+    this.translate.setDefaultLang('en');\n+    this.translate.use('en');\n+    this.routesForm = this.formBuilder.group({\n+      slug: [ '', Validators.required ],\n+      primary: false\n+    });\n+  }\n+  ngOnInit(): void {\n+    this.getRoutes();\n+  }\n+  public getRoutes() {\n+    this.categoriesService.getCategoriesRoutes(this.routeActiv.snapshot.params['id'])\n+      .subscribe(res => {\n+        this.categoriesRoutes = res;\n+      });\n+  }\n+  public addRoutes() {\n+    if (!this.routesForm.valid) return;\n+    this.error = '';\n+    this.categoriesService","path":"src/app/categories/add-routes/add-routes.component.ts","position":39,"original_position":39,"commit_id":"3611b7f10033e83af78210ea459b5c3f52caf856","original_commit_id":"3611b7f10033e83af78210ea459b5c3f52caf856","user":{"login":"zaikin-andrew","id":7475399,"avatar_url":"https://avatars.githubusercontent.com/u/7475399?v=3","gravatar_id":"","url":"https://api.github.com/users/zaikin-andrew","html_url":"https://github.com/zaikin-andrew","followers_url":"https://api.github.com/users/zaikin-andrew/followers","following_url":"https://api.github.com/users/zaikin-andrew/following{/other_user}","gists_url":"https://api.github.com/users/zaikin-andrew/gists{/gist_id}","starred_url":"https://api.github.com/users/zaikin-andrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaikin-andrew/subscriptions","organizations_url":"https://api.github.com/users/zaikin-andrew/orgs","repos_url":"https://api.github.com/users/zaikin-andrew/repos","events_url":"https://api.github.com/users/zaikin-andrew/events{/privacy}","received_events_url":"https://api.github.com/users/zaikin-andrew/received_events","type":"User","site_admin":false},"body":"What about .forkJoin()","created_at":"2016-12-26T14:06:09Z","updated_at":"2016-12-26T14:14:58Z","html_url":"https://github.com/BestMood-Tech/Reklambutiken/pull/21#discussion_r93869186","pull_request_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/pulls/comments/93869186"},"html":{"href":"https://github.com/BestMood-Tech/Reklambutiken/pull/21#discussion_r93869186"},"pull_request":{"href":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/pulls/21","id":99329328,"html_url":"https://github.com/BestMood-Tech/Reklambutiken/pull/21","diff_url":"https://github.com/BestMood-Tech/Reklambutiken/pull/21.diff","patch_url":"https://github.com/BestMood-Tech/Reklambutiken/pull/21.patch","issue_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/issues/21","number":21,"state":"open","locked":false,"title":"Categories Routes ","user":{"login":"user-one-myteam","id":22074969,"avatar_url":"https://avatars.githubusercontent.com/u/22074969?v=3","gravatar_id":"","url":"https://api.github.com/users/user-one-myteam","html_url":"https://github.com/user-one-myteam","followers_url":"https://api.github.com/users/user-one-myteam/followers","following_url":"https://api.github.com/users/user-one-myteam/following{/other_user}","gists_url":"https://api.github.com/users/user-one-myteam/gists{/gist_id}","starred_url":"https://api.github.com/users/user-one-myteam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/user-one-myteam/subscriptions","organizations_url":"https://api.github.com/users/user-one-myteam/orgs","repos_url":"https://api.github.com/users/user-one-myteam/repos","events_url":"https://api.github.com/users/user-one-myteam/events{/privacy}","received_events_url":"https://api.github.com/users/user-one-myteam/received_events","type":"User","site_admin":false},"body":"#8 (feat) adding component add-routes, adding three method in categories service","created_at":"2016-12-25T20:57:42Z","updated_at":"2016-12-26T14:14:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f97b63ef4bf204acbc55ef1b61e7a58f5df83982","assignee":{"login":"zaikin-andrew","id":7475399,"avatar_url":"https://avatars.githubusercontent.com/u/7475399?v=3","gravatar_id":"","url":"https://api.github.com/users/zaikin-andrew","html_url":"https://github.com/zaikin-andrew","followers_url":"https://api.github.com/users/zaikin-andrew/followers","following_url":"https://api.github.com/users/zaikin-andrew/following{/other_user}","gists_url":"https://api.github.com/users/zaikin-andrew/gists{/gist_id}","starred_url":"https://api.github.com/users/zaikin-andrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaikin-andrew/subscriptions","organizations_url":"https://api.github.com/users/zaikin-andrew/orgs","repos_url":"https://api.github.com/users/zaikin-andrew/repos","events_url":"https://api.github.com/users/zaikin-andrew/events{/privacy}","received_events_url":"https://api.github.com/users/zaikin-andrew/received_events","type":"User","site_admin":false},"assignees":[{"login":"zaikin-andrew","id":7475399,"avatar_url":"https://avatars.githubusercontent.com/u/7475399?v=3","gravatar_id":"","url":"https://api.github.com/users/zaikin-andrew","html_url":"https://github.com/zaikin-andrew","followers_url":"https://api.github.com/users/zaikin-andrew/followers","following_url":"https://api.github.com/users/zaikin-andrew/following{/other_user}","gists_url":"https://api.github.com/users/zaikin-andrew/gists{/gist_id}","starred_url":"https://api.github.com/users/zaikin-andrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaikin-andrew/subscriptions","organizations_url":"https://api.github.com/users/zaikin-andrew/orgs","repos_url":"https://api.github.com/users/zaikin-andrew/repos","events_url":"https://api.github.com/users/zaikin-andrew/events{/privacy}","received_events_url":"https://api.github.com/users/zaikin-andrew/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/milestones/2","html_url":"https://github.com/BestMood-Tech/Reklambutiken/milestone/2","labels_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/milestones/2/labels","id":2211886,"number":2,"title":"M1","description":"CRUD operations for attributes, categories, category routes.\r\nTranslations.","creator":{"login":"zaikin-andrew","id":7475399,"avatar_url":"https://avatars.githubusercontent.com/u/7475399?v=3","gravatar_id":"","url":"https://api.github.com/users/zaikin-andrew","html_url":"https://github.com/zaikin-andrew","followers_url":"https://api.github.com/users/zaikin-andrew/followers","following_url":"https://api.github.com/users/zaikin-andrew/following{/other_user}","gists_url":"https://api.github.com/users/zaikin-andrew/gists{/gist_id}","starred_url":"https://api.github.com/users/zaikin-andrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaikin-andrew/subscriptions","organizations_url":"https://api.github.com/users/zaikin-andrew/orgs","repos_url":"https://api.github.com/users/zaikin-andrew/repos","events_url":"https://api.github.com/users/zaikin-andrew/events{/privacy}","received_events_url":"https://api.github.com/users/zaikin-andrew/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":3,"state":"open","created_at":"2016-12-22T11:37:52Z","updated_at":"2016-12-25T20:57:42Z","due_on":"2016-12-30T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/pulls/21/commits","review_comments_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/pulls/21/comments","review_comment_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/issues/21/comments","statuses_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/statuses/3611b7f10033e83af78210ea459b5c3f52caf856","head":{"label":"BestMood-Tech:M1/CategoriesAddRoutes","ref":"M1/CategoriesAddRoutes","sha":"3611b7f10033e83af78210ea459b5c3f52caf856","user":{"login":"BestMood-Tech","id":23728293,"avatar_url":"https://avatars.githubusercontent.com/u/23728293?v=3","gravatar_id":"","url":"https://api.github.com/users/BestMood-Tech","html_url":"https://github.com/BestMood-Tech","followers_url":"https://api.github.com/users/BestMood-Tech/followers","following_url":"https://api.github.com/users/BestMood-Tech/following{/other_user}","gists_url":"https://api.github.com/users/BestMood-Tech/gists{/gist_id}","starred_url":"https://api.github.com/users/BestMood-Tech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BestMood-Tech/subscriptions","organizations_url":"https://api.github.com/users/BestMood-Tech/orgs","repos_url":"https://api.github.com/users/BestMood-Tech/repos","events_url":"https://api.github.com/users/BestMood-Tech/events{/privacy}","received_events_url":"https://api.github.com/users/BestMood-Tech/received_events","type":"Organization","site_admin":false},"repo":{"id":77035818,"name":"Reklambutiken","full_name":"BestMood-Tech/Reklambutiken","owner":{"login":"BestMood-Tech","id":23728293,"avatar_url":"https://avatars.githubusercontent.com/u/23728293?v=3","gravatar_id":"","url":"https://api.github.com/users/BestMood-Tech","html_url":"https://github.com/BestMood-Tech","followers_url":"https://api.github.com/users/BestMood-Tech/followers","following_url":"https://api.github.com/users/BestMood-Tech/following{/other_user}","gists_url":"https://api.github.com/users/BestMood-Tech/gists{/gist_id}","starred_url":"https://api.github.com/users/BestMood-Tech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BestMood-Tech/subscriptions","organizations_url":"https://api.github.com/users/BestMood-Tech/orgs","repos_url":"https://api.github.com/users/BestMood-Tech/repos","events_url":"https://api.github.com/users/BestMood-Tech/events{/privacy}","received_events_url":"https://api.github.com/users/BestMood-Tech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BestMood-Tech/Reklambutiken","description":"Trial task","fork":false,"url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken","forks_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/forks","keys_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/teams","hooks_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/hooks","issue_events_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/issues/events{/number}","events_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/events","assignees_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/assignees{/user}","branches_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/branches{/branch}","tags_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/tags","blobs_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/git/refs{/sha}","trees_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/statuses/{sha}","languages_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/languages","stargazers_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/stargazers","contributors_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/contributors","subscribers_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/subscribers","subscription_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/subscription","commits_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/commits{/sha}","git_commits_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/git/commits{/sha}","comments_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/comments{/number}","issue_comment_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/issues/comments{/number}","contents_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/contents/{+path}","compare_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/merges","archive_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/downloads","issues_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/issues{/number}","pulls_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/pulls{/number}","milestones_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/milestones{/number}","notifications_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/labels{/name}","releases_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/releases{/id}","deployments_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/deployments","created_at":"2016-12-21T09:07:43Z","updated_at":"2016-12-22T11:10:34Z","pushed_at":"2016-12-26T10:49:17Z","git_url":"git://github.com/BestMood-Tech/Reklambutiken.git","ssh_url":"git@github.com:BestMood-Tech/Reklambutiken.git","clone_url":"https://github.com/BestMood-Tech/Reklambutiken.git","svn_url":"https://github.com/BestMood-Tech/Reklambutiken","homepage":null,"size":1646,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"base":{"label":"BestMood-Tech:dev","ref":"dev","sha":"af77250bf27e54a9b0eef714fc2a72b2c8a7eb68","user":{"login":"BestMood-Tech","id":23728293,"avatar_url":"https://avatars.githubusercontent.com/u/23728293?v=3","gravatar_id":"","url":"https://api.github.com/users/BestMood-Tech","html_url":"https://github.com/BestMood-Tech","followers_url":"https://api.github.com/users/BestMood-Tech/followers","following_url":"https://api.github.com/users/BestMood-Tech/following{/other_user}","gists_url":"https://api.github.com/users/BestMood-Tech/gists{/gist_id}","starred_url":"https://api.github.com/users/BestMood-Tech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BestMood-Tech/subscriptions","organizations_url":"https://api.github.com/users/BestMood-Tech/orgs","repos_url":"https://api.github.com/users/BestMood-Tech/repos","events_url":"https://api.github.com/users/BestMood-Tech/events{/privacy}","received_events_url":"https://api.github.com/users/BestMood-Tech/received_events","type":"Organization","site_admin":false},"repo":{"id":77035818,"name":"Reklambutiken","full_name":"BestMood-Tech/Reklambutiken","owner":{"login":"BestMood-Tech","id":23728293,"avatar_url":"https://avatars.githubusercontent.com/u/23728293?v=3","gravatar_id":"","url":"https://api.github.com/users/BestMood-Tech","html_url":"https://github.com/BestMood-Tech","followers_url":"https://api.github.com/users/BestMood-Tech/followers","following_url":"https://api.github.com/users/BestMood-Tech/following{/other_user}","gists_url":"https://api.github.com/users/BestMood-Tech/gists{/gist_id}","starred_url":"https://api.github.com/users/BestMood-Tech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BestMood-Tech/subscriptions","organizations_url":"https://api.github.com/users/BestMood-Tech/orgs","repos_url":"https://api.github.com/users/BestMood-Tech/repos","events_url":"https://api.github.com/users/BestMood-Tech/events{/privacy}","received_events_url":"https://api.github.com/users/BestMood-Tech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BestMood-Tech/Reklambutiken","description":"Trial task","fork":false,"url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken","forks_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/forks","keys_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/teams","hooks_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/hooks","issue_events_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/issues/events{/number}","events_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/events","assignees_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/assignees{/user}","branches_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/branches{/branch}","tags_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/tags","blobs_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/git/refs{/sha}","trees_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/statuses/{sha}","languages_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/languages","stargazers_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/stargazers","contributors_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/contributors","subscribers_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/subscribers","subscription_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/subscription","commits_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/commits{/sha}","git_commits_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/git/commits{/sha}","comments_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/comments{/number}","issue_comment_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/issues/comments{/number}","contents_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/contents/{+path}","compare_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/merges","archive_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/downloads","issues_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/issues{/number}","pulls_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/pulls{/number}","milestones_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/milestones{/number}","notifications_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/labels{/name}","releases_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/releases{/id}","deployments_url":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/deployments","created_at":"2016-12-21T09:07:43Z","updated_at":"2016-12-22T11:10:34Z","pushed_at":"2016-12-26T10:49:17Z","git_url":"git://github.com/BestMood-Tech/Reklambutiken.git","ssh_url":"git@github.com:BestMood-Tech/Reklambutiken.git","clone_url":"https://github.com/BestMood-Tech/Reklambutiken.git","svn_url":"https://github.com/BestMood-Tech/Reklambutiken","homepage":null,"size":1646,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/pulls/21"},"html":{"href":"https://github.com/BestMood-Tech/Reklambutiken/pull/21"},"issue":{"href":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/issues/21"},"comments":{"href":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/BestMood-Tech/Reklambutiken/statuses/3611b7f10033e83af78210ea459b5c3f52caf856"}}}}
{"actor":{"display_login":"zaikin-andrew"}}