Browse Source

Include hidden indices in DeprecationInfoAction (#118035) (#118630)

This fixes an issue where the deprecation API wouldn't include hidden
indices by default.

Resolves #118020
Lee Hinman 10 months ago
parent
commit
ac738cdb3e

+ 6 - 0
docs/changelog/118035.yaml

@@ -0,0 +1,6 @@
+pr: 118035
+summary: Include hidden indices in `DeprecationInfoAction`
+area: Indices APIs
+type: bug
+issues:
+ - 118020

+ 1 - 1
x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/DeprecationInfoAction.java

@@ -366,7 +366,7 @@ public class DeprecationInfoAction extends ActionType<DeprecationInfoAction.Resp
 
     public static class Request extends MasterNodeReadRequest<Request> implements IndicesRequest.Replaceable {
 
-        private static final IndicesOptions INDICES_OPTIONS = IndicesOptions.fromOptions(false, true, true, true);
+        private static final IndicesOptions INDICES_OPTIONS = IndicesOptions.fromOptions(false, true, true, true, true);
         private String[] indices;
 
         public Request(TimeValue masterNodeTimeout, String... indices) {