From 640542d6d2faad042b8c85e58a9a0a59a1366e5f Mon Sep 17 00:00:00 2001 From: Jeff Wilcox <427913+jeffwilcox@users.noreply.github.com> Date: Fri, 12 Jan 2024 12:13:49 -0800 Subject: [PATCH] Misc --- business/features/sudo/sudo.md | 9 ++------- business/organizationCopilot.ts | 1 + 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/business/features/sudo/sudo.md b/business/features/sudo/sudo.md index ff567cde5..fca93b503 100644 --- a/business/features/sudo/sudo.md +++ b/business/features/sudo/sudo.md @@ -33,11 +33,6 @@ Overrides are available to allow the company-specific system to provide the org sudo instance for an organization, if you wish to implement a different approach, or use a different company-internal system for these decisions. -### Debug flags - -There is an environmental off-switch enabled that can turn off sudo, allowing for testing -as a regular user in local environments. That env variable name is `DEBUG_GITHUB_ORG_SUDO_OFF`. - ## portal sudo Portal sudo applies sudo for all organizations configured within the application. @@ -46,7 +41,7 @@ Used by system administrators typically. The original design was to use the sudo configuration from the first/primary GitHub org that was configured in the environment. -### Feature flag: FEATURE_FLAG_ALLOW_PORTAL_SUDO +## Feature flag: FEATURE_FLAG_ALLOW_PORTAL_SUDO > This feature is not on by default. @@ -63,7 +58,7 @@ Can be: For the security group provider, configuration should set `SUDO_PORTAL_SECURITY_GROUP_ID` to the security group ID to use. -### Debug flags +## Debug flags: portal sudo Two environment variables designed for development work exist: diff --git a/business/organizationCopilot.ts b/business/organizationCopilot.ts index 0e071bd64..8081ba09f 100644 --- a/business/organizationCopilot.ts +++ b/business/organizationCopilot.ts @@ -15,6 +15,7 @@ import type { CollectionCopilotSeatsOptions } from '../lib/github/collections'; import { AppPurpose, AppPurposeTypes } from '../lib/github/appPurposes'; import { CacheDefault, getMaxAgeSeconds, getPageSize, symbolizeApiResponse } from './operations/core'; import { Organization } from './organization'; +import { HttpMethod } from '../lib/github'; export type CopilotSeatData = { assignee: {