A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/coder/coder/commit/44fff54897ab545c780f310ae837db9b8830a3d1 below:

avoid displaying 'everyone' group for idp group sync (#18261) · coder/coder@44fff54 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+8

-5

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+8

-5

lines changed Original file line number Diff line number Diff line change

@@ -32,6 +32,7 @@ import { useFormik } from "formik";

32 32

import { Plus, Trash, TriangleAlert } from "lucide-react";

33 33

import { type FC, type KeyboardEventHandler, useId, useState } from "react";

34 34

import { docs } from "utils/docs";

35 +

import { isEveryoneGroup } from "utils/groups";

35 36

import { isUUID } from "utils/uuid";

36 37

import * as Yup from "yup";

37 38

import { ExportPolicyButton } from "./ExportPolicyButton";

@@ -259,15 +260,17 @@ export const IdpGroupSyncForm: FC<IdpGroupSyncFormProps> = ({

259 260

className="min-w-60 max-w-3xl"

260 261

value={coderGroups}

261 262

onChange={setCoderGroups}

262 -

options={groups.map((group) => ({

263 -

label: group.display_name || group.name,

264 -

value: group.id,

265 -

}))}

263 +

options={groups

264 +

.filter((group) => !isEveryoneGroup(group))

265 +

.map((group) => ({

266 +

label: group.display_name || group.name,

267 +

value: group.id,

268 +

}))}

266 269

hidePlaceholderWhenSelected

267 270

placeholder="Select group"

268 271

emptyIndicator={

269 272

<p className="text-center text-md text-content-primary">

270 -

All groups selected

273 +

No more groups to select

271 274

</p>

272 275

}

273 276

/>

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4