GitHub PullRequestReviewCommentEvent at 2014-04-16 13:27:52
Repository: core-geonetwork
Actor: pmauduit
Payload: {"comment":{"url":"https://api.github.com/repos/geonetwork/core-geonetwork/pulls/comments/11683367","id":11683367,"diff_hunk":"@@ -222,16 +227,46 @@ public User apply(@Nonnull Pair<Integer, User> input) {\n                     return input.two();\n             }\n         });\n-\n+        String mdChanged = buildMetadataChangedMessage(metadata);\n         String translatedStatusName = getTranslatedStatusName(Params.Status.SUBMITTED);\n         String subject = String.format(LangUtils.translate(context, \"statusInform\").get(this.language), siteName,\n                 translatedStatusName, replyToDescr, replyTo, changeDate);\n \n         processList(users, subject, Params.Status.SUBMITTED,\n-                changeDate, changeMessage);\n+                changeDate, changeMessage, mdChanged);\n     }\n \n-    private String getTranslatedStatusName(String statusValueId) {\n+    public static Pattern metadataLuceneField = Pattern.compile(\"\\\\{\\\\{([^\\\\}]+)\\\\}\\\\}\");\n+    \n+    private String buildMetadataChangedMessage(Set<Integer> metadata) {\n+    \tString statusMetadataDetails = \"* {{title}} ({{altTitle}})\";","path":"core/src/main/java/org/fao/geonet/kernel/metadata/DefaultStatusActions.java","position":48,"original_position":48,"commit_id":"b164450af8c6f489616e2351492713e3045919b1","original_commit_id":"b164450af8c6f489616e2351492713e3045919b1","user":{"login":"pmauduit","id":594335,"avatar_url":"https://avatars.githubusercontent.com/u/594335?","gravatar_id":"41de86dcd9ad40e0b19bbdec7a614024","url":"https://api.github.com/users/pmauduit","html_url":"https://github.com/pmauduit","followers_url":"https://api.github.com/users/pmauduit/followers","following_url":"https://api.github.com/users/pmauduit/following{/other_user}","gists_url":"https://api.github.com/users/pmauduit/gists{/gist_id}","starred_url":"https://api.github.com/users/pmauduit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmauduit/subscriptions","organizations_url":"https://api.github.com/users/pmauduit/orgs","repos_url":"https://api.github.com/users/pmauduit/repos","events_url":"https://api.github.com/users/pmauduit/events{/privacy}","received_events_url":"https://api.github.com/users/pmauduit/received_events","type":"User","site_admin":false},"body":"Sure, let me try a rework","created_at":"2014-04-16T13:27:52Z","updated_at":"2014-04-16T13:27:52Z","html_url":"https://github.com/geonetwork/core-geonetwork/pull/458#discussion_r11683367","pull_request_url":"https://api.github.com/repos/geonetwork/core-geonetwork/pulls/458","_links":{"self":{"href":"https://api.github.com/repos/geonetwork/core-geonetwork/pulls/comments/11683367"},"html":{"href":"https://github.com/geonetwork/core-geonetwork/pull/458#discussion_r11683367"},"pull_request":{"href":"https://api.github.com/repos/geonetwork/core-geonetwork/pulls/458"}}}}