diff options
Diffstat (limited to 'gerrit-server/src/main/java/com/google/gerrit/server/index/change/ChangeSchemaDefinitions.java')
-rw-r--r-- | gerrit-server/src/main/java/com/google/gerrit/server/index/change/ChangeSchemaDefinitions.java | 108 |
1 files changed, 56 insertions, 52 deletions
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/index/change/ChangeSchemaDefinitions.java b/gerrit-server/src/main/java/com/google/gerrit/server/index/change/ChangeSchemaDefinitions.java index d988612efb..95bdaab5ea 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/index/change/ChangeSchemaDefinitions.java +++ b/gerrit-server/src/main/java/com/google/gerrit/server/index/change/ChangeSchemaDefinitions.java @@ -14,83 +14,87 @@ package com.google.gerrit.server.index.change; -import static com.google.gerrit.server.index.SchemaUtil.schema; +import static com.google.gerrit.index.SchemaUtil.schema; -import com.google.gerrit.server.index.Schema; -import com.google.gerrit.server.index.SchemaDefinitions; +import com.google.gerrit.index.Schema; +import com.google.gerrit.index.SchemaDefinitions; import com.google.gerrit.server.query.change.ChangeData; public class ChangeSchemaDefinitions extends SchemaDefinitions<ChangeData> { @Deprecated - static final Schema<ChangeData> V32 = + static final Schema<ChangeData> V39 = schema( - ChangeField.LEGACY_ID, - ChangeField.ID, - ChangeField.STATUS, - ChangeField.PROJECT, - ChangeField.PROJECTS, - ChangeField.REF, - ChangeField.EXACT_TOPIC, - ChangeField.FUZZY_TOPIC, - ChangeField.UPDATED, - ChangeField.FILE_PART, - ChangeField.PATH, - ChangeField.OWNER, + ChangeField.ADDED, + ChangeField.APPROVAL, + ChangeField.ASSIGNEE, + ChangeField.AUTHOR, + ChangeField.CHANGE, + ChangeField.COMMENT, + ChangeField.COMMENTBY, ChangeField.COMMIT, - ChangeField.TR, - ChangeField.LABEL, + ChangeField.COMMITTER, ChangeField.COMMIT_MESSAGE, - ChangeField.COMMENT, - ChangeField.CHANGE, - ChangeField.APPROVAL, - ChangeField.MERGEABLE, - ChangeField.ADDED, ChangeField.DELETED, ChangeField.DELTA, - ChangeField.HASHTAG, - ChangeField.COMMENTBY, - ChangeField.PATCH_SET, - ChangeField.GROUP, - ChangeField.SUBMISSIONID, + ChangeField.DRAFTBY, ChangeField.EDITBY, - ChangeField.REVIEWEDBY, ChangeField.EXACT_COMMIT, - ChangeField.AUTHOR, - ChangeField.COMMITTER, - ChangeField.DRAFTBY, + ChangeField.EXACT_TOPIC, + ChangeField.FILE_PART, + ChangeField.FUZZY_TOPIC, + ChangeField.GROUP, + ChangeField.HASHTAG, ChangeField.HASHTAG_CASE_AWARE, + ChangeField.ID, + ChangeField.LABEL, + ChangeField.LEGACY_ID, + ChangeField.MERGEABLE, + ChangeField.OWNER, + ChangeField.PATCH_SET, + ChangeField.PATH, + ChangeField.PROJECT, + ChangeField.PROJECTS, + ChangeField.REF, + ChangeField.REF_STATE, + ChangeField.REF_STATE_PATTERN, + ChangeField.REVIEWEDBY, + ChangeField.REVIEWER, ChangeField.STAR, ChangeField.STARBY, - ChangeField.REVIEWER); + ChangeField.STATUS, + ChangeField.STORED_SUBMIT_RECORD_LENIENT, + ChangeField.STORED_SUBMIT_RECORD_STRICT, + ChangeField.SUBMISSIONID, + ChangeField.SUBMIT_RECORD, + ChangeField.TR, + ChangeField.UNRESOLVED_COMMENT_COUNT, + ChangeField.UPDATED); - @Deprecated static final Schema<ChangeData> V33 = schema(V32, ChangeField.ASSIGNEE); + @Deprecated static final Schema<ChangeData> V40 = schema(V39, ChangeField.PRIVATE); + @Deprecated static final Schema<ChangeData> V41 = schema(V40, ChangeField.REVIEWER_BY_EMAIL); + @Deprecated static final Schema<ChangeData> V42 = schema(V41, ChangeField.WIP); @Deprecated - static final Schema<ChangeData> V34 = - new Schema.Builder<ChangeData>() - .add(V33) - .remove(ChangeField.LABEL) - .add(ChangeField.LABEL2) - .build(); + static final Schema<ChangeData> V43 = + schema(V42, ChangeField.EXACT_AUTHOR, ChangeField.EXACT_COMMITTER); @Deprecated - static final Schema<ChangeData> V35 = + static final Schema<ChangeData> V44 = schema( - V34, - ChangeField.SUBMIT_RECORD, - ChangeField.STORED_SUBMIT_RECORD_LENIENT, - ChangeField.STORED_SUBMIT_RECORD_STRICT); + V43, + ChangeField.STARTED, + ChangeField.PENDING_REVIEWER, + ChangeField.PENDING_REVIEWER_BY_EMAIL); - @Deprecated - static final Schema<ChangeData> V36 = - schema(V35, ChangeField.REF_STATE, ChangeField.REF_STATE_PATTERN); + @Deprecated static final Schema<ChangeData> V45 = schema(V44, ChangeField.REVERT_OF); - @Deprecated static final Schema<ChangeData> V37 = schema(V36); + @Deprecated static final Schema<ChangeData> V46 = schema(V45); - @Deprecated - static final Schema<ChangeData> V38 = schema(V37, ChangeField.UNRESOLVED_COMMENT_COUNT); + // Removal of draft change workflow requires reindexing + @Deprecated static final Schema<ChangeData> V47 = schema(V46); - static final Schema<ChangeData> V39 = schema(V38); + // Rename of star label 'mute' to 'reviewed' requires reindexing + static final Schema<ChangeData> V48 = schema(V47); public static final String NAME = "changes"; public static final ChangeSchemaDefinitions INSTANCE = new ChangeSchemaDefinitions(); |