ソースを参照

User Profile: Change API visibility to feature_flag (#85194)

The User Profile feature is currently behind a feature flag. The REST
specs should match the visibility accordingly.
Yang Wang 3 年 前
コミット
c6c57a453c

+ 2 - 1
rest-api-spec/src/main/resources/rest-api-spec/api/security.activate_user_profile.json

@@ -5,7 +5,8 @@
       "description":"Creates or updates the user profile on behalf of another user."
     },
     "stability":"experimental",
-    "visibility":"public",
+    "visibility":"feature_flag",
+    "feature_flag": "es.user_profile_feature_flag_enabled",
     "headers":{
       "accept": [ "application/json"],
       "content_type": ["application/json"]

+ 2 - 1
rest-api-spec/src/main/resources/rest-api-spec/api/security.disable_user_profile.json

@@ -5,7 +5,8 @@
       "description":"Disables a user profile so it's not visible in user profile searches."
     },
     "stability":"experimental",
-    "visibility":"public",
+    "visibility":"feature_flag",
+    "feature_flag": "es.user_profile_feature_flag_enabled",
     "headers":{
       "accept": [ "application/json"]
     },

+ 2 - 1
rest-api-spec/src/main/resources/rest-api-spec/api/security.enable_user_profile.json

@@ -5,7 +5,8 @@
       "description":"Enables a user profile so it's visible in user profile searches."
     },
     "stability":"experimental",
-    "visibility":"public",
+    "visibility":"feature_flag",
+    "feature_flag": "es.user_profile_feature_flag_enabled",
     "headers":{
       "accept": [ "application/json"]
     },

+ 2 - 1
rest-api-spec/src/main/resources/rest-api-spec/api/security.get_user_profile.json

@@ -5,7 +5,8 @@
       "description":"Retrieves user profile for the given unique ID."
     },
     "stability":"experimental",
-    "visibility":"public",
+    "visibility":"feature_flag",
+    "feature_flag": "es.user_profile_feature_flag_enabled",
     "headers":{
       "accept": [ "application/json"]
     },

+ 2 - 1
rest-api-spec/src/main/resources/rest-api-spec/api/security.search_user_profiles.json

@@ -5,7 +5,8 @@
       "description":"Searches for user profiles that match specified criteria."
     },
     "stability":"experimental",
-    "visibility":"public",
+    "visibility":"feature_flag",
+    "feature_flag": "es.user_profile_feature_flag_enabled",
     "headers":{
       "accept": [ "application/json"],
       "content_type": ["application/json"]

+ 2 - 1
rest-api-spec/src/main/resources/rest-api-spec/api/security.update_user_profile_data.json

@@ -5,7 +5,8 @@
       "description":"Update application specific data for the user profile of the given unique ID."
     },
     "stability":"experimental",
-    "visibility":"public",
+    "visibility":"feature_flag",
+    "feature_flag": "es.user_profile_feature_flag_enabled",
     "headers":{
       "accept": [ "application/json"],
       "content_type": ["application/json"]