Allow arbitrary strings as account tags in the FE
This mirrors the BE change:
https://gerrit-review.googlesource.com/c/gerrit/+/316442
Change-Id: I4d84039cc05095396a7e0082ee351fc3a06ab626
diff --git a/polygerrit-ui/app/api/rest-api.ts b/polygerrit-ui/app/api/rest-api.ts
index f3bb39b..3545b16 100644
--- a/polygerrit-ui/app/api/rest-api.ts
+++ b/polygerrit-ui/app/api/rest-api.ts
@@ -30,10 +30,6 @@
* enums =======================================================================
*/
-export enum AccountTag {
- SERVICE_USER = 'SERVICE_USER',
-}
-
/**
* The authentication type that is configured on the server.
* https://gerrit-review.googlesource.com/Documentation/rest-api-config.html#auth-info
@@ -237,7 +233,7 @@
_more_accounts?: boolean; // not set if false
status?: string; // status message of the account
inactive?: boolean; // not set if false
- tags?: AccountTag[];
+ tags?: string[];
}
/**
diff --git a/polygerrit-ui/app/constants/constants.ts b/polygerrit-ui/app/constants/constants.ts
index 84f1c15..2acad49 100644
--- a/polygerrit-ui/app/constants/constants.ts
+++ b/polygerrit-ui/app/constants/constants.ts
@@ -22,7 +22,6 @@
import {DiffPreferencesInfo} from '../types/diff';
import {EditPreferencesInfo, PreferencesInfo} from '../types/common';
import {
- AccountTag,
AuthType,
ChangeStatus,
ConfigParameterInfoType,
@@ -42,7 +41,6 @@
} from '../api/rest-api';
export {
- AccountTag,
AuthType,
ChangeStatus,
ConfigParameterInfoType,
@@ -61,6 +59,10 @@
SubmitType,
};
+export enum AccountTag {
+ SERVICE_USER = 'SERVICE_USER',
+}
+
export enum PrimaryTab {
FILES = 'files',
/**