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:
David Turner 2024-10-02 11:37:14 +01:00 committed by GitHub
parent f9921168f5
commit 81bd8667cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
106 changed files with 210 additions and 163 deletions

View file

@ -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;

View file

@ -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();
}

View file

@ -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();
}