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.ref = patchSet.getRefName();
|
||||
p.uploader = asAccountAttribute(patchSet.getUploader());
|
||||
p.createdOn = patchSet.getCreatedOn().getTime() / 1000L;
|
||||
return p;
|
||||
}
|
||||
|
||||
|
@@ -21,6 +21,7 @@ public class PatchSetAttribute {
|
||||
public String revision;
|
||||
public String ref;
|
||||
public AccountAttribute uploader;
|
||||
public Long createdOn;
|
||||
|
||||
public List<ApprovalAttribute> approvals;
|
||||
public List<PatchSetCommentAttribute> comments;
|
||||
|
@@ -345,7 +345,8 @@ public class QueryProcessor {
|
||||
private static boolean isDateField(String name) {
|
||||
return "lastUpdated".equals(name) //
|
||||
|| "grantedOn".equals(name) //
|
||||
|| "timestamp".equals(name);
|
||||
|| "timestamp".equals(name) //
|
||||
|| "createdOn".equals(name);
|
||||
}
|
||||
|
||||
private List<Field> fieldsOf(Class<?> type) {
|
||||
|
Reference in New Issue
Block a user