Merge "Output patchset creation date for 'query' command."
This commit is contained in:
@@ -174,6 +174,7 @@ public class EventFactory {
|
|||||||
p.number = Integer.toString(patchSet.getPatchSetId());
|
p.number = Integer.toString(patchSet.getPatchSetId());
|
||||||
p.ref = patchSet.getRefName();
|
p.ref = patchSet.getRefName();
|
||||||
p.uploader = asAccountAttribute(patchSet.getUploader());
|
p.uploader = asAccountAttribute(patchSet.getUploader());
|
||||||
|
p.createdOn = patchSet.getCreatedOn().getTime() / 1000L;
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -21,6 +21,7 @@ public class PatchSetAttribute {
|
|||||||
public String revision;
|
public String revision;
|
||||||
public String ref;
|
public String ref;
|
||||||
public AccountAttribute uploader;
|
public AccountAttribute uploader;
|
||||||
|
public Long createdOn;
|
||||||
|
|
||||||
public List<ApprovalAttribute> approvals;
|
public List<ApprovalAttribute> approvals;
|
||||||
public List<PatchSetCommentAttribute> comments;
|
public List<PatchSetCommentAttribute> comments;
|
||||||
|
@@ -345,7 +345,8 @@ public class QueryProcessor {
|
|||||||
private static boolean isDateField(String name) {
|
private static boolean isDateField(String name) {
|
||||||
return "lastUpdated".equals(name) //
|
return "lastUpdated".equals(name) //
|
||||||
|| "grantedOn".equals(name) //
|
|| "grantedOn".equals(name) //
|
||||||
|| "timestamp".equals(name);
|
|| "timestamp".equals(name) //
|
||||||
|
|| "createdOn".equals(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<Field> fieldsOf(Class<?> type) {
|
private List<Field> fieldsOf(Class<?> type) {
|
||||||
|
Reference in New Issue
Block a user