payload: {"action":"created","comment":{"url":"https://api.github.com/repos/ezsystems/developer-documentation/pulls/comments/357669130","pull_request_review_id":331891366,"id":357669130,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM1NzY2OTEzMA==","diff_hunk":"@@ -0,0 +1,103 @@\n+# Creating custom version comparison of Field Types\n+\n+!!! enterprise\n+    \n+    In the Back Office, you can compare the contents of a Field Type.\n+    Comparing is possible only between two versions of the same Field Type that are in the same language.\n+    \n+    You can add the possibility to compare other Field Types, including the custom ones.\n+    You can base the configuration on the comparison mechanism created for the `ezstring` Field Type.\n+    \n+    ## Field Type configuration\n+    \n+    First, ensure that the Field Type to compare implements the `EzSystems\\EzPlatformContentComparison\\FieldType\\Comparable` interface with the following method:\n+    \n+    ``` php\n+    use eZ\\Publish\\SPI\\FieldType\\Value;\n+    use EzSystems\\EzPlatformContentComparison\\Comparison\\ComparisonData;\n+    \n+    interface Comparable\n+    {\n+        public function getDataToCompare(Value $value): ComparisonData;\n+    }\n+    ```\n+    \n+    This method fetches the data to compare and determines which [comparison engines](#comparison-engine) should be used.\n+    Therefore, the `ComparisonData` object is specific to the Field Type you want to compare.\n+    \n+    In case of `ezstring`, the implementation is:\n+    \n+    ``` php\n+    public function getDataToCompare(Value $value): ComparisonData;\n+    {\n+        return new TextLine([\n+            'textLine' => new StringComparisonValue([\n+                'value' => $value->text,\n+            ]),\n+        ]);\n+    }\n+    ```\n+    \n+    Also, the Field Type requires additional configuration (e.g. `comparable_fieldtypes.yaml`).\n+    An exemplary configuration, in this case for `ezstring`, looks the following way:\n+    \n+    ``` yaml\n+    EzSystems\\EzPlatformContentComparison\\FieldType\\TextLine\\Comparable:\n+      tags:\n+        - { name: ezplatform.field_type.comparable, alias: ezstring }\n+    ```\n+    \n+    ## Comparison engine\n+    \n+    The comparison engine handles the operations required for comparing the contents of Field Types.","path":"docs/guide/extending/custom_fieldtype_comparison.md","position":52,"original_position":52,"commit_id":"27c926f564ff778dff9717e50d90d43a904427d2","original_commit_id":"27c926f564ff778dff9717e50d90d43a904427d2","user":{"login":"DominikaK","id":13621049,"node_id":"MDQ6VXNlcjEzNjIxMDQ5","avatar_url":"https://avatars2.githubusercontent.com/u/13621049?v=4","gravatar_id":"","url":"https://api.github.com/users/DominikaK","html_url":"https://github.com/DominikaK","followers_url":"https://api.github.com/users/DominikaK/followers","following_url":"https://api.github.com/users/DominikaK/following{/other_user}","gists_url":"https://api.github.com/users/DominikaK/gists{/gist_id}","starred_url":"https://api.github.com/users/DominikaK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DominikaK/subscriptions","organizations_url":"https://api.github.com/users/DominikaK/orgs","repos_url":"https://api.github.com/users/DominikaK/repos","events_url":"https://api.github.com/users/DominikaK/events{/privacy}","received_events_url":"https://api.github.com/users/DominikaK/received_events","type":"User","site_admin":false},"body":"```suggestion\r\n    The comparison engine handles the operations required for comparing the contents of Fields.\r\n```","created_at":"2019-12-13T14:27:02Z","updated_at":"2019-12-13T14:37:44Z","html_url":"https://github.com/ezsystems/developer-documentation/pull/898#discussion_r357669130","pull_request_url":"https://api.github.com/repos/ezsystems/developer-documentation/pulls/898","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ezsystems/developer-documentation/pulls/comments/357669130"},"html":{"href":"https://github.com/ezsystems/developer-documentation/pull/898#discussion_r357669130"},"pull_request":{"href":"https://api.github.com/repos/ezsystems/developer-documentation/pulls/898"}}},"pull_request":{"url":"https://api.github.com/repos/ezsystems/developer-documentation/pulls/898","id":352849714,"node_id":"MDExOlB1bGxSZXF1ZXN0MzUyODQ5NzE0","html_url":"https://github.com/ezsystems/developer-documentation/pull/898","diff_url":"https://github.com/ezsystems/developer-documentation/pull/898.diff","patch_url":"https://github.com/ezsystems/developer-documentation/pull/898.patch","issue_url":"https://api.github.com/repos/ezsystems/developer-documentation/issues/898","number":898,"state":"open","locked":false,"title":"EZP-30979: Content Version comparison of TextLine Fields","user":{"login":"michalmilc90","id":48127225,"node_id":"MDQ6VXNlcjQ4MTI3MjI1","avatar_url":"https://avatars1.githubusercontent.com/u/48127225?v=4","gravatar_id":"","url":"https://api.github.com/users/michalmilc90","html_url":"https://github.com/michalmilc90","followers_url":"https://api.github.com/users/michalmilc90/followers","following_url":"https://api.github.com/users/michalmilc90/following{/other_user}","gists_url":"https://api.github.com/users/michalmilc90/gists{/gist_id}","starred_url":"https://api.github.com/users/michalmilc90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalmilc90/subscriptions","organizations_url":"https://api.github.com/users/michalmilc90/orgs","repos_url":"https://api.github.com/users/michalmilc90/repos","events_url":"https://api.github.com/users/michalmilc90/events{/privacy}","received_events_url":"https://api.github.com/users/michalmilc90/received_events","type":"User","site_admin":false},"body":"| Question      | Answer\r\n| ------------- | ---\r\n| JIRA Ticket   | [EZP-30979](https://jira.ez.no/browse/EZP-30979)\r\n| Versions      | master\r\n\r\nSection of creating custom Field Type versions comparison added on the basis of the new functionality.\r\n\r\n- [x] add !!! enterprise\r\n- [ ] update the user-guide (after 3.0-beta4 release)\r\n","created_at":"2019-12-13T11:48:22Z","updated_at":"2019-12-13T14:37:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f36ee02fbc16aa6683a1b96f87b28928776a038","assignee":{"login":"DominikaK","id":13621049,"node_id":"MDQ6VXNlcjEzNjIxMDQ5","avatar_url":"https://avatars2.githubusercontent.com/u/13621049?v=4","gravatar_id":"","url":"https://api.github.com/users/DominikaK","html_url":"https://github.com/DominikaK","followers_url":"https://api.github.com/users/DominikaK/followers","following_url":"https://api.github.com/users/DominikaK/following{/other_user}","gists_url":"https://api.github.com/users/DominikaK/gists{/gist_id}","starred_url":"https://api.github.com/users/DominikaK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DominikaK/subscriptions","organizations_url":"https://api.github.com/users/DominikaK/orgs","repos_url":"https://api.github.com/users/DominikaK/repos","events_url":"https://api.github.com/users/DominikaK/events{/privacy}","received_events_url":"https://api.github.com/users/DominikaK/received_events","type":"User","site_admin":false},"assignees":[{"login":"DominikaK","id":13621049,"node_id":"MDQ6VXNlcjEzNjIxMDQ5","avatar_url":"https://avatars2.githubusercontent.com/u/13621049?v=4","gravatar_id":"","url":"https://api.github.com/users/DominikaK","html_url":"https://github.com/DominikaK","followers_url":"https://api.github.com/users/DominikaK/followers","following_url":"https://api.github.com/users/DominikaK/following{/other_user}","gists_url":"https://api.github.com/users/DominikaK/gists{/gist_id}","starred_url":"https://api.github.com/users/DominikaK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DominikaK/subscriptions","organizations_url":"https://api.github.com/users/DominikaK/orgs","repos_url":"https://api.github.com/users/DominikaK/repos","events_url":"https://api.github.com/users/DominikaK/events{/privacy}","received_events_url":"https://api.github.com/users/DominikaK/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":673191797,"node_id":"MDU6TGFiZWw2NzMxOTE3OTc=","url":"https://api.github.com/repos/ezsystems/developer-documentation/labels/Needs%20DOC%20review","name":"Needs DOC review","color":"21a5ed","default":false,"description":""}],"milestone":null,"commits_url":"https://api.github.com/repos/ezsystems/developer-documentation/pulls/898/commits","review_comments_url":"https://api.github.com/repos/ezsystems/developer-documentation/pulls/898/comments","review_comment_url":"https://api.github.com/repos/ezsystems/developer-documentation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ezsystems/developer-documentation/issues/898/comments","statuses_url":"https://api.github.com/repos/ezsystems/developer-documentation/statuses/27c926f564ff778dff9717e50d90d43a904427d2","head":{"label":"ezsystems:ezp30979_contentvercompare","ref":"ezp30979_contentvercompare","sha":"27c926f564ff778dff9717e50d90d43a904427d2","user":{"login":"ezsystems","id":295311,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NTMxMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/295311?v=4","gravatar_id":"","url":"https://api.github.com/users/ezsystems","html_url":"https://github.com/ezsystems","followers_url":"https://api.github.com/users/ezsystems/followers","following_url":"https://api.github.com/users/ezsystems/following{/other_user}","gists_url":"https://api.github.com/users/ezsystems/gists{/gist_id}","starred_url":"https://api.github.com/users/ezsystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezsystems/subscriptions","organizations_url":"https://api.github.com/users/ezsystems/orgs","repos_url":"https://api.github.com/users/ezsystems/repos","events_url":"https://api.github.com/users/ezsystems/events{/privacy}","received_events_url":"https://api.github.com/users/ezsystems/received_events","type":"Organization","site_admin":false},"repo":{"id":94448285,"node_id":"MDEwOlJlcG9zaXRvcnk5NDQ0ODI4NQ==","name":"developer-documentation","full_name":"ezsystems/developer-documentation","private":false,"owner":{"login":"ezsystems","id":295311,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NTMxMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/295311?v=4","gravatar_id":"","url":"https://api.github.com/users/ezsystems","html_url":"https://github.com/ezsystems","followers_url":"https://api.github.com/users/ezsystems/followers","following_url":"https://api.github.com/users/ezsystems/following{/other_user}","gists_url":"https://api.github.com/users/ezsystems/gists{/gist_id}","starred_url":"https://api.github.com/users/ezsystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezsystems/subscriptions","organizations_url":"https://api.github.com/users/ezsystems/orgs","repos_url":"https://api.github.com/users/ezsystems/repos","events_url":"https://api.github.com/users/ezsystems/events{/privacy}","received_events_url":"https://api.github.com/users/ezsystems/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ezsystems/developer-documentation","description":"Source for the developer documentation for eZ Platform, an open source CMS based on the Symfony Full Stack Framework in PHP.","fork":false,"url":"https://api.github.com/repos/ezsystems/developer-documentation","forks_url":"https://api.github.com/repos/ezsystems/developer-documentation/forks","keys_url":"https://api.github.com/repos/ezsystems/developer-documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ezsystems/developer-documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ezsystems/developer-documentation/teams","hooks_url":"https://api.github.com/repos/ezsystems/developer-documentation/hooks","issue_events_url":"https://api.github.com/repos/ezsystems/developer-documentation/issues/events{/number}","events_url":"https://api.github.com/repos/ezsystems/developer-documentation/events","assignees_url":"https://api.github.com/repos/ezsystems/developer-documentation/assignees{/user}","branches_url":"https://api.github.com/repos/ezsystems/developer-documentation/branches{/branch}","tags_url":"https://api.github.com/repos/ezsystems/developer-documentation/tags","blobs_url":"https://api.github.com/repos/ezsystems/developer-documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ezsystems/developer-documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ezsystems/developer-documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/ezsystems/developer-documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ezsystems/developer-documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/ezsystems/developer-documentation/languages","stargazers_url":"https://api.github.com/repos/ezsystems/developer-documentation/stargazers","contributors_url":"https://api.github.com/repos/ezsystems/developer-documentation/contributors","subscribers_url":"https://api.github.com/repos/ezsystems/developer-documentation/subscribers","subscription_url":"https://api.github.com/repos/ezsystems/developer-documentation/subscription","commits_url":"https://api.github.com/repos/ezsystems/developer-documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/ezsystems/developer-documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/ezsystems/developer-documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/ezsystems/developer-documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/ezsystems/developer-documentation/contents/{+path}","compare_url":"https://api.github.com/repos/ezsystems/developer-documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ezsystems/developer-documentation/merges","archive_url":"https://api.github.com/repos/ezsystems/developer-documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ezsystems/developer-documentation/downloads","issues_url":"https://api.github.com/repos/ezsystems/developer-documentation/issues{/number}","pulls_url":"https://api.github.com/repos/ezsystems/developer-documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/ezsystems/developer-documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/ezsystems/developer-documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ezsystems/developer-documentation/labels{/name}","releases_url":"https://api.github.com/repos/ezsystems/developer-documentation/releases{/id}","deployments_url":"https://api.github.com/repos/ezsystems/developer-documentation/deployments","created_at":"2017-06-15T14:36:36Z","updated_at":"2019-12-13T08:53:17Z","pushed_at":"2019-12-13T14:36:11Z","git_url":"git://github.com/ezsystems/developer-documentation.git","ssh_url":"git@github.com:ezsystems/developer-documentation.git","clone_url":"https://github.com/ezsystems/developer-documentation.git","svn_url":"https://github.com/ezsystems/developer-documentation","homepage":"https://doc.ezplatform.com","size":56618,"stargazers_count":24,"watchers_count":24,"language":"HTML","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":61,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":10,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":61,"open_issues":10,"watchers":24,"default_branch":"master"}},"base":{"label":"ezsystems:master","ref":"master","sha":"119cd39615df6b332b870319bdcc181c94fbc9e4","user":{"login":"ezsystems","id":295311,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NTMxMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/295311?v=4","gravatar_id":"","url":"https://api.github.com/users/ezsystems","html_url":"https://github.com/ezsystems","followers_url":"https://api.github.com/users/ezsystems/followers","following_url":"https://api.github.com/users/ezsystems/following{/other_user}","gists_url":"https://api.github.com/users/ezsystems/gists{/gist_id}","starred_url":"https://api.github.com/users/ezsystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezsystems/subscriptions","organizations_url":"https://api.github.com/users/ezsystems/orgs","repos_url":"https://api.github.com/users/ezsystems/repos","events_url":"https://api.github.com/users/ezsystems/events{/privacy}","received_events_url":"https://api.github.com/users/ezsystems/received_events","type":"Organization","site_admin":false},"repo":{"id":94448285,"node_id":"MDEwOlJlcG9zaXRvcnk5NDQ0ODI4NQ==","name":"developer-documentation","full_name":"ezsystems/developer-documentation","private":false,"owner":{"login":"ezsystems","id":295311,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NTMxMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/295311?v=4","gravatar_id":"","url":"https://api.github.com/users/ezsystems","html_url":"https://github.com/ezsystems","followers_url":"https://api.github.com/users/ezsystems/followers","following_url":"https://api.github.com/users/ezsystems/following{/other_user}","gists_url":"https://api.github.com/users/ezsystems/gists{/gist_id}","starred_url":"https://api.github.com/users/ezsystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezsystems/subscriptions","organizations_url":"https://api.github.com/users/ezsystems/orgs","repos_url":"https://api.github.com/users/ezsystems/repos","events_url":"https://api.github.com/users/ezsystems/events{/privacy}","received_events_url":"https://api.github.com/users/ezsystems/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ezsystems/developer-documentation","description":"Source for the developer documentation for eZ Platform, an open source CMS based on the Symfony Full Stack Framework in PHP.","fork":false,"url":"https://api.github.com/repos/ezsystems/developer-documentation","forks_url":"https://api.github.com/repos/ezsystems/developer-documentation/forks","keys_url":"https://api.github.com/repos/ezsystems/developer-documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ezsystems/developer-documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ezsystems/developer-documentation/teams","hooks_url":"https://api.github.com/repos/ezsystems/developer-documentation/hooks","issue_events_url":"https://api.github.com/repos/ezsystems/developer-documentation/issues/events{/number}","events_url":"https://api.github.com/repos/ezsystems/developer-documentation/events","assignees_url":"https://api.github.com/repos/ezsystems/developer-documentation/assignees{/user}","branches_url":"https://api.github.com/repos/ezsystems/developer-documentation/branches{/branch}","tags_url":"https://api.github.com/repos/ezsystems/developer-documentation/tags","blobs_url":"https://api.github.com/repos/ezsystems/developer-documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ezsystems/developer-documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ezsystems/developer-documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/ezsystems/developer-documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ezsystems/developer-documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/ezsystems/developer-documentation/languages","stargazers_url":"https://api.github.com/repos/ezsystems/developer-documentation/stargazers","contributors_url":"https://api.github.com/repos/ezsystems/developer-documentation/contributors","subscribers_url":"https://api.github.com/repos/ezsystems/developer-documentation/subscribers","subscription_url":"https://api.github.com/repos/ezsystems/developer-documentation/subscription","commits_url":"https://api.github.com/repos/ezsystems/developer-documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/ezsystems/developer-documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/ezsystems/developer-documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/ezsystems/developer-documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/ezsystems/developer-documentation/contents/{+path}","compare_url":"https://api.github.com/repos/ezsystems/developer-documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ezsystems/developer-documentation/merges","archive_url":"https://api.github.com/repos/ezsystems/developer-documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ezsystems/developer-documentation/downloads","issues_url":"https://api.github.com/repos/ezsystems/developer-documentation/issues{/number}","pulls_url":"https://api.github.com/repos/ezsystems/developer-documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/ezsystems/developer-documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/ezsystems/developer-documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ezsystems/developer-documentation/labels{/name}","releases_url":"https://api.github.com/repos/ezsystems/developer-documentation/releases{/id}","deployments_url":"https://api.github.com/repos/ezsystems/developer-documentation/deployments","created_at":"2017-06-15T14:36:36Z","updated_at":"2019-12-13T08:53:17Z","pushed_at":"2019-12-13T14:36:11Z","git_url":"git://github.com/ezsystems/developer-documentation.git","ssh_url":"git@github.com:ezsystems/developer-documentation.git","clone_url":"https://github.com/ezsystems/developer-documentation.git","svn_url":"https://github.com/ezsystems/developer-documentation","homepage":"https://doc.ezplatform.com","size":56618,"stargazers_count":24,"watchers_count":24,"language":"HTML","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":61,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":10,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":61,"open_issues":10,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ezsystems/developer-documentation/pulls/898"},"html":{"href":"https://github.com/ezsystems/developer-documentation/pull/898"},"issue":{"href":"https://api.github.com/repos/ezsystems/developer-documentation/issues/898"},"comments":{"href":"https://api.github.com/repos/ezsystems/developer-documentation/issues/898/comments"},"review_comments":{"href":"https://api.github.com/repos/ezsystems/developer-documentation/pulls/898/comments"},"review_comment":{"href":"https://api.github.com/repos/ezsystems/developer-documentation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ezsystems/developer-documentation/pulls/898/commits"},"statuses":{"href":"https://api.github.com/repos/ezsystems/developer-documentation/statuses/27c926f564ff778dff9717e50d90d43a904427d2"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"DominikaK"}}