Issue 3579: add an attribute to the change-info REST response showing the merged date
Status:  ChangeUnderReview
Owner:
Project Member Reported by zaro0508, Sep 22, 2015
I would like to get information about when a change was merged using the Gerrit REST API.  The only way to get that info is to use the change-info[1] endpoint which will return a response[2] with a date that goes along with the message "Change has been successfully merged into the git repository."  Parsing for the date info tied to this message is not ideal and can be unreliable, especially since this comment has gone thru changes in various Gerrit releases.  t would be a lot nicer if there was a dedicated attribute like 'merged-date' for this info, maybe right at the top of the json, next to the "status": "MERGED" attribute.

[1] https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#change-info
[2] http://paste.openstack.org/show/473565/

Sep 22, 2015
Project Member #1 zaro0508
This can probably be done by adding the hidden 'SUBM' approval info to the REST response.  That label is exposed via the SSH api [3].  Since Gerrit always goes directly from submit to merge then the submit (SUBM) approval 'grantedOn' date is always identical or nearly identical to the merged date for changes that are in "status":"MERGED".

[3] http://paste.openstack.org/show/473629/

Sep 25, 2015
Project Member #2 david.pu...@sonymobile.com
 Issue 3580  has been merged into this issue.
Jan 6 (4 days ago)
Project Member #3 zaro0508
(No comment was entered for this change.)
Owner: zaro0508
Jan 6 (4 days ago)
Project Member #4 zaro0508
The submissionId contains the date when a change was submitted.  Proposed change https://gerrit-review.googlesource.com/73650
Status: ChangeUnderReview
Jan 7 (3 days ago)
Project Member #5 zaro0508
replaced 73650 with https://gerrit-review.googlesource.com/#/c/73651/