{"action":"created","comment":{"url":"https://api.github.com/repos/advox/training_gk/pulls/comments/169915614","pull_request_review_id":98517051,"id":169915614,"diff_hunk":"@@ -0,0 +1,86 @@\n+<?php\n+\n+namespace TC\\Banner\\Ui\\Component\\Listing\\Column\\Banner;\n+\n+use Magento\\Framework\\UrlInterface;\n+use Magento\\Framework\\View\\Element\\UiComponent\\ContextInterface;\n+use Magento\\Framework\\View\\Element\\UiComponentFactory;\n+use Magento\\Ui\\Component\\Listing\\Columns\\Column;\n+\n+class BlockActions extends Column\n+{\n+\n+    /**\n+     * Url path\n+     */\n+    const URL_PATH_EDIT = 'banner/banner/edit';\n+    const URL_PATH_DELETE = 'banner/banner/delete';\n+\n+    /**\n+     * @var UrlInterface\n+     */\n+    protected $urlBuilder;\n+\n+    /**\n+     * Constructor\n+     *\n+     * @param ContextInterface $context\n+     * @param UiComponentFactory $uiComponentFactory\n+     * @param UrlInterface $urlBuilder\n+     * @param array $components\n+     * @param array $data\n+     */\n+    public function __construct(\n+        ContextInterface $context,\n+        UiComponentFactory $uiComponentFactory,\n+        UrlInterface $urlBuilder,\n+        array $components = [],\n+        array $data = []\n+    )\n+    {\n+        $this->urlBuilder = $urlBuilder;\n+        parent::__construct($context, $uiComponentFactory, $components, $data);\n+    }\n+\n+    /**\n+     * Prepare Data Source\n+     *\n+     * @param array $dataSource\n+     * @return array\n+     */\n+    public function prepareDataSource(array $dataSource)\n+    {\n+        if (isset($dataSource['data']['items'])) {\n+            foreach ($dataSource['data']['items'] as & $item) {\n+                if (isset($item['id'])) {\n+                    $item[$this->getData('name')] = [\n+                        'edit' => [\n+                            'href' => $this->urlBuilder->getUrl(\n+                                    static::URL_PATH_EDIT, [\n+                                'id' => $item['id'],\n+                                'title' => $item['title'],\n+                                    ]\n+                            ),\n+                            'label' => __('Edit')\n+                        ],\n+                        'delete' => [\n+                            'href' => $this->urlBuilder->getUrl(\n+                                    static::URL_PATH_DELETE, [\n+                                'id' => $item['id']\n+                                    ]","path":"app/code/TC/Banner/Ui/Component/Listing/Column/Banner/BlockActions.php","position":70,"original_position":70,"commit_id":"96b5f62a84f2aa2e2ad348c6ffd3b16b7d8e13a6","original_commit_id":"96b5f62a84f2aa2e2ad348c6ffd3b16b7d8e13a6","user":{"login":"mbozek","id":2010593,"avatar_url":"https://avatars2.githubusercontent.com/u/2010593?v=4","gravatar_id":"","url":"https://api.github.com/users/mbozek","html_url":"https://github.com/mbozek","followers_url":"https://api.github.com/users/mbozek/followers","following_url":"https://api.github.com/users/mbozek/following{/other_user}","gists_url":"https://api.github.com/users/mbozek/gists{/gist_id}","starred_url":"https://api.github.com/users/mbozek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbozek/subscriptions","organizations_url":"https://api.github.com/users/mbozek/orgs","repos_url":"https://api.github.com/users/mbozek/repos","events_url":"https://api.github.com/users/mbozek/events{/privacy}","received_events_url":"https://api.github.com/users/mbozek/received_events","type":"User","site_admin":false},"body":"tu trochę formatowanie jest rozwalone","created_at":"2018-02-22T10:38:10Z","updated_at":"2018-02-22T10:38:10Z","html_url":"https://github.com/advox/training_gk/pull/3#discussion_r169915614","pull_request_url":"https://api.github.com/repos/advox/training_gk/pulls/3","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/advox/training_gk/pulls/comments/169915614"},"html":{"href":"https://github.com/advox/training_gk/pull/3#discussion_r169915614"},"pull_request":{"href":"https://api.github.com/repos/advox/training_gk/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/advox/training_gk/pulls/3","id":169938485,"html_url":"https://github.com/advox/training_gk/pull/3","diff_url":"https://github.com/advox/training_gk/pull/3.diff","patch_url":"https://github.com/advox/training_gk/pull/3.patch","issue_url":"https://api.github.com/repos/advox/training_gk/issues/3","number":3,"state":"open","locked":false,"title":"Train 131","user":{"login":"kozakg","id":36470906,"avatar_url":"https://avatars3.githubusercontent.com/u/36470906?v=4","gravatar_id":"","url":"https://api.github.com/users/kozakg","html_url":"https://github.com/kozakg","followers_url":"https://api.github.com/users/kozakg/followers","following_url":"https://api.github.com/users/kozakg/following{/other_user}","gists_url":"https://api.github.com/users/kozakg/gists{/gist_id}","starred_url":"https://api.github.com/users/kozakg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kozakg/subscriptions","organizations_url":"https://api.github.com/users/kozakg/orgs","repos_url":"https://api.github.com/users/kozakg/repos","events_url":"https://api.github.com/users/kozakg/events{/privacy}","received_events_url":"https://api.github.com/users/kozakg/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-19T11:38:14Z","updated_at":"2018-02-22T10:38:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e7bc10852596f746f430daf67cb0c2566810bb5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/advox/training_gk/pulls/3/commits","review_comments_url":"https://api.github.com/repos/advox/training_gk/pulls/3/comments","review_comment_url":"https://api.github.com/repos/advox/training_gk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/advox/training_gk/issues/3/comments","statuses_url":"https://api.github.com/repos/advox/training_gk/statuses/96b5f62a84f2aa2e2ad348c6ffd3b16b7d8e13a6","head":{"label":"advox:TRAIN-131","ref":"TRAIN-131","sha":"96b5f62a84f2aa2e2ad348c6ffd3b16b7d8e13a6","user":{"login":"advox","id":1726556,"avatar_url":"https://avatars3.githubusercontent.com/u/1726556?v=4","gravatar_id":"","url":"https://api.github.com/users/advox","html_url":"https://github.com/advox","followers_url":"https://api.github.com/users/advox/followers","following_url":"https://api.github.com/users/advox/following{/other_user}","gists_url":"https://api.github.com/users/advox/gists{/gist_id}","starred_url":"https://api.github.com/users/advox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advox/subscriptions","organizations_url":"https://api.github.com/users/advox/orgs","repos_url":"https://api.github.com/users/advox/repos","events_url":"https://api.github.com/users/advox/events{/privacy}","received_events_url":"https://api.github.com/users/advox/received_events","type":"Organization","site_admin":false},"repo":{"id":121363230,"name":"training_gk","full_name":"advox/training_gk","owner":{"login":"advox","id":1726556,"avatar_url":"https://avatars3.githubusercontent.com/u/1726556?v=4","gravatar_id":"","url":"https://api.github.com/users/advox","html_url":"https://github.com/advox","followers_url":"https://api.github.com/users/advox/followers","following_url":"https://api.github.com/users/advox/following{/other_user}","gists_url":"https://api.github.com/users/advox/gists{/gist_id}","starred_url":"https://api.github.com/users/advox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advox/subscriptions","organizations_url":"https://api.github.com/users/advox/orgs","repos_url":"https://api.github.com/users/advox/repos","events_url":"https://api.github.com/users/advox/events{/privacy}","received_events_url":"https://api.github.com/users/advox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/advox/training_gk","description":null,"fork":false,"url":"https://api.github.com/repos/advox/training_gk","forks_url":"https://api.github.com/repos/advox/training_gk/forks","keys_url":"https://api.github.com/repos/advox/training_gk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/advox/training_gk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/advox/training_gk/teams","hooks_url":"https://api.github.com/repos/advox/training_gk/hooks","issue_events_url":"https://api.github.com/repos/advox/training_gk/issues/events{/number}","events_url":"https://api.github.com/repos/advox/training_gk/events","assignees_url":"https://api.github.com/repos/advox/training_gk/assignees{/user}","branches_url":"https://api.github.com/repos/advox/training_gk/branches{/branch}","tags_url":"https://api.github.com/repos/advox/training_gk/tags","blobs_url":"https://api.github.com/repos/advox/training_gk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/advox/training_gk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/advox/training_gk/git/refs{/sha}","trees_url":"https://api.github.com/repos/advox/training_gk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/advox/training_gk/statuses/{sha}","languages_url":"https://api.github.com/repos/advox/training_gk/languages","stargazers_url":"https://api.github.com/repos/advox/training_gk/stargazers","contributors_url":"https://api.github.com/repos/advox/training_gk/contributors","subscribers_url":"https://api.github.com/repos/advox/training_gk/subscribers","subscription_url":"https://api.github.com/repos/advox/training_gk/subscription","commits_url":"https://api.github.com/repos/advox/training_gk/commits{/sha}","git_commits_url":"https://api.github.com/repos/advox/training_gk/git/commits{/sha}","comments_url":"https://api.github.com/repos/advox/training_gk/comments{/number}","issue_comment_url":"https://api.github.com/repos/advox/training_gk/issues/comments{/number}","contents_url":"https://api.github.com/repos/advox/training_gk/contents/{+path}","compare_url":"https://api.github.com/repos/advox/training_gk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/advox/training_gk/merges","archive_url":"https://api.github.com/repos/advox/training_gk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/advox/training_gk/downloads","issues_url":"https://api.github.com/repos/advox/training_gk/issues{/number}","pulls_url":"https://api.github.com/repos/advox/training_gk/pulls{/number}","milestones_url":"https://api.github.com/repos/advox/training_gk/milestones{/number}","notifications_url":"https://api.github.com/repos/advox/training_gk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/advox/training_gk/labels{/name}","releases_url":"https://api.github.com/repos/advox/training_gk/releases{/id}","deployments_url":"https://api.github.com/repos/advox/training_gk/deployments","created_at":"2018-02-13T09:29:20Z","updated_at":"2018-02-14T09:08:24Z","pushed_at":"2018-02-22T10:36:00Z","git_url":"git://github.com/advox/training_gk.git","ssh_url":"git@github.com:advox/training_gk.git","clone_url":"https://github.com/advox/training_gk.git","svn_url":"https://github.com/advox/training_gk","homepage":null,"size":105,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"advox:master","ref":"master","sha":"c13f6b3fa638b0b70ad6480bf2cc4b926d3fd973","user":{"login":"advox","id":1726556,"avatar_url":"https://avatars3.githubusercontent.com/u/1726556?v=4","gravatar_id":"","url":"https://api.github.com/users/advox","html_url":"https://github.com/advox","followers_url":"https://api.github.com/users/advox/followers","following_url":"https://api.github.com/users/advox/following{/other_user}","gists_url":"https://api.github.com/users/advox/gists{/gist_id}","starred_url":"https://api.github.com/users/advox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advox/subscriptions","organizations_url":"https://api.github.com/users/advox/orgs","repos_url":"https://api.github.com/users/advox/repos","events_url":"https://api.github.com/users/advox/events{/privacy}","received_events_url":"https://api.github.com/users/advox/received_events","type":"Organization","site_admin":false},"repo":{"id":121363230,"name":"training_gk","full_name":"advox/training_gk","owner":{"login":"advox","id":1726556,"avatar_url":"https://avatars3.githubusercontent.com/u/1726556?v=4","gravatar_id":"","url":"https://api.github.com/users/advox","html_url":"https://github.com/advox","followers_url":"https://api.github.com/users/advox/followers","following_url":"https://api.github.com/users/advox/following{/other_user}","gists_url":"https://api.github.com/users/advox/gists{/gist_id}","starred_url":"https://api.github.com/users/advox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advox/subscriptions","organizations_url":"https://api.github.com/users/advox/orgs","repos_url":"https://api.github.com/users/advox/repos","events_url":"https://api.github.com/users/advox/events{/privacy}","received_events_url":"https://api.github.com/users/advox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/advox/training_gk","description":null,"fork":false,"url":"https://api.github.com/repos/advox/training_gk","forks_url":"https://api.github.com/repos/advox/training_gk/forks","keys_url":"https://api.github.com/repos/advox/training_gk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/advox/training_gk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/advox/training_gk/teams","hooks_url":"https://api.github.com/repos/advox/training_gk/hooks","issue_events_url":"https://api.github.com/repos/advox/training_gk/issues/events{/number}","events_url":"https://api.github.com/repos/advox/training_gk/events","assignees_url":"https://api.github.com/repos/advox/training_gk/assignees{/user}","branches_url":"https://api.github.com/repos/advox/training_gk/branches{/branch}","tags_url":"https://api.github.com/repos/advox/training_gk/tags","blobs_url":"https://api.github.com/repos/advox/training_gk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/advox/training_gk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/advox/training_gk/git/refs{/sha}","trees_url":"https://api.github.com/repos/advox/training_gk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/advox/training_gk/statuses/{sha}","languages_url":"https://api.github.com/repos/advox/training_gk/languages","stargazers_url":"https://api.github.com/repos/advox/training_gk/stargazers","contributors_url":"https://api.github.com/repos/advox/training_gk/contributors","subscribers_url":"https://api.github.com/repos/advox/training_gk/subscribers","subscription_url":"https://api.github.com/repos/advox/training_gk/subscription","commits_url":"https://api.github.com/repos/advox/training_gk/commits{/sha}","git_commits_url":"https://api.github.com/repos/advox/training_gk/git/commits{/sha}","comments_url":"https://api.github.com/repos/advox/training_gk/comments{/number}","issue_comment_url":"https://api.github.com/repos/advox/training_gk/issues/comments{/number}","contents_url":"https://api.github.com/repos/advox/training_gk/contents/{+path}","compare_url":"https://api.github.com/repos/advox/training_gk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/advox/training_gk/merges","archive_url":"https://api.github.com/repos/advox/training_gk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/advox/training_gk/downloads","issues_url":"https://api.github.com/repos/advox/training_gk/issues{/number}","pulls_url":"https://api.github.com/repos/advox/training_gk/pulls{/number}","milestones_url":"https://api.github.com/repos/advox/training_gk/milestones{/number}","notifications_url":"https://api.github.com/repos/advox/training_gk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/advox/training_gk/labels{/name}","releases_url":"https://api.github.com/repos/advox/training_gk/releases{/id}","deployments_url":"https://api.github.com/repos/advox/training_gk/deployments","created_at":"2018-02-13T09:29:20Z","updated_at":"2018-02-14T09:08:24Z","pushed_at":"2018-02-22T10:36:00Z","git_url":"git://github.com/advox/training_gk.git","ssh_url":"git@github.com:advox/training_gk.git","clone_url":"https://github.com/advox/training_gk.git","svn_url":"https://github.com/advox/training_gk","homepage":null,"size":105,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/advox/training_gk/pulls/3"},"html":{"href":"https://github.com/advox/training_gk/pull/3"},"issue":{"href":"https://api.github.com/repos/advox/training_gk/issues/3"},"comments":{"href":"https://api.github.com/repos/advox/training_gk/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/advox/training_gk/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/advox/training_gk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/advox/training_gk/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/advox/training_gk/statuses/96b5f62a84f2aa2e2ad348c6ffd3b16b7d8e13a6"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"mbozek"}}