mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
Define owners for UpdateForV9
annotations (#113926)
In order to better track the work needed to prepare this branch for the major version upgrade, this commit adds a mandatory `owner` field to all `UpdateForV9` (and `UpdateForV10`) annotations.
This commit is contained in:
parent
f9921168f5
commit
81bd8667cb
106 changed files with 210 additions and 163 deletions
|
@ -22,7 +22,7 @@ public enum RestApiVersion {
|
|||
|
||||
V_8(8),
|
||||
|
||||
@UpdateForV9 // remove all references to V_7 then delete this annotation
|
||||
@UpdateForV9(owner = UpdateForV9.Owner.CORE_INFRA) // remove all references to V_7 then delete this annotation
|
||||
V_7(7);
|
||||
|
||||
public final byte major;
|
||||
|
|
|
@ -21,4 +21,22 @@ import java.lang.annotation.Target;
|
|||
@Retention(RetentionPolicy.SOURCE)
|
||||
@Target({ ElementType.LOCAL_VARIABLE, ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.METHOD, ElementType.TYPE })
|
||||
public @interface UpdateForV10 {
|
||||
enum Owner {
|
||||
CORE_INFRA,
|
||||
DATA_MANAGEMENT,
|
||||
DISTRIBUTED_COORDINATION,
|
||||
DISTRIBUTED_INDEXING,
|
||||
ENTERPRISE_SEARCH,
|
||||
MACHINE_LEARNING,
|
||||
PROFILING,
|
||||
SEARCH_ANALYTICS,
|
||||
SEARCH_FOUNDATIONS,
|
||||
SEARCH_RELEVANCE,
|
||||
SECURITY,
|
||||
}
|
||||
|
||||
/**
|
||||
* The owning team of the task to act on this annotation when the time comes.
|
||||
*/
|
||||
Owner owner();
|
||||
}
|
||||
|
|
|
@ -21,4 +21,22 @@ import java.lang.annotation.Target;
|
|||
@Retention(RetentionPolicy.SOURCE)
|
||||
@Target({ ElementType.LOCAL_VARIABLE, ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.METHOD, ElementType.TYPE })
|
||||
public @interface UpdateForV9 {
|
||||
enum Owner {
|
||||
CORE_INFRA,
|
||||
DATA_MANAGEMENT,
|
||||
DISTRIBUTED_COORDINATION,
|
||||
DISTRIBUTED_INDEXING,
|
||||
ENTERPRISE_SEARCH,
|
||||
MACHINE_LEARNING,
|
||||
PROFILING,
|
||||
SEARCH_ANALYTICS,
|
||||
SEARCH_FOUNDATIONS,
|
||||
SEARCH_RELEVANCE,
|
||||
SECURITY,
|
||||
}
|
||||
|
||||
/**
|
||||
* The owning team of the task to act on this annotation when the time comes.
|
||||
*/
|
||||
Owner owner();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue