payload: {"action":"created","comment":{"url":"https://api.github.com/repos/linagora/james-project/pulls/comments/360207030","pull_request_review_id":335042124,"id":360207030,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM2MDIwNzAzMA==","diff_hunk":"@@ -151,24 +156,31 @@ private ContextBuilder contextBuilder() {\n \n         @Override\n         public Mono<BlobId> putAndComputeId(ObjectStorageBucketName bucketName, Blob initialBlob, Supplier<BlobId> blobIdSupplier) {\n-            Function<File, Mono<Void>> putChangedBlob = file -> {\n-                initialBlob.getMetadata().setName(blobIdSupplier.get().asString());\n-                return putWithRetry(bucketName, configuration, initialBlob, file);\n-            };\n-            return writeFileAndAct(initialBlob, putChangedBlob)\n-                .then(Mono.fromCallable(blobIdSupplier::get));\n+            Function<File, Mono<BlobId>> putChangedBlob = file -> Mono.fromSupplier(blobIdSupplier)\n+                .flatMap(blobId -> {\n+                    initialBlob.getMetadata().setName(blobId.asString());\n+                    return blobExistenceTester.exists(bucketName, blobId)\n+                        .flatMap(exists -> {","path":"server/blob/blob-objectstorage/src/main/java/org/apache/james/blob/objectstorage/aws/AwsS3ObjectStorage.java","position":62,"original_position":62,"commit_id":"525363a78fe73eb9024bce9af7b87773bd2deaec","original_commit_id":"525363a78fe73eb9024bce9af7b87773bd2deaec","user":{"login":"chibenwa","id":6928740,"node_id":"MDQ6VXNlcjY5Mjg3NDA=","avatar_url":"https://avatars1.githubusercontent.com/u/6928740?v=4","gravatar_id":"","url":"https://api.github.com/users/chibenwa","html_url":"https://github.com/chibenwa","followers_url":"https://api.github.com/users/chibenwa/followers","following_url":"https://api.github.com/users/chibenwa/following{/other_user}","gists_url":"https://api.github.com/users/chibenwa/gists{/gist_id}","starred_url":"https://api.github.com/users/chibenwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chibenwa/subscriptions","organizations_url":"https://api.github.com/users/chibenwa/orgs","repos_url":"https://api.github.com/users/chibenwa/repos","events_url":"https://api.github.com/users/chibenwa/events{/privacy}","received_events_url":"https://api.github.com/users/chibenwa/received_events","type":"User","site_admin":false},"body":"Maybe the content of this flatMap can be extracted to enhance readability?","created_at":"2019-12-20T02:40:33Z","updated_at":"2019-12-20T02:44:31Z","html_url":"https://github.com/linagora/james-project/pull/2999#discussion_r360207030","pull_request_url":"https://api.github.com/repos/linagora/james-project/pulls/2999","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/linagora/james-project/pulls/comments/360207030"},"html":{"href":"https://github.com/linagora/james-project/pull/2999#discussion_r360207030"},"pull_request":{"href":"https://api.github.com/repos/linagora/james-project/pulls/2999"}}},"pull_request":{"url":"https://api.github.com/repos/linagora/james-project/pulls/2999","id":352824406,"node_id":"MDExOlB1bGxSZXF1ZXN0MzUyODI0NDA2","html_url":"https://github.com/linagora/james-project/pull/2999","diff_url":"https://github.com/linagora/james-project/pull/2999.diff","patch_url":"https://github.com/linagora/james-project/pull/2999.patch","issue_url":"https://api.github.com/repos/linagora/james-project/issues/2999","number":2999,"state":"open","locked":false,"title":"POC JAMES-3008 BlobId list in Cassandra","user":{"login":"Arsnael","id":9005025,"node_id":"MDQ6VXNlcjkwMDUwMjU=","avatar_url":"https://avatars1.githubusercontent.com/u/9005025?v=4","gravatar_id":"","url":"https://api.github.com/users/Arsnael","html_url":"https://github.com/Arsnael","followers_url":"https://api.github.com/users/Arsnael/followers","following_url":"https://api.github.com/users/Arsnael/following{/other_user}","gists_url":"https://api.github.com/users/Arsnael/gists{/gist_id}","starred_url":"https://api.github.com/users/Arsnael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arsnael/subscriptions","organizations_url":"https://api.github.com/users/Arsnael/orgs","repos_url":"https://api.github.com/users/Arsnael/repos","events_url":"https://api.github.com/users/Arsnael/events{/privacy}","received_events_url":"https://api.github.com/users/Arsnael/received_events","type":"User","site_admin":false},"body":"This is a POC. So there might be some fixes and more tests to add (like integration tests) but we need to check first if this POC is worth to finalize by running performance tests with this as well.","created_at":"2019-12-13T10:42:15Z","updated_at":"2019-12-20T02:44:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a1e3d38d5d56617c197d8458afbe3b84d337660","assignee":{"login":"Arsnael","id":9005025,"node_id":"MDQ6VXNlcjkwMDUwMjU=","avatar_url":"https://avatars1.githubusercontent.com/u/9005025?v=4","gravatar_id":"","url":"https://api.github.com/users/Arsnael","html_url":"https://github.com/Arsnael","followers_url":"https://api.github.com/users/Arsnael/followers","following_url":"https://api.github.com/users/Arsnael/following{/other_user}","gists_url":"https://api.github.com/users/Arsnael/gists{/gist_id}","starred_url":"https://api.github.com/users/Arsnael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arsnael/subscriptions","organizations_url":"https://api.github.com/users/Arsnael/orgs","repos_url":"https://api.github.com/users/Arsnael/repos","events_url":"https://api.github.com/users/Arsnael/events{/privacy}","received_events_url":"https://api.github.com/users/Arsnael/received_events","type":"User","site_admin":false},"assignees":[{"login":"Arsnael","id":9005025,"node_id":"MDQ6VXNlcjkwMDUwMjU=","avatar_url":"https://avatars1.githubusercontent.com/u/9005025?v=4","gravatar_id":"","url":"https://api.github.com/users/Arsnael","html_url":"https://github.com/Arsnael","followers_url":"https://api.github.com/users/Arsnael/followers","following_url":"https://api.github.com/users/Arsnael/following{/other_user}","gists_url":"https://api.github.com/users/Arsnael/gists{/gist_id}","starred_url":"https://api.github.com/users/Arsnael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arsnael/subscriptions","organizations_url":"https://api.github.com/users/Arsnael/orgs","repos_url":"https://api.github.com/users/Arsnael/repos","events_url":"https://api.github.com/users/Arsnael/events{/privacy}","received_events_url":"https://api.github.com/users/Arsnael/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":937092914,"node_id":"MDU6TGFiZWw5MzcwOTI5MTQ=","url":"https://api.github.com/repos/linagora/james-project/labels/POC","name":"POC","color":"16b73b","default":false,"description":""},{"id":1451271246,"node_id":"MDU6TGFiZWwxNDUxMjcxMjQ2","url":"https://api.github.com/repos/linagora/james-project/labels/cross-review%20needed","name":"cross-review needed","color":"cc3b02","default":false,"description":""}],"milestone":{"url":"https://api.github.com/repos/linagora/james-project/milestones/27","html_url":"https://github.com/linagora/james-project/milestone/27","labels_url":"https://api.github.com/repos/linagora/james-project/milestones/27/labels","id":4921569,"node_id":"MDk6TWlsZXN0b25lNDkyMTU2OQ==","number":27,"title":"Sprint 14 - Robusta beans","description":"","creator":{"login":"chibenwa","id":6928740,"node_id":"MDQ6VXNlcjY5Mjg3NDA=","avatar_url":"https://avatars1.githubusercontent.com/u/6928740?v=4","gravatar_id":"","url":"https://api.github.com/users/chibenwa","html_url":"https://github.com/chibenwa","followers_url":"https://api.github.com/users/chibenwa/followers","following_url":"https://api.github.com/users/chibenwa/following{/other_user}","gists_url":"https://api.github.com/users/chibenwa/gists{/gist_id}","starred_url":"https://api.github.com/users/chibenwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chibenwa/subscriptions","organizations_url":"https://api.github.com/users/chibenwa/orgs","repos_url":"https://api.github.com/users/chibenwa/repos","events_url":"https://api.github.com/users/chibenwa/events{/privacy}","received_events_url":"https://api.github.com/users/chibenwa/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":20,"state":"open","created_at":"2019-12-11T07:01:19Z","updated_at":"2019-12-19T10:39:36Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/linagora/james-project/pulls/2999/commits","review_comments_url":"https://api.github.com/repos/linagora/james-project/pulls/2999/comments","review_comment_url":"https://api.github.com/repos/linagora/james-project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/linagora/james-project/issues/2999/comments","statuses_url":"https://api.github.com/repos/linagora/james-project/statuses/525363a78fe73eb9024bce9af7b87773bd2deaec","head":{"label":"Arsnael:j3008-blob-id-list","ref":"j3008-blob-id-list","sha":"525363a78fe73eb9024bce9af7b87773bd2deaec","user":{"login":"Arsnael","id":9005025,"node_id":"MDQ6VXNlcjkwMDUwMjU=","avatar_url":"https://avatars1.githubusercontent.com/u/9005025?v=4","gravatar_id":"","url":"https://api.github.com/users/Arsnael","html_url":"https://github.com/Arsnael","followers_url":"https://api.github.com/users/Arsnael/followers","following_url":"https://api.github.com/users/Arsnael/following{/other_user}","gists_url":"https://api.github.com/users/Arsnael/gists{/gist_id}","starred_url":"https://api.github.com/users/Arsnael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arsnael/subscriptions","organizations_url":"https://api.github.com/users/Arsnael/orgs","repos_url":"https://api.github.com/users/Arsnael/repos","events_url":"https://api.github.com/users/Arsnael/events{/privacy}","received_events_url":"https://api.github.com/users/Arsnael/received_events","type":"User","site_admin":false},"repo":{"id":164052816,"node_id":"MDEwOlJlcG9zaXRvcnkxNjQwNTI4MTY=","name":"james-project","full_name":"Arsnael/james-project","private":false,"owner":{"login":"Arsnael","id":9005025,"node_id":"MDQ6VXNlcjkwMDUwMjU=","avatar_url":"https://avatars1.githubusercontent.com/u/9005025?v=4","gravatar_id":"","url":"https://api.github.com/users/Arsnael","html_url":"https://github.com/Arsnael","followers_url":"https://api.github.com/users/Arsnael/followers","following_url":"https://api.github.com/users/Arsnael/following{/other_user}","gists_url":"https://api.github.com/users/Arsnael/gists{/gist_id}","starred_url":"https://api.github.com/users/Arsnael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arsnael/subscriptions","organizations_url":"https://api.github.com/users/Arsnael/orgs","repos_url":"https://api.github.com/users/Arsnael/repos","events_url":"https://api.github.com/users/Arsnael/events{/privacy}","received_events_url":"https://api.github.com/users/Arsnael/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Arsnael/james-project","description":"Mirror of Apache James Project","fork":true,"url":"https://api.github.com/repos/Arsnael/james-project","forks_url":"https://api.github.com/repos/Arsnael/james-project/forks","keys_url":"https://api.github.com/repos/Arsnael/james-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Arsnael/james-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Arsnael/james-project/teams","hooks_url":"https://api.github.com/repos/Arsnael/james-project/hooks","issue_events_url":"https://api.github.com/repos/Arsnael/james-project/issues/events{/number}","events_url":"https://api.github.com/repos/Arsnael/james-project/events","assignees_url":"https://api.github.com/repos/Arsnael/james-project/assignees{/user}","branches_url":"https://api.github.com/repos/Arsnael/james-project/branches{/branch}","tags_url":"https://api.github.com/repos/Arsnael/james-project/tags","blobs_url":"https://api.github.com/repos/Arsnael/james-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Arsnael/james-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Arsnael/james-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/Arsnael/james-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Arsnael/james-project/statuses/{sha}","languages_url":"https://api.github.com/repos/Arsnael/james-project/languages","stargazers_url":"https://api.github.com/repos/Arsnael/james-project/stargazers","contributors_url":"https://api.github.com/repos/Arsnael/james-project/contributors","subscribers_url":"https://api.github.com/repos/Arsnael/james-project/subscribers","subscription_url":"https://api.github.com/repos/Arsnael/james-project/subscription","commits_url":"https://api.github.com/repos/Arsnael/james-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/Arsnael/james-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/Arsnael/james-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/Arsnael/james-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/Arsnael/james-project/contents/{+path}","compare_url":"https://api.github.com/repos/Arsnael/james-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Arsnael/james-project/merges","archive_url":"https://api.github.com/repos/Arsnael/james-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Arsnael/james-project/downloads","issues_url":"https://api.github.com/repos/Arsnael/james-project/issues{/number}","pulls_url":"https://api.github.com/repos/Arsnael/james-project/pulls{/number}","milestones_url":"https://api.github.com/repos/Arsnael/james-project/milestones{/number}","notifications_url":"https://api.github.com/repos/Arsnael/james-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Arsnael/james-project/labels{/name}","releases_url":"https://api.github.com/repos/Arsnael/james-project/releases{/id}","deployments_url":"https://api.github.com/repos/Arsnael/james-project/deployments","created_at":"2019-01-04T03:24:10Z","updated_at":"2019-12-19T03:19:52Z","pushed_at":"2019-12-19T10:46:19Z","git_url":"git://github.com/Arsnael/james-project.git","ssh_url":"git@github.com:Arsnael/james-project.git","clone_url":"https://github.com/Arsnael/james-project.git","svn_url":"https://github.com/Arsnael/james-project","homepage":null,"size":80754,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"linagora:master","ref":"master","sha":"e603bb3ab8f57388626cd4b87af2c12120111d5f","user":{"login":"linagora","id":1230365,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyMzAzNjU=","avatar_url":"https://avatars3.githubusercontent.com/u/1230365?v=4","gravatar_id":"","url":"https://api.github.com/users/linagora","html_url":"https://github.com/linagora","followers_url":"https://api.github.com/users/linagora/followers","following_url":"https://api.github.com/users/linagora/following{/other_user}","gists_url":"https://api.github.com/users/linagora/gists{/gist_id}","starred_url":"https://api.github.com/users/linagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linagora/subscriptions","organizations_url":"https://api.github.com/users/linagora/orgs","repos_url":"https://api.github.com/users/linagora/repos","events_url":"https://api.github.com/users/linagora/events{/privacy}","received_events_url":"https://api.github.com/users/linagora/received_events","type":"Organization","site_admin":false},"repo":{"id":39182136,"node_id":"MDEwOlJlcG9zaXRvcnkzOTE4MjEzNg==","name":"james-project","full_name":"linagora/james-project","private":false,"owner":{"login":"linagora","id":1230365,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyMzAzNjU=","avatar_url":"https://avatars3.githubusercontent.com/u/1230365?v=4","gravatar_id":"","url":"https://api.github.com/users/linagora","html_url":"https://github.com/linagora","followers_url":"https://api.github.com/users/linagora/followers","following_url":"https://api.github.com/users/linagora/following{/other_user}","gists_url":"https://api.github.com/users/linagora/gists{/gist_id}","starred_url":"https://api.github.com/users/linagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linagora/subscriptions","organizations_url":"https://api.github.com/users/linagora/orgs","repos_url":"https://api.github.com/users/linagora/repos","events_url":"https://api.github.com/users/linagora/events{/privacy}","received_events_url":"https://api.github.com/users/linagora/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/linagora/james-project","description":"Mirror of Apache James Project","fork":true,"url":"https://api.github.com/repos/linagora/james-project","forks_url":"https://api.github.com/repos/linagora/james-project/forks","keys_url":"https://api.github.com/repos/linagora/james-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linagora/james-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linagora/james-project/teams","hooks_url":"https://api.github.com/repos/linagora/james-project/hooks","issue_events_url":"https://api.github.com/repos/linagora/james-project/issues/events{/number}","events_url":"https://api.github.com/repos/linagora/james-project/events","assignees_url":"https://api.github.com/repos/linagora/james-project/assignees{/user}","branches_url":"https://api.github.com/repos/linagora/james-project/branches{/branch}","tags_url":"https://api.github.com/repos/linagora/james-project/tags","blobs_url":"https://api.github.com/repos/linagora/james-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linagora/james-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linagora/james-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/linagora/james-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linagora/james-project/statuses/{sha}","languages_url":"https://api.github.com/repos/linagora/james-project/languages","stargazers_url":"https://api.github.com/repos/linagora/james-project/stargazers","contributors_url":"https://api.github.com/repos/linagora/james-project/contributors","subscribers_url":"https://api.github.com/repos/linagora/james-project/subscribers","subscription_url":"https://api.github.com/repos/linagora/james-project/subscription","commits_url":"https://api.github.com/repos/linagora/james-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/linagora/james-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/linagora/james-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/linagora/james-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/linagora/james-project/contents/{+path}","compare_url":"https://api.github.com/repos/linagora/james-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linagora/james-project/merges","archive_url":"https://api.github.com/repos/linagora/james-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linagora/james-project/downloads","issues_url":"https://api.github.com/repos/linagora/james-project/issues{/number}","pulls_url":"https://api.github.com/repos/linagora/james-project/pulls{/number}","milestones_url":"https://api.github.com/repos/linagora/james-project/milestones{/number}","notifications_url":"https://api.github.com/repos/linagora/james-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linagora/james-project/labels{/name}","releases_url":"https://api.github.com/repos/linagora/james-project/releases{/id}","deployments_url":"https://api.github.com/repos/linagora/james-project/deployments","created_at":"2015-07-16T07:04:59Z","updated_at":"2019-12-19T10:38:57Z","pushed_at":"2019-12-19T17:05:15Z","git_url":"git://github.com/linagora/james-project.git","ssh_url":"git@github.com:linagora/james-project.git","clone_url":"https://github.com/linagora/james-project.git","svn_url":"https://github.com/linagora/james-project","homepage":null,"size":80310,"stargazers_count":29,"watchers_count":29,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":38,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":95,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":38,"open_issues":95,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/linagora/james-project/pulls/2999"},"html":{"href":"https://github.com/linagora/james-project/pull/2999"},"issue":{"href":"https://api.github.com/repos/linagora/james-project/issues/2999"},"comments":{"href":"https://api.github.com/repos/linagora/james-project/issues/2999/comments"},"review_comments":{"href":"https://api.github.com/repos/linagora/james-project/pulls/2999/comments"},"review_comment":{"href":"https://api.github.com/repos/linagora/james-project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/linagora/james-project/pulls/2999/commits"},"statuses":{"href":"https://api.github.com/repos/linagora/james-project/statuses/525363a78fe73eb9024bce9af7b87773bd2deaec"}},"author_association":"NONE"}}
other: {"actor":{"display_login":"chibenwa"}}