From b7e5fcf95e8cce0a59991ea22fa2b3472749b0a9 Mon Sep 17 00:00:00 2001 From: Antoine Vigneau Date: Tue, 4 Jun 2024 23:27:06 +0200 Subject: [PATCH] SC-13426 Align protobuf response with SonarCloud --- sonar-ws/src/main/protobuf/ws-settings.proto | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sonar-ws/src/main/protobuf/ws-settings.proto b/sonar-ws/src/main/protobuf/ws-settings.proto index 03c41000121..7317a62b365 100644 --- a/sonar-ws/src/main/protobuf/ws-settings.proto +++ b/sonar-ws/src/main/protobuf/ws-settings.proto @@ -87,6 +87,8 @@ enum Type { } // Response of GET api/settings/values +//IMPORTANT: As of August 2023 we have to align the protobuf response of values endpoint with SonarCloud, as SonarLint depends on it. +//See https://xtranet-sonarsource.atlassian.net/wiki/spaces/DEV/pages/2878669037/Cross-product+consistency+in+protobuf+Web+endpoints message ValuesWsResponse { repeated Setting settings = 1; repeated string setSecuredSettings = 2; @@ -105,6 +107,7 @@ message Setting { Values parentValues = 7; FieldValues parentFieldValues = 8; } + Origin parentOrigin = 9; } message Values { @@ -118,3 +121,10 @@ message FieldValues { map value = 1; } } + +enum Origin { + UNDEFINED = 0; + INSTANCE = 1; + ORGANIZATION = 2; + PROJECT = 3; +} -- 2.39.5