commit 87a08e83180ff66a4cf41c7f50647bae71f0e967 Author: Dmitrii Filippov Date: Fri Oct 2 15:24:26 2020 +0200 Update Reviewers type in common.ts Change-Id: I850d0db2409791027fd8cfa84505f1416c69474c diff --git a/polygerrit-ui/app/types/common.ts b/polygerrit-ui/app/types/common.ts index 8b02ce9..06e3810 100644 --- a/polygerrit-ui/app/types/common.ts +++ b/polygerrit-ui/app/types/common.ts @@ -150,10 +150,6 @@ export type LabelValueToDescriptionMap = {[labelValue: string]: string}; */ export type LabelInfo = QuickLabelInfo | DetailedLabelInfo; -export type Reviewers = { - REVIEWER?: AccountInfo[]; - CC?: AccountInfo[]; -}; interface LabelCommonInfo { optional?: boolean; // not set if false } @@ -245,6 +241,15 @@ export interface ChangeInfo { } /** + * The reviewers as a map that maps a reviewer state to a list of AccountInfo + * entities. Possible reviewer states are REVIEWER, CC and REMOVED. + * REVIEWER: Users with at least one non-zero vote on the change. + * CC: Users that were added to the change, but have not voted. + * REMOVED: Users that were previously reviewers on the change, but have been removed. + */ +export type Reviewers = Partial>; + +/** * ChangeView request change detail with ALL_REVISIONS option set. * The response always contains current_revision and revisions. */