diff --git a/src/Contracts/DataModels.ts b/src/Contracts/DataModels.ts index 7ea39c4c7..1fb7d8674 100644 --- a/src/Contracts/DataModels.ts +++ b/src/Contracts/DataModels.ts @@ -391,16 +391,6 @@ export interface GeospatialConfig { type: string; } -export interface GatewayDatabaseAccount { - MediaLink: string; - DatabasesLink: string; - MaxMediaStorageUsageInMB: number; - CurrentMediaStorageUsageInMB: number; - EnableMultipleWriteLocations?: boolean; - WritableLocations: RegionEndpoint[]; - ReadableLocations: RegionEndpoint[]; -} - export interface RegionEndpoint { name: string; documentAccountEndpoint: string; @@ -421,13 +411,6 @@ export interface AccountKeys { secondaryReadonlyMasterKey: string; } -export interface AfecFeature { - id: string; - name: string; - properties: { state: string }; - type: string; -} - export interface OperationStatus { status: string; id?: string; @@ -507,91 +490,6 @@ export interface MongoParameters extends RpParameters { analyticalStorageTtl?: number; } -export interface SparkClusterLibrary { - name: string; -} - -export interface Library extends SparkClusterLibrary { - properties: { - kind: "Jar"; - source: { - kind: "HttpsUri"; - uri: string; - libraryFileName: string; - }; - }; -} - -export interface LibraryFeedResponse { - value: Library[]; -} - -export interface ArmResource { - id: string; - location: string; - name: string; - type: string; - tags: { [key: string]: string }; -} - -export interface ArcadiaWorkspaceIdentity { - type: string; - principalId: string; - tenantId: string; -} - -export interface ArcadiaWorkspaceProperties { - managedResourceGroupName: string; - provisioningState: string; - sqlAdministratorLogin: string; - connectivityEndpoints: { - artifacts: string; - dev: string; - spark: string; - sql: string; - web: string; - }; - defaultDataLakeStorage: { - accountUrl: string; - filesystem: string; - }; -} - -export interface ArcadiaWorkspaceFeedResponse { - value: ArcadiaWorkspace[]; -} - -export interface ArcadiaWorkspace extends ArmResource { - identity: ArcadiaWorkspaceIdentity; - properties: ArcadiaWorkspaceProperties; -} - -export interface SparkPoolFeedResponse { - value: SparkPool[]; -} - -export interface SparkPoolProperties { - creationDate: string; - sparkVersion: string; - nodeCount: number; - nodeSize: string; - nodeSizeFamily: string; - provisioningState: string; - autoScale: { - enabled: boolean; - minNodeCount: number; - maxNodeCount: number; - }; - autoPause: { - enabled: boolean; - delayInMinutes: number; - }; -} - -export interface SparkPool extends ArmResource { - properties: SparkPoolProperties; -} - export interface MemoryUsageInfo { freeKB: number; totalKB: number; diff --git a/src/Explorer/ComponentRegisterer.ts b/src/Explorer/ComponentRegisterer.ts index 778e89f02..33589866a 100644 --- a/src/Explorer/ComponentRegisterer.ts +++ b/src/Explorer/ComponentRegisterer.ts @@ -3,10 +3,8 @@ import { DiffEditorComponent } from "./Controls/DiffEditor/DiffEditorComponent"; import { DynamicListComponent } from "./Controls/DynamicList/DynamicListComponent"; import { EditorComponent } from "./Controls/Editor/EditorComponent"; import { JsonEditorComponent } from "./Controls/JsonEditor/JsonEditorComponent"; -import { ThroughputInputComponentAutoPilotV3 } from "./Controls/ThroughputInput/ThroughputInputComponentAutoPilotV3"; ko.components.register("editor", new EditorComponent()); ko.components.register("json-editor", new JsonEditorComponent()); ko.components.register("diff-editor", new DiffEditorComponent()); ko.components.register("dynamic-list", DynamicListComponent); -ko.components.register("throughput-input-autopilot-v3", ThroughputInputComponentAutoPilotV3); diff --git a/src/Explorer/Controls/Arcadia/ArcadiaMenuPicker.tsx b/src/Explorer/Controls/Arcadia/ArcadiaMenuPicker.tsx deleted file mode 100644 index 04de9a716..000000000 --- a/src/Explorer/Controls/Arcadia/ArcadiaMenuPicker.tsx +++ /dev/null @@ -1,142 +0,0 @@ -import { DefaultButton, IButtonStyles, IContextualMenuItem, IContextualMenuProps } from "@fluentui/react"; -import * as React from "react"; -import { getErrorMessage } from "../../../Common/ErrorHandlingUtils"; -import * as Logger from "../../../Common/Logger"; -import { ArcadiaWorkspace, SparkPool } from "../../../Contracts/DataModels"; - -export interface ArcadiaMenuPickerProps { - selectText?: string; - disableSubmenu?: boolean; - selectedSparkPool: string; - workspaces: ArcadiaWorkspaceItem[]; - onSparkPoolSelect: ( - e: React.MouseEvent | React.KeyboardEvent, - item: IContextualMenuItem - ) => boolean | void; - onCreateNewWorkspaceClicked: () => boolean | void; - onCreateNewSparkPoolClicked: (workspaceResourceId: string) => boolean | void; -} - -interface ArcadiaMenuPickerStates { - selectedSparkPool: string; -} - -export interface ArcadiaWorkspaceItem extends ArcadiaWorkspace { - sparkPools: SparkPool[]; -} - -export class ArcadiaMenuPicker extends React.Component { - constructor(props: ArcadiaMenuPickerProps) { - super(props); - this.state = { - selectedSparkPool: props.selectedSparkPool, - }; - } - - private _onSparkPoolClicked = ( - e: React.MouseEvent | React.KeyboardEvent, - item: IContextualMenuItem - ): boolean | void => { - try { - this.props.onSparkPoolSelect(e, item); - this.setState({ - selectedSparkPool: item.text, - }); - } catch (error) { - Logger.logError(getErrorMessage(error), "ArcadiaMenuPicker/_onSparkPoolClicked"); - throw error; - } - }; - - private _onCreateNewWorkspaceClicked = ( - e: React.MouseEvent | React.KeyboardEvent, - item: IContextualMenuItem - ): boolean | void => { - this.props.onCreateNewWorkspaceClicked(); - }; - - private _onCreateNewSparkPoolClicked = ( - e: React.MouseEvent | React.KeyboardEvent, - item: IContextualMenuItem - ): boolean | void => { - this.props.onCreateNewSparkPoolClicked(item.key); - }; - - public render() { - const { workspaces } = this.props; - let workspaceMenuItems: IContextualMenuItem[] = workspaces.map((workspace) => { - let sparkPoolsMenuProps: IContextualMenuProps = { - items: workspace.sparkPools.map( - (sparkpool): IContextualMenuItem => ({ - key: sparkpool.id, - text: sparkpool.name, - onClick: this._onSparkPoolClicked, - }) - ), - }; - if (!sparkPoolsMenuProps.items.length) { - sparkPoolsMenuProps.items.push({ - key: workspace.id, - text: "Create new spark pool", - onClick: this._onCreateNewSparkPoolClicked, - }); - } - - return { - key: workspace.id, - text: workspace.name, - subMenuProps: this.props.disableSubmenu ? undefined : sparkPoolsMenuProps, - }; - }); - - if (!workspaceMenuItems.length) { - workspaceMenuItems.push({ - key: "create_workspace", - text: "Create new workspace", - onClick: this._onCreateNewWorkspaceClicked, - }); - } - - const dropdownStyle: IButtonStyles = { - root: { - backgroundColor: "transparent", - margin: "auto 5px", - padding: "0", - border: "0", - }, - rootHovered: { - backgroundColor: "transparent", - }, - rootChecked: { - backgroundColor: "transparent", - }, - rootFocused: { - backgroundColor: "transparent", - }, - rootExpanded: { - backgroundColor: "transparent", - }, - flexContainer: { - height: "30px", - border: "1px solid #a6a6a6", - padding: "0 8px", - }, - label: { - fontWeight: "400", - fontSize: "12px", - }, - }; - - return ( - - ); - } -} diff --git a/src/Explorer/Controls/CommandButton/CommandButtonComponent.tsx b/src/Explorer/Controls/CommandButton/CommandButtonComponent.tsx index a514ffffd..f4694cdbc 100644 --- a/src/Explorer/Controls/CommandButton/CommandButtonComponent.tsx +++ b/src/Explorer/Controls/CommandButton/CommandButtonComponent.tsx @@ -1,15 +1,12 @@ -import * as StringUtils from "../../../Utils/StringUtils"; -import { KeyCodes } from "../../../Common/Constants"; -import * as TelemetryProcessor from "../../../Shared/Telemetry/TelemetryProcessor"; -import { Action, ActionModifiers } from "../../../Shared/Telemetry/TelemetryConstants"; -import CollapseChevronDownIcon from "../../../../images/QueryBuilder/CollapseChevronDown_16x.png"; - /** * React component for Command button component. */ - import * as React from "react"; -import { ArcadiaMenuPickerProps } from "../Arcadia/ArcadiaMenuPicker"; +import CollapseChevronDownIcon from "../../../../images/QueryBuilder/CollapseChevronDown_16x.png"; +import { KeyCodes } from "../../../Common/Constants"; +import { Action, ActionModifiers } from "../../../Shared/Telemetry/TelemetryConstants"; +import * as TelemetryProcessor from "../../../Shared/Telemetry/TelemetryProcessor"; +import * as StringUtils from "../../../Utils/StringUtils"; /** * Options for this component @@ -114,15 +111,6 @@ export interface CommandButtonComponentProps { * Aria-label for the button */ ariaLabel: string; - //TODO: generalize customized command bar - /** - * If set to true, will render arcadia picker - */ - isArcadiaPicker?: boolean; - /** - * props to render arcadia picker - */ - arcadiaProps?: ArcadiaMenuPickerProps; } export class CommandButtonComponent extends React.Component { diff --git a/src/Explorer/Controls/Settings/__snapshots__/SettingsComponent.test.tsx.snap b/src/Explorer/Controls/Settings/__snapshots__/SettingsComponent.test.tsx.snap index f22c5a08b..0b67d5371 100644 --- a/src/Explorer/Controls/Settings/__snapshots__/SettingsComponent.test.tsx.snap +++ b/src/Explorer/Controls/Settings/__snapshots__/SettingsComponent.test.tsx.snap @@ -28,12 +28,8 @@ exports[`SettingsComponent renders 1`] = ` "changeFeedPolicy": [Function], "conflictResolutionPolicy": [Function], "container": Explorer { - "_isAfecFeatureRegistered": [Function], "_isInitializingNotebooks": false, - "_refreshSparkEnabledStateForAccount": [Function], "_resetNotebookWorkspace": [Function], - "arcadiaToken": [Function], - "canExceedMaximumValue": [Function], "canSaveQueries": [Function], "closeSidePanel": undefined, "collapsedResourceTreeWidth": 36, @@ -54,797 +50,21 @@ exports[`SettingsComponent renders 1`] = ` "tabsButtons": Array [], }, "databases": [Function], - "gitHubClient": GitHubClient { - "errorCallback": [Function], - "ocktokit": OctokitWithDefaults { - "actions": Object { - "addSelectedRepoToOrgSecret": [Function], - "cancelWorkflowRun": [Function], - "createOrUpdateOrgSecret": [Function], - "createOrUpdateRepoSecret": [Function], - "createOrUpdateSecretForRepo": [Function], - "createRegistrationToken": [Function], - "createRegistrationTokenForOrg": [Function], - "createRegistrationTokenForRepo": [Function], - "createRemoveToken": [Function], - "createRemoveTokenForOrg": [Function], - "createRemoveTokenForRepo": [Function], - "deleteArtifact": [Function], - "deleteOrgSecret": [Function], - "deleteRepoSecret": [Function], - "deleteSecretFromRepo": [Function], - "deleteSelfHostedRunnerFromOrg": [Function], - "deleteSelfHostedRunnerFromRepo": [Function], - "deleteWorkflowRunLogs": [Function], - "downloadArtifact": [Function], - "downloadJobLogsForWorkflowRun": [Function], - "downloadWorkflowJobLogs": [Function], - "downloadWorkflowRunLogs": [Function], - "getArtifact": [Function], - "getJobForWorkflowRun": [Function], - "getOrgPublicKey": [Function], - "getOrgSecret": [Function], - "getPublicKey": [Function], - "getRepoPublicKey": [Function], - "getRepoSecret": [Function], - "getSecret": [Function], - "getSelfHostedRunner": [Function], - "getSelfHostedRunnerForOrg": [Function], - "getSelfHostedRunnerForRepo": [Function], - "getWorkflow": [Function], - "getWorkflowJob": [Function], - "getWorkflowRun": [Function], - "getWorkflowRunUsage": [Function], - "getWorkflowUsage": [Function], - "listArtifactsForRepo": [Function], - "listDownloadsForSelfHostedRunnerApplication": [Function], - "listJobsForWorkflowRun": [Function], - "listOrgSecrets": [Function], - "listRepoSecrets": [Function], - "listRepoWorkflowRuns": [Function], - "listRepoWorkflows": [Function], - "listRunnerApplicationsForOrg": [Function], - "listRunnerApplicationsForRepo": [Function], - "listSecretsForRepo": [Function], - "listSelectedReposForOrgSecret": [Function], - "listSelfHostedRunnersForOrg": [Function], - "listSelfHostedRunnersForRepo": [Function], - "listWorkflowJobLogs": [Function], - "listWorkflowRunArtifacts": [Function], - "listWorkflowRunLogs": [Function], - "listWorkflowRuns": [Function], - "listWorkflowRunsForRepo": [Function], - "reRunWorkflow": [Function], - "removeSelectedRepoFromOrgSecret": [Function], - "removeSelfHostedRunner": [Function], - "setSelectedReposForOrgSecret": [Function], - }, - "activity": Object { - "checkRepoIsStarredByAuthenticatedUser": [Function], - "checkStarringRepo": [Function], - "deleteRepoSubscription": [Function], - "deleteThreadSubscription": [Function], - "getFeeds": [Function], - "getRepoSubscription": [Function], - "getThread": [Function], - "getThreadSubscription": [Function], - "getThreadSubscriptionForAuthenticatedUser": [Function], - "listEventsForAuthenticatedUser": [Function], - "listEventsForOrg": [Function], - "listEventsForUser": [Function], - "listFeeds": [Function], - "listNotifications": [Function], - "listNotificationsForAuthenticatedUser": [Function], - "listNotificationsForRepo": [Function], - "listOrgEventsForAuthenticatedUser": [Function], - "listPublicEvents": [Function], - "listPublicEventsForOrg": [Function], - "listPublicEventsForRepoNetwork": [Function], - "listPublicEventsForUser": [Function], - "listPublicOrgEvents": [Function], - "listReceivedEventsForUser": [Function], - "listReceivedPublicEventsForUser": [Function], - "listRepoEvents": [Function], - "listRepoNotificationsForAuthenticatedUser": [Function], - "listReposStarredByAuthenticatedUser": [Function], - "listReposStarredByUser": [Function], - "listReposWatchedByUser": [Function], - "listStargazersForRepo": [Function], - "listWatchedReposForAuthenticatedUser": [Function], - "listWatchersForRepo": [Function], - "markAsRead": [Function], - "markNotificationsAsRead": [Function], - "markNotificationsAsReadForRepo": [Function], - "markRepoNotificationsAsRead": [Function], - "markThreadAsRead": [Function], - "setRepoSubscription": [Function], - "setThreadSubscription": [Function], - "starRepo": [Function], - "starRepoForAuthenticatedUser": [Function], - "unstarRepo": [Function], - "unstarRepoForAuthenticatedUser": [Function], - }, - "apps": Object { - "addRepoToInstallation": [Function], - "checkAccountIsAssociatedWithAny": [Function], - "checkAccountIsAssociatedWithAnyStubbed": [Function], - "checkToken": [Function], - "createContentAttachment": [Function], - "createFromManifest": [Function], - "createInstallationAccessToken": [Function], - "createInstallationToken": [Function], - "deleteAuthorization": [Function], - "deleteInstallation": [Function], - "deleteToken": [Function], - "getAuthenticated": [Function], - "getBySlug": [Function], - "getInstallation": [Function], - "getOrgInstallation": [Function], - "getRepoInstallation": [Function], - "getSubscriptionPlanForAccount": [Function], - "getSubscriptionPlanForAccountStubbed": [Function], - "getUserInstallation": [Function], - "listAccountsForPlan": [Function], - "listAccountsForPlanStubbed": [Function], - "listAccountsUserOrOrgOnPlan": [Function], - "listAccountsUserOrOrgOnPlanStubbed": [Function], - "listInstallationReposForAuthenticatedUser": [Function], - "listInstallations": [Function], - "listInstallationsForAuthenticatedUser": [Function], - "listMarketplacePurchasesForAuthenticatedUser": [Function], - "listMarketplacePurchasesForAuthenticatedUserStubbed": [Function], - "listPlans": [Function], - "listPlansStubbed": [Function], - "listRepos": [Function], - "listReposAccessibleToInstallation": [Function], - "listSubscriptionsForAuthenticatedUser": [Function], - "listSubscriptionsForAuthenticatedUserStubbed": [Function], - "removeRepoFromInstallation": [Function], - "resetToken": [Function], - "revokeInstallationAccessToken": [Function], - "revokeInstallationToken": [Function], - "suspendInstallation": [Function], - "unsuspendInstallation": [Function], - }, - "auth": [Function], - "checks": Object { - "create": [Function], - "createSuite": [Function], - "get": [Function], - "getSuite": [Function], - "listAnnotations": [Function], - "listForRef": [Function], - "listForSuite": [Function], - "listSuitesForRef": [Function], - "rerequestSuite": [Function], - "setSuitesPreferences": [Function], - "update": [Function], - }, - "codeScanning": Object { - "getAlert": [Function], - "listAlertsForRepo": [Function], - }, - "codesOfConduct": Object { - "getAllCodesOfConduct": [Function], - "getConductCode": [Function], - "getForRepo": [Function], - "listConductCodes": [Function], - }, - "emojis": Object { - "get": [Function], - }, - "gists": Object { - "checkIsStarred": [Function], - "create": [Function], - "createComment": [Function], - "delete": [Function], - "deleteComment": [Function], - "fork": [Function], - "get": [Function], - "getComment": [Function], - "getRevision": [Function], - "list": [Function], - "listComments": [Function], - "listCommits": [Function], - "listForUser": [Function], - "listForks": [Function], - "listPublic": [Function], - "listPublicForUser": [Function], - "listStarred": [Function], - "star": [Function], - "unstar": [Function], - "update": [Function], - "updateComment": [Function], - }, - "git": Object { - "createBlob": [Function], - "createCommit": [Function], - "createRef": [Function], - "createTag": [Function], - "createTree": [Function], - "deleteRef": [Function], - "getBlob": [Function], - "getCommit": [Function], - "getRef": [Function], - "getTag": [Function], - "getTree": [Function], - "listMatchingRefs": [Function], - "updateRef": [Function], - }, - "gitignore": Object { - "getAllTemplates": [Function], - "getTemplate": [Function], - "listTemplates": [Function], - }, - "graphql": [Function], - "hook": [Function], - "interactions": Object { - "addOrUpdateRestrictionsForOrg": [Function], - "addOrUpdateRestrictionsForRepo": [Function], - "getRestrictionsForOrg": [Function], - "getRestrictionsForRepo": [Function], - "removeRestrictionsForOrg": [Function], - "removeRestrictionsForRepo": [Function], - "setRestrictionsForOrg": [Function], - "setRestrictionsForRepo": [Function], - }, - "issues": Object { - "addAssignees": [Function], - "addLabels": [Function], - "checkAssignee": [Function], - "checkUserCanBeAssigned": [Function], - "create": [Function], - "createComment": [Function], - "createLabel": [Function], - "createMilestone": [Function], - "deleteComment": [Function], - "deleteLabel": [Function], - "deleteMilestone": [Function], - "get": [Function], - "getComment": [Function], - "getEvent": [Function], - "getLabel": [Function], - "getMilestone": [Function], - "list": [Function], - "listAssignees": [Function], - "listComments": [Function], - "listCommentsForRepo": [Function], - "listEvents": [Function], - "listEventsForRepo": [Function], - "listEventsForTimeline": [Function], - "listForAuthenticatedUser": [Function], - "listForOrg": [Function], - "listForRepo": [Function], - "listLabelsForMilestone": [Function], - "listLabelsForRepo": [Function], - "listLabelsOnIssue": [Function], - "listMilestones": [Function], - "listMilestonesForRepo": [Function], - "lock": [Function], - "removeAllLabels": [Function], - "removeAssignees": [Function], - "removeLabel": [Function], - "removeLabels": [Function], - "replaceAllLabels": [Function], - "replaceLabels": [Function], - "setLabels": [Function], - "unlock": [Function], - "update": [Function], - "updateComment": [Function], - "updateLabel": [Function], - "updateMilestone": [Function], - }, - "licenses": Object { - "get": [Function], - "getAllCommonlyUsed": [Function], - "getForRepo": [Function], - "listCommonlyUsed": [Function], - }, - "log": Object { - "debug": [Function], - "error": [Function], - "info": [Function], - "warn": [Function], - }, - "markdown": Object { - "render": [Function], - "renderRaw": [Function], - }, - "meta": Object { - "get": [Function], - }, - "migrations": Object { - "cancelImport": [Function], - "deleteArchiveForAuthenticatedUser": [Function], - "deleteArchiveForOrg": [Function], - "downloadArchiveForOrg": [Function], - "getArchiveForAuthenticatedUser": [Function], - "getCommitAuthors": [Function], - "getImportProgress": [Function], - "getImportStatus": [Function], - "getLargeFiles": [Function], - "getStatusForAuthenticatedUser": [Function], - "getStatusForOrg": [Function], - "listForAuthenticatedUser": [Function], - "listForOrg": [Function], - "listReposForOrg": [Function], - "listReposForUser": [Function], - "mapCommitAuthor": [Function], - "setLfsPreference": [Function], - "startForAuthenticatedUser": [Function], - "startForOrg": [Function], - "startImport": [Function], - "unlockRepoForAuthenticatedUser": [Function], - "unlockRepoForOrg": [Function], - "updateImport": [Function], - }, - "orgs": Object { - "addOrUpdateMembership": [Function], - "blockUser": [Function], - "checkBlockedUser": [Function], - "checkMembership": [Function], - "checkMembershipForUser": [Function], - "checkPublicMembership": [Function], - "checkPublicMembershipForUser": [Function], - "concealMembership": [Function], - "convertMemberToOutsideCollaborator": [Function], - "createHook": [Function], - "createInvitation": [Function], - "createWebhook": [Function], - "deleteHook": [Function], - "deleteWebhook": [Function], - "get": [Function], - "getHook": [Function], - "getMembership": [Function], - "getMembershipForAuthenticatedUser": [Function], - "getMembershipForUser": [Function], - "getWebhook": [Function], - "list": [Function], - "listAppInstallations": [Function], - "listBlockedUsers": [Function], - "listForAuthenticatedUser": [Function], - "listForUser": [Function], - "listHooks": [Function], - "listInstallations": [Function], - "listInvitationTeams": [Function], - "listMembers": [Function], - "listMemberships": [Function], - "listMembershipsForAuthenticatedUser": [Function], - "listOutsideCollaborators": [Function], - "listPendingInvitations": [Function], - "listPublicMembers": [Function], - "listWebhooks": [Function], - "pingHook": [Function], - "pingWebhook": [Function], - "publicizeMembership": [Function], - "removeMember": [Function], - "removeMembership": [Function], - "removeMembershipForUser": [Function], - "removeOutsideCollaborator": [Function], - "removePublicMembershipForAuthenticatedUser": [Function], - "setMembershipForUser": [Function], - "setPublicMembershipForAuthenticatedUser": [Function], - "unblockUser": [Function], - "update": [Function], - "updateHook": [Function], - "updateMembership": [Function], - "updateMembershipForAuthenticatedUser": [Function], - "updateWebhook": [Function], - }, - "paginate": [Function], - "projects": Object { - "addCollaborator": [Function], - "createCard": [Function], - "createColumn": [Function], - "createForAuthenticatedUser": [Function], - "createForOrg": [Function], - "createForRepo": [Function], - "delete": [Function], - "deleteCard": [Function], - "deleteColumn": [Function], - "get": [Function], - "getCard": [Function], - "getColumn": [Function], - "getPermissionForUser": [Function], - "listCards": [Function], - "listCollaborators": [Function], - "listColumns": [Function], - "listForOrg": [Function], - "listForRepo": [Function], - "listForUser": [Function], - "moveCard": [Function], - "moveColumn": [Function], - "removeCollaborator": [Function], - "reviewUserPermissionLevel": [Function], - "update": [Function], - "updateCard": [Function], - "updateColumn": [Function], - }, - "pulls": Object { - "checkIfMerged": [Function], - "create": [Function], - "createComment": [Function], - "createReplyForReviewComment": [Function], - "createReview": [Function], - "createReviewComment": [Function], - "createReviewCommentReply": [Function], - "createReviewRequest": [Function], - "deleteComment": [Function], - "deletePendingReview": [Function], - "deleteReviewComment": [Function], - "deleteReviewRequest": [Function], - "dismissReview": [Function], - "get": [Function], - "getComment": [Function], - "getCommentsForReview": [Function], - "getReview": [Function], - "getReviewComment": [Function], - "list": [Function], - "listComments": [Function], - "listCommentsForRepo": [Function], - "listCommentsForReview": [Function], - "listCommits": [Function], - "listFiles": [Function], - "listRequestedReviewers": [Function], - "listReviewComments": [Function], - "listReviewCommentsForRepo": [Function], - "listReviewRequests": [Function], - "listReviews": [Function], - "merge": [Function], - "removeRequestedReviewers": [Function], - "requestReviewers": [Function], - "submitReview": [Function], - "update": [Function], - "updateBranch": [Function], - "updateComment": [Function], - "updateReview": [Function], - "updateReviewComment": [Function], - }, - "rateLimit": Object { - "get": [Function], - }, - "reactions": Object { - "createForCommitComment": [Function], - "createForIssue": [Function], - "createForIssueComment": [Function], - "createForPullRequestReviewComment": [Function], - "createForTeamDiscussionCommentInOrg": [Function], - "createForTeamDiscussionInOrg": [Function], - "delete": [Function], - "deleteForCommitComment": [Function], - "deleteForIssue": [Function], - "deleteForIssueComment": [Function], - "deleteForPullRequestComment": [Function], - "deleteForTeamDiscussion": [Function], - "deleteForTeamDiscussionComment": [Function], - "deleteLegacy": [Function], - "listForCommitComment": [Function], - "listForIssue": [Function], - "listForIssueComment": [Function], - "listForPullRequestReviewComment": [Function], - "listForTeamDiscussionCommentInOrg": [Function], - "listForTeamDiscussionInOrg": [Function], - }, - "repos": Object { - "acceptInvitation": [Function], - "addAppAccessRestrictions": [Function], - "addCollaborator": [Function], - "addDeployKey": [Function], - "addProtectedBranchAdminEnforcement": [Function], - "addProtectedBranchAppRestrictions": [Function], - "addProtectedBranchRequiredSignatures": [Function], - "addProtectedBranchRequiredStatusChecksContexts": [Function], - "addProtectedBranchTeamRestrictions": [Function], - "addProtectedBranchUserRestrictions": [Function], - "addStatusCheckContexts": [Function], - "addTeamAccessRestrictions": [Function], - "addUserAccessRestrictions": [Function], - "checkCollaborator": [Function], - "checkVulnerabilityAlerts": [Function], - "compareCommits": [Function], - "createCommitComment": [Function], - "createCommitSignatureProtection": [Function], - "createCommitStatus": [Function], - "createDeployKey": [Function], - "createDeployment": [Function], - "createDeploymentStatus": [Function], - "createDispatchEvent": [Function], - "createForAuthenticatedUser": [Function], - "createFork": [Function], - "createHook": [Function], - "createInOrg": [Function], - "createOrUpdateFile": [Function], - "createOrUpdateFileContents": [Function], - "createPagesSite": [Function], - "createRelease": [Function], - "createStatus": [Function], - "createUsingTemplate": [Function], - "createWebhook": [Function], - "declineInvitation": [Function], - "delete": [Function], - "deleteAccessRestrictions": [Function], - "deleteAdminBranchProtection": [Function], - "deleteBranchProtection": [Function], - "deleteCommitComment": [Function], - "deleteCommitSignatureProtection": [Function], - "deleteDeployKey": [Function], - "deleteDeployment": [Function], - "deleteDownload": [Function], - "deleteFile": [Function], - "deleteHook": [Function], - "deleteInvitation": [Function], - "deletePagesSite": [Function], - "deletePullRequestReviewProtection": [Function], - "deleteRelease": [Function], - "deleteReleaseAsset": [Function], - "deleteWebhook": [Function], - "disableAutomatedSecurityFixes": [Function], - "disablePagesSite": [Function], - "disableVulnerabilityAlerts": [Function], - "downloadArchive": [Function], - "enableAutomatedSecurityFixes": [Function], - "enablePagesSite": [Function], - "enableVulnerabilityAlerts": [Function], - "get": [Function], - "getAccessRestrictions": [Function], - "getAdminBranchProtection": [Function], - "getAllStatusCheckContexts": [Function], - "getAllTopics": [Function], - "getAppsWithAccessToProtectedBranch": [Function], - "getArchiveLink": [Function], - "getBranch": [Function], - "getBranchProtection": [Function], - "getClones": [Function], - "getCodeFrequencyStats": [Function], - "getCollaboratorPermissionLevel": [Function], - "getCombinedStatusForRef": [Function], - "getCommit": [Function], - "getCommitActivityStats": [Function], - "getCommitComment": [Function], - "getCommitSignatureProtection": [Function], - "getCommunityProfileMetrics": [Function], - "getContent": [Function], - "getContents": [Function], - "getContributorsStats": [Function], - "getDeployKey": [Function], - "getDeployment": [Function], - "getDeploymentStatus": [Function], - "getDownload": [Function], - "getHook": [Function], - "getLatestPagesBuild": [Function], - "getLatestRelease": [Function], - "getPages": [Function], - "getPagesBuild": [Function], - "getParticipationStats": [Function], - "getProtectedBranchAdminEnforcement": [Function], - "getProtectedBranchPullRequestReviewEnforcement": [Function], - "getProtectedBranchRequiredSignatures": [Function], - "getProtectedBranchRequiredStatusChecks": [Function], - "getProtectedBranchRestrictions": [Function], - "getPullRequestReviewProtection": [Function], - "getPunchCardStats": [Function], - "getReadme": [Function], - "getRelease": [Function], - "getReleaseAsset": [Function], - "getReleaseByTag": [Function], - "getStatusChecksProtection": [Function], - "getTeamsWithAccessToProtectedBranch": [Function], - "getTopPaths": [Function], - "getTopReferrers": [Function], - "getUsersWithAccessToProtectedBranch": [Function], - "getViews": [Function], - "getWebhook": [Function], - "list": [Function], - "listAssetsForRelease": [Function], - "listBranches": [Function], - "listBranchesForHeadCommit": [Function], - "listCollaborators": [Function], - "listCommentsForCommit": [Function], - "listCommitComments": [Function], - "listCommitCommentsForRepo": [Function], - "listCommitStatusesForRef": [Function], - "listCommits": [Function], - "listContributors": [Function], - "listDeployKeys": [Function], - "listDeploymentStatuses": [Function], - "listDeployments": [Function], - "listDownloads": [Function], - "listForAuthenticatedUser": [Function], - "listForOrg": [Function], - "listForUser": [Function], - "listForks": [Function], - "listHooks": [Function], - "listInvitations": [Function], - "listInvitationsForAuthenticatedUser": [Function], - "listLanguages": [Function], - "listPagesBuilds": [Function], - "listProtectedBranchRequiredStatusChecksContexts": [Function], - "listPublic": [Function], - "listPullRequestsAssociatedWithCommit": [Function], - "listReleaseAssets": [Function], - "listReleases": [Function], - "listStatusesForRef": [Function], - "listTags": [Function], - "listTeams": [Function], - "listTopics": [Function], - "listWebhooks": [Function], - "merge": [Function], - "pingHook": [Function], - "pingWebhook": [Function], - "removeAppAccessRestrictions": [Function], - "removeBranchProtection": [Function], - "removeCollaborator": [Function], - "removeDeployKey": [Function], - "removeProtectedBranchAdminEnforcement": [Function], - "removeProtectedBranchAppRestrictions": [Function], - "removeProtectedBranchPullRequestReviewEnforcement": [Function], - "removeProtectedBranchRequiredSignatures": [Function], - "removeProtectedBranchRequiredStatusChecks": [Function], - "removeProtectedBranchRequiredStatusChecksContexts": [Function], - "removeProtectedBranchRestrictions": [Function], - "removeProtectedBranchTeamRestrictions": [Function], - "removeProtectedBranchUserRestrictions": [Function], - "removeStatusCheckContexts": [Function], - "removeStatusCheckProtection": [Function], - "removeTeamAccessRestrictions": [Function], - "removeUserAccessRestrictions": [Function], - "replaceAllTopics": [Function], - "replaceProtectedBranchAppRestrictions": [Function], - "replaceProtectedBranchRequiredStatusChecksContexts": [Function], - "replaceProtectedBranchTeamRestrictions": [Function], - "replaceProtectedBranchUserRestrictions": [Function], - "replaceTopics": [Function], - "requestPageBuild": [Function], - "requestPagesBuild": [Function], - "retrieveCommunityProfileMetrics": [Function], - "setAdminBranchProtection": [Function], - "setAppAccessRestrictions": [Function], - "setStatusCheckContexts": [Function], - "setTeamAccessRestrictions": [Function], - "setUserAccessRestrictions": [Function], - "testPushHook": [Function], - "testPushWebhook": [Function], - "transfer": [Function], - "update": [Function], - "updateBranchProtection": [Function], - "updateCommitComment": [Function], - "updateHook": [Function], - "updateInformationAboutPagesSite": [Function], - "updateInvitation": [Function], - "updateProtectedBranchPullRequestReviewEnforcement": [Function], - "updateProtectedBranchRequiredStatusChecks": [Function], - "updatePullRequestReviewProtection": [Function], - "updateRelease": [Function], - "updateReleaseAsset": [Function], - "updateStatusCheckPotection": [Function], - "updateWebhook": [Function], - "uploadReleaseAsset": [Function], - }, - "request": [Function], - "search": Object { - "code": [Function], - "commits": [Function], - "issuesAndPullRequests": [Function], - "labels": [Function], - "repos": [Function], - "topics": [Function], - "users": [Function], - }, - "teams": Object { - "addOrUpdateMembershipForUserInOrg": [Function], - "addOrUpdateMembershipInOrg": [Function], - "addOrUpdateProjectInOrg": [Function], - "addOrUpdateProjectPermissionsInOrg": [Function], - "addOrUpdateRepoInOrg": [Function], - "addOrUpdateRepoPermissionsInOrg": [Function], - "checkManagesRepoInOrg": [Function], - "checkPermissionsForProjectInOrg": [Function], - "checkPermissionsForRepoInOrg": [Function], - "create": [Function], - "createDiscussionCommentInOrg": [Function], - "createDiscussionInOrg": [Function], - "deleteDiscussionCommentInOrg": [Function], - "deleteDiscussionInOrg": [Function], - "deleteInOrg": [Function], - "getByName": [Function], - "getDiscussionCommentInOrg": [Function], - "getDiscussionInOrg": [Function], - "getMembershipForUserInOrg": [Function], - "getMembershipInOrg": [Function], - "list": [Function], - "listChildInOrg": [Function], - "listDiscussionCommentsInOrg": [Function], - "listDiscussionsInOrg": [Function], - "listForAuthenticatedUser": [Function], - "listMembersInOrg": [Function], - "listPendingInvitationsInOrg": [Function], - "listProjectsInOrg": [Function], - "listReposInOrg": [Function], - "removeMembershipForUserInOrg": [Function], - "removeMembershipInOrg": [Function], - "removeProjectInOrg": [Function], - "removeRepoInOrg": [Function], - "reviewProjectInOrg": [Function], - "updateDiscussionCommentInOrg": [Function], - "updateDiscussionInOrg": [Function], - "updateInOrg": [Function], - }, - "users": Object { - "addEmailForAuthenticated": [Function], - "addEmails": [Function], - "block": [Function], - "checkBlocked": [Function], - "checkFollowing": [Function], - "checkFollowingForUser": [Function], - "checkPersonIsFollowedByAuthenticated": [Function], - "createGpgKey": [Function], - "createGpgKeyForAuthenticated": [Function], - "createPublicKey": [Function], - "createPublicSshKeyForAuthenticated": [Function], - "deleteEmailForAuthenticated": [Function], - "deleteEmails": [Function], - "deleteGpgKey": [Function], - "deleteGpgKeyForAuthenticated": [Function], - "deletePublicKey": [Function], - "deletePublicSshKeyForAuthenticated": [Function], - "follow": [Function], - "getAuthenticated": [Function], - "getByUsername": [Function], - "getContextForUser": [Function], - "getGpgKey": [Function], - "getGpgKeyForAuthenticated": [Function], - "getPublicKey": [Function], - "getPublicSshKeyForAuthenticated": [Function], - "list": [Function], - "listBlocked": [Function], - "listBlockedByAuthenticated": [Function], - "listEmails": [Function], - "listEmailsForAuthenticated": [Function], - "listFollowedByAuthenticated": [Function], - "listFollowersForAuthenticatedUser": [Function], - "listFollowersForUser": [Function], - "listFollowingForAuthenticatedUser": [Function], - "listFollowingForUser": [Function], - "listGpgKeys": [Function], - "listGpgKeysForAuthenticated": [Function], - "listGpgKeysForUser": [Function], - "listPublicEmails": [Function], - "listPublicEmailsForAuthenticated": [Function], - "listPublicKeys": [Function], - "listPublicKeysForUser": [Function], - "listPublicSshKeysForAuthenticated": [Function], - "setPrimaryEmailVisibilityForAuthenticated": [Function], - "togglePrimaryEmailVisibility": [Function], - "unblock": [Function], - "unfollow": [Function], - "updateAuthenticated": [Function], - }, - }, - }, - "hasStorageAnalyticsAfecFeature": [Function], "isAccountReady": [Function], "isFixedCollectionWithSharedThroughputSupported": [Function], "isHostedDataExplorerEnabled": [Function], "isLeftPaneExpanded": [Function], - "isMongoIndexingEnabled": [Function], "isNotebookEnabled": [Function], "isNotebooksEnabledForAccount": [Function], - "isPublishNotebookPaneEnabled": [Function], "isResourceTokenCollectionNodeSelected": [Function], "isSchemaEnabled": [Function], "isServerlessEnabled": [Function], "isShellEnabled": [Function], - "isSparkEnabled": [Function], - "isSparkEnabledForAccount": [Function], "isSynapseLinkUpdating": [Function], "isTabsContentExpanded": [Function], - "junoClient": JunoClient { - "cachedPinnedRepos": [Function], - }, "memoryUsageInfo": [Function], "notebookBasePath": [Function], "notebookServerInfo": [Function], - "onGitHubClientError": [Function], "onRefreshDatabasesKeyPress": [Function], "onRefreshResourcesClick": [Function], "openSidePanel": undefined, @@ -913,12 +133,8 @@ exports[`SettingsComponent renders 1`] = ` } container={ Explorer { - "_isAfecFeatureRegistered": [Function], "_isInitializingNotebooks": false, - "_refreshSparkEnabledStateForAccount": [Function], "_resetNotebookWorkspace": [Function], - "arcadiaToken": [Function], - "canExceedMaximumValue": [Function], "canSaveQueries": [Function], "closeSidePanel": undefined, "collapsedResourceTreeWidth": 36, @@ -939,797 +155,21 @@ exports[`SettingsComponent renders 1`] = ` "tabsButtons": Array [], }, "databases": [Function], - "gitHubClient": GitHubClient { - "errorCallback": [Function], - "ocktokit": OctokitWithDefaults { - "actions": Object { - "addSelectedRepoToOrgSecret": [Function], - "cancelWorkflowRun": [Function], - "createOrUpdateOrgSecret": [Function], - "createOrUpdateRepoSecret": [Function], - "createOrUpdateSecretForRepo": [Function], - "createRegistrationToken": [Function], - "createRegistrationTokenForOrg": [Function], - "createRegistrationTokenForRepo": [Function], - "createRemoveToken": [Function], - "createRemoveTokenForOrg": [Function], - "createRemoveTokenForRepo": [Function], - "deleteArtifact": [Function], - "deleteOrgSecret": [Function], - "deleteRepoSecret": [Function], - "deleteSecretFromRepo": [Function], - "deleteSelfHostedRunnerFromOrg": [Function], - "deleteSelfHostedRunnerFromRepo": [Function], - "deleteWorkflowRunLogs": [Function], - "downloadArtifact": [Function], - "downloadJobLogsForWorkflowRun": [Function], - "downloadWorkflowJobLogs": [Function], - "downloadWorkflowRunLogs": [Function], - "getArtifact": [Function], - "getJobForWorkflowRun": [Function], - "getOrgPublicKey": [Function], - "getOrgSecret": [Function], - "getPublicKey": [Function], - "getRepoPublicKey": [Function], - "getRepoSecret": [Function], - "getSecret": [Function], - "getSelfHostedRunner": [Function], - "getSelfHostedRunnerForOrg": [Function], - "getSelfHostedRunnerForRepo": [Function], - "getWorkflow": [Function], - "getWorkflowJob": [Function], - "getWorkflowRun": [Function], - "getWorkflowRunUsage": [Function], - "getWorkflowUsage": [Function], - "listArtifactsForRepo": [Function], - "listDownloadsForSelfHostedRunnerApplication": [Function], - "listJobsForWorkflowRun": [Function], - "listOrgSecrets": [Function], - "listRepoSecrets": [Function], - "listRepoWorkflowRuns": [Function], - "listRepoWorkflows": [Function], - "listRunnerApplicationsForOrg": [Function], - "listRunnerApplicationsForRepo": [Function], - "listSecretsForRepo": [Function], - "listSelectedReposForOrgSecret": [Function], - "listSelfHostedRunnersForOrg": [Function], - "listSelfHostedRunnersForRepo": [Function], - "listWorkflowJobLogs": [Function], - "listWorkflowRunArtifacts": [Function], - "listWorkflowRunLogs": [Function], - "listWorkflowRuns": [Function], - "listWorkflowRunsForRepo": [Function], - "reRunWorkflow": [Function], - "removeSelectedRepoFromOrgSecret": [Function], - "removeSelfHostedRunner": [Function], - "setSelectedReposForOrgSecret": [Function], - }, - "activity": Object { - "checkRepoIsStarredByAuthenticatedUser": [Function], - "checkStarringRepo": [Function], - "deleteRepoSubscription": [Function], - "deleteThreadSubscription": [Function], - "getFeeds": [Function], - "getRepoSubscription": [Function], - "getThread": [Function], - "getThreadSubscription": [Function], - "getThreadSubscriptionForAuthenticatedUser": [Function], - "listEventsForAuthenticatedUser": [Function], - "listEventsForOrg": [Function], - "listEventsForUser": [Function], - "listFeeds": [Function], - "listNotifications": [Function], - "listNotificationsForAuthenticatedUser": [Function], - "listNotificationsForRepo": [Function], - "listOrgEventsForAuthenticatedUser": [Function], - "listPublicEvents": [Function], - "listPublicEventsForOrg": [Function], - "listPublicEventsForRepoNetwork": [Function], - "listPublicEventsForUser": [Function], - "listPublicOrgEvents": [Function], - "listReceivedEventsForUser": [Function], - "listReceivedPublicEventsForUser": [Function], - "listRepoEvents": [Function], - "listRepoNotificationsForAuthenticatedUser": [Function], - "listReposStarredByAuthenticatedUser": [Function], - "listReposStarredByUser": [Function], - "listReposWatchedByUser": [Function], - "listStargazersForRepo": [Function], - "listWatchedReposForAuthenticatedUser": [Function], - "listWatchersForRepo": [Function], - "markAsRead": [Function], - "markNotificationsAsRead": [Function], - "markNotificationsAsReadForRepo": [Function], - "markRepoNotificationsAsRead": [Function], - "markThreadAsRead": [Function], - "setRepoSubscription": [Function], - "setThreadSubscription": [Function], - "starRepo": [Function], - "starRepoForAuthenticatedUser": [Function], - "unstarRepo": [Function], - "unstarRepoForAuthenticatedUser": [Function], - }, - "apps": Object { - "addRepoToInstallation": [Function], - "checkAccountIsAssociatedWithAny": [Function], - "checkAccountIsAssociatedWithAnyStubbed": [Function], - "checkToken": [Function], - "createContentAttachment": [Function], - "createFromManifest": [Function], - "createInstallationAccessToken": [Function], - "createInstallationToken": [Function], - "deleteAuthorization": [Function], - "deleteInstallation": [Function], - "deleteToken": [Function], - "getAuthenticated": [Function], - "getBySlug": [Function], - "getInstallation": [Function], - "getOrgInstallation": [Function], - "getRepoInstallation": [Function], - "getSubscriptionPlanForAccount": [Function], - "getSubscriptionPlanForAccountStubbed": [Function], - "getUserInstallation": [Function], - "listAccountsForPlan": [Function], - "listAccountsForPlanStubbed": [Function], - "listAccountsUserOrOrgOnPlan": [Function], - "listAccountsUserOrOrgOnPlanStubbed": [Function], - "listInstallationReposForAuthenticatedUser": [Function], - "listInstallations": [Function], - "listInstallationsForAuthenticatedUser": [Function], - "listMarketplacePurchasesForAuthenticatedUser": [Function], - "listMarketplacePurchasesForAuthenticatedUserStubbed": [Function], - "listPlans": [Function], - "listPlansStubbed": [Function], - "listRepos": [Function], - "listReposAccessibleToInstallation": [Function], - "listSubscriptionsForAuthenticatedUser": [Function], - "listSubscriptionsForAuthenticatedUserStubbed": [Function], - "removeRepoFromInstallation": [Function], - "resetToken": [Function], - "revokeInstallationAccessToken": [Function], - "revokeInstallationToken": [Function], - "suspendInstallation": [Function], - "unsuspendInstallation": [Function], - }, - "auth": [Function], - "checks": Object { - "create": [Function], - "createSuite": [Function], - "get": [Function], - "getSuite": [Function], - "listAnnotations": [Function], - "listForRef": [Function], - "listForSuite": [Function], - "listSuitesForRef": [Function], - "rerequestSuite": [Function], - "setSuitesPreferences": [Function], - "update": [Function], - }, - "codeScanning": Object { - "getAlert": [Function], - "listAlertsForRepo": [Function], - }, - "codesOfConduct": Object { - "getAllCodesOfConduct": [Function], - "getConductCode": [Function], - "getForRepo": [Function], - "listConductCodes": [Function], - }, - "emojis": Object { - "get": [Function], - }, - "gists": Object { - "checkIsStarred": [Function], - "create": [Function], - "createComment": [Function], - "delete": [Function], - "deleteComment": [Function], - "fork": [Function], - "get": [Function], - "getComment": [Function], - "getRevision": [Function], - "list": [Function], - "listComments": [Function], - "listCommits": [Function], - "listForUser": [Function], - "listForks": [Function], - "listPublic": [Function], - "listPublicForUser": [Function], - "listStarred": [Function], - "star": [Function], - "unstar": [Function], - "update": [Function], - "updateComment": [Function], - }, - "git": Object { - "createBlob": [Function], - "createCommit": [Function], - "createRef": [Function], - "createTag": [Function], - "createTree": [Function], - "deleteRef": [Function], - "getBlob": [Function], - "getCommit": [Function], - "getRef": [Function], - "getTag": [Function], - "getTree": [Function], - "listMatchingRefs": [Function], - "updateRef": [Function], - }, - "gitignore": Object { - "getAllTemplates": [Function], - "getTemplate": [Function], - "listTemplates": [Function], - }, - "graphql": [Function], - "hook": [Function], - "interactions": Object { - "addOrUpdateRestrictionsForOrg": [Function], - "addOrUpdateRestrictionsForRepo": [Function], - "getRestrictionsForOrg": [Function], - "getRestrictionsForRepo": [Function], - "removeRestrictionsForOrg": [Function], - "removeRestrictionsForRepo": [Function], - "setRestrictionsForOrg": [Function], - "setRestrictionsForRepo": [Function], - }, - "issues": Object { - "addAssignees": [Function], - "addLabels": [Function], - "checkAssignee": [Function], - "checkUserCanBeAssigned": [Function], - "create": [Function], - "createComment": [Function], - "createLabel": [Function], - "createMilestone": [Function], - "deleteComment": [Function], - "deleteLabel": [Function], - "deleteMilestone": [Function], - "get": [Function], - "getComment": [Function], - "getEvent": [Function], - "getLabel": [Function], - "getMilestone": [Function], - "list": [Function], - "listAssignees": [Function], - "listComments": [Function], - "listCommentsForRepo": [Function], - "listEvents": [Function], - "listEventsForRepo": [Function], - "listEventsForTimeline": [Function], - "listForAuthenticatedUser": [Function], - "listForOrg": [Function], - "listForRepo": [Function], - "listLabelsForMilestone": [Function], - "listLabelsForRepo": [Function], - "listLabelsOnIssue": [Function], - "listMilestones": [Function], - "listMilestonesForRepo": [Function], - "lock": [Function], - "removeAllLabels": [Function], - "removeAssignees": [Function], - "removeLabel": [Function], - "removeLabels": [Function], - "replaceAllLabels": [Function], - "replaceLabels": [Function], - "setLabels": [Function], - "unlock": [Function], - "update": [Function], - "updateComment": [Function], - "updateLabel": [Function], - "updateMilestone": [Function], - }, - "licenses": Object { - "get": [Function], - "getAllCommonlyUsed": [Function], - "getForRepo": [Function], - "listCommonlyUsed": [Function], - }, - "log": Object { - "debug": [Function], - "error": [Function], - "info": [Function], - "warn": [Function], - }, - "markdown": Object { - "render": [Function], - "renderRaw": [Function], - }, - "meta": Object { - "get": [Function], - }, - "migrations": Object { - "cancelImport": [Function], - "deleteArchiveForAuthenticatedUser": [Function], - "deleteArchiveForOrg": [Function], - "downloadArchiveForOrg": [Function], - "getArchiveForAuthenticatedUser": [Function], - "getCommitAuthors": [Function], - "getImportProgress": [Function], - "getImportStatus": [Function], - "getLargeFiles": [Function], - "getStatusForAuthenticatedUser": [Function], - "getStatusForOrg": [Function], - "listForAuthenticatedUser": [Function], - "listForOrg": [Function], - "listReposForOrg": [Function], - "listReposForUser": [Function], - "mapCommitAuthor": [Function], - "setLfsPreference": [Function], - "startForAuthenticatedUser": [Function], - "startForOrg": [Function], - "startImport": [Function], - "unlockRepoForAuthenticatedUser": [Function], - "unlockRepoForOrg": [Function], - "updateImport": [Function], - }, - "orgs": Object { - "addOrUpdateMembership": [Function], - "blockUser": [Function], - "checkBlockedUser": [Function], - "checkMembership": [Function], - "checkMembershipForUser": [Function], - "checkPublicMembership": [Function], - "checkPublicMembershipForUser": [Function], - "concealMembership": [Function], - "convertMemberToOutsideCollaborator": [Function], - "createHook": [Function], - "createInvitation": [Function], - "createWebhook": [Function], - "deleteHook": [Function], - "deleteWebhook": [Function], - "get": [Function], - "getHook": [Function], - "getMembership": [Function], - "getMembershipForAuthenticatedUser": [Function], - "getMembershipForUser": [Function], - "getWebhook": [Function], - "list": [Function], - "listAppInstallations": [Function], - "listBlockedUsers": [Function], - "listForAuthenticatedUser": [Function], - "listForUser": [Function], - "listHooks": [Function], - "listInstallations": [Function], - "listInvitationTeams": [Function], - "listMembers": [Function], - "listMemberships": [Function], - "listMembershipsForAuthenticatedUser": [Function], - "listOutsideCollaborators": [Function], - "listPendingInvitations": [Function], - "listPublicMembers": [Function], - "listWebhooks": [Function], - "pingHook": [Function], - "pingWebhook": [Function], - "publicizeMembership": [Function], - "removeMember": [Function], - "removeMembership": [Function], - "removeMembershipForUser": [Function], - "removeOutsideCollaborator": [Function], - "removePublicMembershipForAuthenticatedUser": [Function], - "setMembershipForUser": [Function], - "setPublicMembershipForAuthenticatedUser": [Function], - "unblockUser": [Function], - "update": [Function], - "updateHook": [Function], - "updateMembership": [Function], - "updateMembershipForAuthenticatedUser": [Function], - "updateWebhook": [Function], - }, - "paginate": [Function], - "projects": Object { - "addCollaborator": [Function], - "createCard": [Function], - "createColumn": [Function], - "createForAuthenticatedUser": [Function], - "createForOrg": [Function], - "createForRepo": [Function], - "delete": [Function], - "deleteCard": [Function], - "deleteColumn": [Function], - "get": [Function], - "getCard": [Function], - "getColumn": [Function], - "getPermissionForUser": [Function], - "listCards": [Function], - "listCollaborators": [Function], - "listColumns": [Function], - "listForOrg": [Function], - "listForRepo": [Function], - "listForUser": [Function], - "moveCard": [Function], - "moveColumn": [Function], - "removeCollaborator": [Function], - "reviewUserPermissionLevel": [Function], - "update": [Function], - "updateCard": [Function], - "updateColumn": [Function], - }, - "pulls": Object { - "checkIfMerged": [Function], - "create": [Function], - "createComment": [Function], - "createReplyForReviewComment": [Function], - "createReview": [Function], - "createReviewComment": [Function], - "createReviewCommentReply": [Function], - "createReviewRequest": [Function], - "deleteComment": [Function], - "deletePendingReview": [Function], - "deleteReviewComment": [Function], - "deleteReviewRequest": [Function], - "dismissReview": [Function], - "get": [Function], - "getComment": [Function], - "getCommentsForReview": [Function], - "getReview": [Function], - "getReviewComment": [Function], - "list": [Function], - "listComments": [Function], - "listCommentsForRepo": [Function], - "listCommentsForReview": [Function], - "listCommits": [Function], - "listFiles": [Function], - "listRequestedReviewers": [Function], - "listReviewComments": [Function], - "listReviewCommentsForRepo": [Function], - "listReviewRequests": [Function], - "listReviews": [Function], - "merge": [Function], - "removeRequestedReviewers": [Function], - "requestReviewers": [Function], - "submitReview": [Function], - "update": [Function], - "updateBranch": [Function], - "updateComment": [Function], - "updateReview": [Function], - "updateReviewComment": [Function], - }, - "rateLimit": Object { - "get": [Function], - }, - "reactions": Object { - "createForCommitComment": [Function], - "createForIssue": [Function], - "createForIssueComment": [Function], - "createForPullRequestReviewComment": [Function], - "createForTeamDiscussionCommentInOrg": [Function], - "createForTeamDiscussionInOrg": [Function], - "delete": [Function], - "deleteForCommitComment": [Function], - "deleteForIssue": [Function], - "deleteForIssueComment": [Function], - "deleteForPullRequestComment": [Function], - "deleteForTeamDiscussion": [Function], - "deleteForTeamDiscussionComment": [Function], - "deleteLegacy": [Function], - "listForCommitComment": [Function], - "listForIssue": [Function], - "listForIssueComment": [Function], - "listForPullRequestReviewComment": [Function], - "listForTeamDiscussionCommentInOrg": [Function], - "listForTeamDiscussionInOrg": [Function], - }, - "repos": Object { - "acceptInvitation": [Function], - "addAppAccessRestrictions": [Function], - "addCollaborator": [Function], - "addDeployKey": [Function], - "addProtectedBranchAdminEnforcement": [Function], - "addProtectedBranchAppRestrictions": [Function], - "addProtectedBranchRequiredSignatures": [Function], - "addProtectedBranchRequiredStatusChecksContexts": [Function], - "addProtectedBranchTeamRestrictions": [Function], - "addProtectedBranchUserRestrictions": [Function], - "addStatusCheckContexts": [Function], - "addTeamAccessRestrictions": [Function], - "addUserAccessRestrictions": [Function], - "checkCollaborator": [Function], - "checkVulnerabilityAlerts": [Function], - "compareCommits": [Function], - "createCommitComment": [Function], - "createCommitSignatureProtection": [Function], - "createCommitStatus": [Function], - "createDeployKey": [Function], - "createDeployment": [Function], - "createDeploymentStatus": [Function], - "createDispatchEvent": [Function], - "createForAuthenticatedUser": [Function], - "createFork": [Function], - "createHook": [Function], - "createInOrg": [Function], - "createOrUpdateFile": [Function], - "createOrUpdateFileContents": [Function], - "createPagesSite": [Function], - "createRelease": [Function], - "createStatus": [Function], - "createUsingTemplate": [Function], - "createWebhook": [Function], - "declineInvitation": [Function], - "delete": [Function], - "deleteAccessRestrictions": [Function], - "deleteAdminBranchProtection": [Function], - "deleteBranchProtection": [Function], - "deleteCommitComment": [Function], - "deleteCommitSignatureProtection": [Function], - "deleteDeployKey": [Function], - "deleteDeployment": [Function], - "deleteDownload": [Function], - "deleteFile": [Function], - "deleteHook": [Function], - "deleteInvitation": [Function], - "deletePagesSite": [Function], - "deletePullRequestReviewProtection": [Function], - "deleteRelease": [Function], - "deleteReleaseAsset": [Function], - "deleteWebhook": [Function], - "disableAutomatedSecurityFixes": [Function], - "disablePagesSite": [Function], - "disableVulnerabilityAlerts": [Function], - "downloadArchive": [Function], - "enableAutomatedSecurityFixes": [Function], - "enablePagesSite": [Function], - "enableVulnerabilityAlerts": [Function], - "get": [Function], - "getAccessRestrictions": [Function], - "getAdminBranchProtection": [Function], - "getAllStatusCheckContexts": [Function], - "getAllTopics": [Function], - "getAppsWithAccessToProtectedBranch": [Function], - "getArchiveLink": [Function], - "getBranch": [Function], - "getBranchProtection": [Function], - "getClones": [Function], - "getCodeFrequencyStats": [Function], - "getCollaboratorPermissionLevel": [Function], - "getCombinedStatusForRef": [Function], - "getCommit": [Function], - "getCommitActivityStats": [Function], - "getCommitComment": [Function], - "getCommitSignatureProtection": [Function], - "getCommunityProfileMetrics": [Function], - "getContent": [Function], - "getContents": [Function], - "getContributorsStats": [Function], - "getDeployKey": [Function], - "getDeployment": [Function], - "getDeploymentStatus": [Function], - "getDownload": [Function], - "getHook": [Function], - "getLatestPagesBuild": [Function], - "getLatestRelease": [Function], - "getPages": [Function], - "getPagesBuild": [Function], - "getParticipationStats": [Function], - "getProtectedBranchAdminEnforcement": [Function], - "getProtectedBranchPullRequestReviewEnforcement": [Function], - "getProtectedBranchRequiredSignatures": [Function], - "getProtectedBranchRequiredStatusChecks": [Function], - "getProtectedBranchRestrictions": [Function], - "getPullRequestReviewProtection": [Function], - "getPunchCardStats": [Function], - "getReadme": [Function], - "getRelease": [Function], - "getReleaseAsset": [Function], - "getReleaseByTag": [Function], - "getStatusChecksProtection": [Function], - "getTeamsWithAccessToProtectedBranch": [Function], - "getTopPaths": [Function], - "getTopReferrers": [Function], - "getUsersWithAccessToProtectedBranch": [Function], - "getViews": [Function], - "getWebhook": [Function], - "list": [Function], - "listAssetsForRelease": [Function], - "listBranches": [Function], - "listBranchesForHeadCommit": [Function], - "listCollaborators": [Function], - "listCommentsForCommit": [Function], - "listCommitComments": [Function], - "listCommitCommentsForRepo": [Function], - "listCommitStatusesForRef": [Function], - "listCommits": [Function], - "listContributors": [Function], - "listDeployKeys": [Function], - "listDeploymentStatuses": [Function], - "listDeployments": [Function], - "listDownloads": [Function], - "listForAuthenticatedUser": [Function], - "listForOrg": [Function], - "listForUser": [Function], - "listForks": [Function], - "listHooks": [Function], - "listInvitations": [Function], - "listInvitationsForAuthenticatedUser": [Function], - "listLanguages": [Function], - "listPagesBuilds": [Function], - "listProtectedBranchRequiredStatusChecksContexts": [Function], - "listPublic": [Function], - "listPullRequestsAssociatedWithCommit": [Function], - "listReleaseAssets": [Function], - "listReleases": [Function], - "listStatusesForRef": [Function], - "listTags": [Function], - "listTeams": [Function], - "listTopics": [Function], - "listWebhooks": [Function], - "merge": [Function], - "pingHook": [Function], - "pingWebhook": [Function], - "removeAppAccessRestrictions": [Function], - "removeBranchProtection": [Function], - "removeCollaborator": [Function], - "removeDeployKey": [Function], - "removeProtectedBranchAdminEnforcement": [Function], - "removeProtectedBranchAppRestrictions": [Function], - "removeProtectedBranchPullRequestReviewEnforcement": [Function], - "removeProtectedBranchRequiredSignatures": [Function], - "removeProtectedBranchRequiredStatusChecks": [Function], - "removeProtectedBranchRequiredStatusChecksContexts": [Function], - "removeProtectedBranchRestrictions": [Function], - "removeProtectedBranchTeamRestrictions": [Function], - "removeProtectedBranchUserRestrictions": [Function], - "removeStatusCheckContexts": [Function], - "removeStatusCheckProtection": [Function], - "removeTeamAccessRestrictions": [Function], - "removeUserAccessRestrictions": [Function], - "replaceAllTopics": [Function], - "replaceProtectedBranchAppRestrictions": [Function], - "replaceProtectedBranchRequiredStatusChecksContexts": [Function], - "replaceProtectedBranchTeamRestrictions": [Function], - "replaceProtectedBranchUserRestrictions": [Function], - "replaceTopics": [Function], - "requestPageBuild": [Function], - "requestPagesBuild": [Function], - "retrieveCommunityProfileMetrics": [Function], - "setAdminBranchProtection": [Function], - "setAppAccessRestrictions": [Function], - "setStatusCheckContexts": [Function], - "setTeamAccessRestrictions": [Function], - "setUserAccessRestrictions": [Function], - "testPushHook": [Function], - "testPushWebhook": [Function], - "transfer": [Function], - "update": [Function], - "updateBranchProtection": [Function], - "updateCommitComment": [Function], - "updateHook": [Function], - "updateInformationAboutPagesSite": [Function], - "updateInvitation": [Function], - "updateProtectedBranchPullRequestReviewEnforcement": [Function], - "updateProtectedBranchRequiredStatusChecks": [Function], - "updatePullRequestReviewProtection": [Function], - "updateRelease": [Function], - "updateReleaseAsset": [Function], - "updateStatusCheckPotection": [Function], - "updateWebhook": [Function], - "uploadReleaseAsset": [Function], - }, - "request": [Function], - "search": Object { - "code": [Function], - "commits": [Function], - "issuesAndPullRequests": [Function], - "labels": [Function], - "repos": [Function], - "topics": [Function], - "users": [Function], - }, - "teams": Object { - "addOrUpdateMembershipForUserInOrg": [Function], - "addOrUpdateMembershipInOrg": [Function], - "addOrUpdateProjectInOrg": [Function], - "addOrUpdateProjectPermissionsInOrg": [Function], - "addOrUpdateRepoInOrg": [Function], - "addOrUpdateRepoPermissionsInOrg": [Function], - "checkManagesRepoInOrg": [Function], - "checkPermissionsForProjectInOrg": [Function], - "checkPermissionsForRepoInOrg": [Function], - "create": [Function], - "createDiscussionCommentInOrg": [Function], - "createDiscussionInOrg": [Function], - "deleteDiscussionCommentInOrg": [Function], - "deleteDiscussionInOrg": [Function], - "deleteInOrg": [Function], - "getByName": [Function], - "getDiscussionCommentInOrg": [Function], - "getDiscussionInOrg": [Function], - "getMembershipForUserInOrg": [Function], - "getMembershipInOrg": [Function], - "list": [Function], - "listChildInOrg": [Function], - "listDiscussionCommentsInOrg": [Function], - "listDiscussionsInOrg": [Function], - "listForAuthenticatedUser": [Function], - "listMembersInOrg": [Function], - "listPendingInvitationsInOrg": [Function], - "listProjectsInOrg": [Function], - "listReposInOrg": [Function], - "removeMembershipForUserInOrg": [Function], - "removeMembershipInOrg": [Function], - "removeProjectInOrg": [Function], - "removeRepoInOrg": [Function], - "reviewProjectInOrg": [Function], - "updateDiscussionCommentInOrg": [Function], - "updateDiscussionInOrg": [Function], - "updateInOrg": [Function], - }, - "users": Object { - "addEmailForAuthenticated": [Function], - "addEmails": [Function], - "block": [Function], - "checkBlocked": [Function], - "checkFollowing": [Function], - "checkFollowingForUser": [Function], - "checkPersonIsFollowedByAuthenticated": [Function], - "createGpgKey": [Function], - "createGpgKeyForAuthenticated": [Function], - "createPublicKey": [Function], - "createPublicSshKeyForAuthenticated": [Function], - "deleteEmailForAuthenticated": [Function], - "deleteEmails": [Function], - "deleteGpgKey": [Function], - "deleteGpgKeyForAuthenticated": [Function], - "deletePublicKey": [Function], - "deletePublicSshKeyForAuthenticated": [Function], - "follow": [Function], - "getAuthenticated": [Function], - "getByUsername": [Function], - "getContextForUser": [Function], - "getGpgKey": [Function], - "getGpgKeyForAuthenticated": [Function], - "getPublicKey": [Function], - "getPublicSshKeyForAuthenticated": [Function], - "list": [Function], - "listBlocked": [Function], - "listBlockedByAuthenticated": [Function], - "listEmails": [Function], - "listEmailsForAuthenticated": [Function], - "listFollowedByAuthenticated": [Function], - "listFollowersForAuthenticatedUser": [Function], - "listFollowersForUser": [Function], - "listFollowingForAuthenticatedUser": [Function], - "listFollowingForUser": [Function], - "listGpgKeys": [Function], - "listGpgKeysForAuthenticated": [Function], - "listGpgKeysForUser": [Function], - "listPublicEmails": [Function], - "listPublicEmailsForAuthenticated": [Function], - "listPublicKeys": [Function], - "listPublicKeysForUser": [Function], - "listPublicSshKeysForAuthenticated": [Function], - "setPrimaryEmailVisibilityForAuthenticated": [Function], - "togglePrimaryEmailVisibility": [Function], - "unblock": [Function], - "unfollow": [Function], - "updateAuthenticated": [Function], - }, - }, - }, - "hasStorageAnalyticsAfecFeature": [Function], "isAccountReady": [Function], "isFixedCollectionWithSharedThroughputSupported": [Function], "isHostedDataExplorerEnabled": [Function], "isLeftPaneExpanded": [Function], - "isMongoIndexingEnabled": [Function], "isNotebookEnabled": [Function], "isNotebooksEnabledForAccount": [Function], - "isPublishNotebookPaneEnabled": [Function], "isResourceTokenCollectionNodeSelected": [Function], "isSchemaEnabled": [Function], "isServerlessEnabled": [Function], "isShellEnabled": [Function], - "isSparkEnabled": [Function], - "isSparkEnabledForAccount": [Function], "isSynapseLinkUpdating": [Function], "isTabsContentExpanded": [Function], - "junoClient": JunoClient { - "cachedPinnedRepos": [Function], - }, "memoryUsageInfo": [Function], "notebookBasePath": [Function], "notebookServerInfo": [Function], - "onGitHubClientError": [Function], "onRefreshDatabasesKeyPress": [Function], "onRefreshResourcesClick": [Function], "openSidePanel": undefined, @@ -1811,12 +251,8 @@ exports[`SettingsComponent renders 1`] = ` "changeFeedPolicy": [Function], "conflictResolutionPolicy": [Function], "container": Explorer { - "_isAfecFeatureRegistered": [Function], "_isInitializingNotebooks": false, - "_refreshSparkEnabledStateForAccount": [Function], "_resetNotebookWorkspace": [Function], - "arcadiaToken": [Function], - "canExceedMaximumValue": [Function], "canSaveQueries": [Function], "closeSidePanel": undefined, "collapsedResourceTreeWidth": 36, @@ -1837,797 +273,21 @@ exports[`SettingsComponent renders 1`] = ` "tabsButtons": Array [], }, "databases": [Function], - "gitHubClient": GitHubClient { - "errorCallback": [Function], - "ocktokit": OctokitWithDefaults { - "actions": Object { - "addSelectedRepoToOrgSecret": [Function], - "cancelWorkflowRun": [Function], - "createOrUpdateOrgSecret": [Function], - "createOrUpdateRepoSecret": [Function], - "createOrUpdateSecretForRepo": [Function], - "createRegistrationToken": [Function], - "createRegistrationTokenForOrg": [Function], - "createRegistrationTokenForRepo": [Function], - "createRemoveToken": [Function], - "createRemoveTokenForOrg": [Function], - "createRemoveTokenForRepo": [Function], - "deleteArtifact": [Function], - "deleteOrgSecret": [Function], - "deleteRepoSecret": [Function], - "deleteSecretFromRepo": [Function], - "deleteSelfHostedRunnerFromOrg": [Function], - "deleteSelfHostedRunnerFromRepo": [Function], - "deleteWorkflowRunLogs": [Function], - "downloadArtifact": [Function], - "downloadJobLogsForWorkflowRun": [Function], - "downloadWorkflowJobLogs": [Function], - "downloadWorkflowRunLogs": [Function], - "getArtifact": [Function], - "getJobForWorkflowRun": [Function], - "getOrgPublicKey": [Function], - "getOrgSecret": [Function], - "getPublicKey": [Function], - "getRepoPublicKey": [Function], - "getRepoSecret": [Function], - "getSecret": [Function], - "getSelfHostedRunner": [Function], - "getSelfHostedRunnerForOrg": [Function], - "getSelfHostedRunnerForRepo": [Function], - "getWorkflow": [Function], - "getWorkflowJob": [Function], - "getWorkflowRun": [Function], - "getWorkflowRunUsage": [Function], - "getWorkflowUsage": [Function], - "listArtifactsForRepo": [Function], - "listDownloadsForSelfHostedRunnerApplication": [Function], - "listJobsForWorkflowRun": [Function], - "listOrgSecrets": [Function], - "listRepoSecrets": [Function], - "listRepoWorkflowRuns": [Function], - "listRepoWorkflows": [Function], - "listRunnerApplicationsForOrg": [Function], - "listRunnerApplicationsForRepo": [Function], - "listSecretsForRepo": [Function], - "listSelectedReposForOrgSecret": [Function], - "listSelfHostedRunnersForOrg": [Function], - "listSelfHostedRunnersForRepo": [Function], - "listWorkflowJobLogs": [Function], - "listWorkflowRunArtifacts": [Function], - "listWorkflowRunLogs": [Function], - "listWorkflowRuns": [Function], - "listWorkflowRunsForRepo": [Function], - "reRunWorkflow": [Function], - "removeSelectedRepoFromOrgSecret": [Function], - "removeSelfHostedRunner": [Function], - "setSelectedReposForOrgSecret": [Function], - }, - "activity": Object { - "checkRepoIsStarredByAuthenticatedUser": [Function], - "checkStarringRepo": [Function], - "deleteRepoSubscription": [Function], - "deleteThreadSubscription": [Function], - "getFeeds": [Function], - "getRepoSubscription": [Function], - "getThread": [Function], - "getThreadSubscription": [Function], - "getThreadSubscriptionForAuthenticatedUser": [Function], - "listEventsForAuthenticatedUser": [Function], - "listEventsForOrg": [Function], - "listEventsForUser": [Function], - "listFeeds": [Function], - "listNotifications": [Function], - "listNotificationsForAuthenticatedUser": [Function], - "listNotificationsForRepo": [Function], - "listOrgEventsForAuthenticatedUser": [Function], - "listPublicEvents": [Function], - "listPublicEventsForOrg": [Function], - "listPublicEventsForRepoNetwork": [Function], - "listPublicEventsForUser": [Function], - "listPublicOrgEvents": [Function], - "listReceivedEventsForUser": [Function], - "listReceivedPublicEventsForUser": [Function], - "listRepoEvents": [Function], - "listRepoNotificationsForAuthenticatedUser": [Function], - "listReposStarredByAuthenticatedUser": [Function], - "listReposStarredByUser": [Function], - "listReposWatchedByUser": [Function], - "listStargazersForRepo": [Function], - "listWatchedReposForAuthenticatedUser": [Function], - "listWatchersForRepo": [Function], - "markAsRead": [Function], - "markNotificationsAsRead": [Function], - "markNotificationsAsReadForRepo": [Function], - "markRepoNotificationsAsRead": [Function], - "markThreadAsRead": [Function], - "setRepoSubscription": [Function], - "setThreadSubscription": [Function], - "starRepo": [Function], - "starRepoForAuthenticatedUser": [Function], - "unstarRepo": [Function], - "unstarRepoForAuthenticatedUser": [Function], - }, - "apps": Object { - "addRepoToInstallation": [Function], - "checkAccountIsAssociatedWithAny": [Function], - "checkAccountIsAssociatedWithAnyStubbed": [Function], - "checkToken": [Function], - "createContentAttachment": [Function], - "createFromManifest": [Function], - "createInstallationAccessToken": [Function], - "createInstallationToken": [Function], - "deleteAuthorization": [Function], - "deleteInstallation": [Function], - "deleteToken": [Function], - "getAuthenticated": [Function], - "getBySlug": [Function], - "getInstallation": [Function], - "getOrgInstallation": [Function], - "getRepoInstallation": [Function], - "getSubscriptionPlanForAccount": [Function], - "getSubscriptionPlanForAccountStubbed": [Function], - "getUserInstallation": [Function], - "listAccountsForPlan": [Function], - "listAccountsForPlanStubbed": [Function], - "listAccountsUserOrOrgOnPlan": [Function], - "listAccountsUserOrOrgOnPlanStubbed": [Function], - "listInstallationReposForAuthenticatedUser": [Function], - "listInstallations": [Function], - "listInstallationsForAuthenticatedUser": [Function], - "listMarketplacePurchasesForAuthenticatedUser": [Function], - "listMarketplacePurchasesForAuthenticatedUserStubbed": [Function], - "listPlans": [Function], - "listPlansStubbed": [Function], - "listRepos": [Function], - "listReposAccessibleToInstallation": [Function], - "listSubscriptionsForAuthenticatedUser": [Function], - "listSubscriptionsForAuthenticatedUserStubbed": [Function], - "removeRepoFromInstallation": [Function], - "resetToken": [Function], - "revokeInstallationAccessToken": [Function], - "revokeInstallationToken": [Function], - "suspendInstallation": [Function], - "unsuspendInstallation": [Function], - }, - "auth": [Function], - "checks": Object { - "create": [Function], - "createSuite": [Function], - "get": [Function], - "getSuite": [Function], - "listAnnotations": [Function], - "listForRef": [Function], - "listForSuite": [Function], - "listSuitesForRef": [Function], - "rerequestSuite": [Function], - "setSuitesPreferences": [Function], - "update": [Function], - }, - "codeScanning": Object { - "getAlert": [Function], - "listAlertsForRepo": [Function], - }, - "codesOfConduct": Object { - "getAllCodesOfConduct": [Function], - "getConductCode": [Function], - "getForRepo": [Function], - "listConductCodes": [Function], - }, - "emojis": Object { - "get": [Function], - }, - "gists": Object { - "checkIsStarred": [Function], - "create": [Function], - "createComment": [Function], - "delete": [Function], - "deleteComment": [Function], - "fork": [Function], - "get": [Function], - "getComment": [Function], - "getRevision": [Function], - "list": [Function], - "listComments": [Function], - "listCommits": [Function], - "listForUser": [Function], - "listForks": [Function], - "listPublic": [Function], - "listPublicForUser": [Function], - "listStarred": [Function], - "star": [Function], - "unstar": [Function], - "update": [Function], - "updateComment": [Function], - }, - "git": Object { - "createBlob": [Function], - "createCommit": [Function], - "createRef": [Function], - "createTag": [Function], - "createTree": [Function], - "deleteRef": [Function], - "getBlob": [Function], - "getCommit": [Function], - "getRef": [Function], - "getTag": [Function], - "getTree": [Function], - "listMatchingRefs": [Function], - "updateRef": [Function], - }, - "gitignore": Object { - "getAllTemplates": [Function], - "getTemplate": [Function], - "listTemplates": [Function], - }, - "graphql": [Function], - "hook": [Function], - "interactions": Object { - "addOrUpdateRestrictionsForOrg": [Function], - "addOrUpdateRestrictionsForRepo": [Function], - "getRestrictionsForOrg": [Function], - "getRestrictionsForRepo": [Function], - "removeRestrictionsForOrg": [Function], - "removeRestrictionsForRepo": [Function], - "setRestrictionsForOrg": [Function], - "setRestrictionsForRepo": [Function], - }, - "issues": Object { - "addAssignees": [Function], - "addLabels": [Function], - "checkAssignee": [Function], - "checkUserCanBeAssigned": [Function], - "create": [Function], - "createComment": [Function], - "createLabel": [Function], - "createMilestone": [Function], - "deleteComment": [Function], - "deleteLabel": [Function], - "deleteMilestone": [Function], - "get": [Function], - "getComment": [Function], - "getEvent": [Function], - "getLabel": [Function], - "getMilestone": [Function], - "list": [Function], - "listAssignees": [Function], - "listComments": [Function], - "listCommentsForRepo": [Function], - "listEvents": [Function], - "listEventsForRepo": [Function], - "listEventsForTimeline": [Function], - "listForAuthenticatedUser": [Function], - "listForOrg": [Function], - "listForRepo": [Function], - "listLabelsForMilestone": [Function], - "listLabelsForRepo": [Function], - "listLabelsOnIssue": [Function], - "listMilestones": [Function], - "listMilestonesForRepo": [Function], - "lock": [Function], - "removeAllLabels": [Function], - "removeAssignees": [Function], - "removeLabel": [Function], - "removeLabels": [Function], - "replaceAllLabels": [Function], - "replaceLabels": [Function], - "setLabels": [Function], - "unlock": [Function], - "update": [Function], - "updateComment": [Function], - "updateLabel": [Function], - "updateMilestone": [Function], - }, - "licenses": Object { - "get": [Function], - "getAllCommonlyUsed": [Function], - "getForRepo": [Function], - "listCommonlyUsed": [Function], - }, - "log": Object { - "debug": [Function], - "error": [Function], - "info": [Function], - "warn": [Function], - }, - "markdown": Object { - "render": [Function], - "renderRaw": [Function], - }, - "meta": Object { - "get": [Function], - }, - "migrations": Object { - "cancelImport": [Function], - "deleteArchiveForAuthenticatedUser": [Function], - "deleteArchiveForOrg": [Function], - "downloadArchiveForOrg": [Function], - "getArchiveForAuthenticatedUser": [Function], - "getCommitAuthors": [Function], - "getImportProgress": [Function], - "getImportStatus": [Function], - "getLargeFiles": [Function], - "getStatusForAuthenticatedUser": [Function], - "getStatusForOrg": [Function], - "listForAuthenticatedUser": [Function], - "listForOrg": [Function], - "listReposForOrg": [Function], - "listReposForUser": [Function], - "mapCommitAuthor": [Function], - "setLfsPreference": [Function], - "startForAuthenticatedUser": [Function], - "startForOrg": [Function], - "startImport": [Function], - "unlockRepoForAuthenticatedUser": [Function], - "unlockRepoForOrg": [Function], - "updateImport": [Function], - }, - "orgs": Object { - "addOrUpdateMembership": [Function], - "blockUser": [Function], - "checkBlockedUser": [Function], - "checkMembership": [Function], - "checkMembershipForUser": [Function], - "checkPublicMembership": [Function], - "checkPublicMembershipForUser": [Function], - "concealMembership": [Function], - "convertMemberToOutsideCollaborator": [Function], - "createHook": [Function], - "createInvitation": [Function], - "createWebhook": [Function], - "deleteHook": [Function], - "deleteWebhook": [Function], - "get": [Function], - "getHook": [Function], - "getMembership": [Function], - "getMembershipForAuthenticatedUser": [Function], - "getMembershipForUser": [Function], - "getWebhook": [Function], - "list": [Function], - "listAppInstallations": [Function], - "listBlockedUsers": [Function], - "listForAuthenticatedUser": [Function], - "listForUser": [Function], - "listHooks": [Function], - "listInstallations": [Function], - "listInvitationTeams": [Function], - "listMembers": [Function], - "listMemberships": [Function], - "listMembershipsForAuthenticatedUser": [Function], - "listOutsideCollaborators": [Function], - "listPendingInvitations": [Function], - "listPublicMembers": [Function], - "listWebhooks": [Function], - "pingHook": [Function], - "pingWebhook": [Function], - "publicizeMembership": [Function], - "removeMember": [Function], - "removeMembership": [Function], - "removeMembershipForUser": [Function], - "removeOutsideCollaborator": [Function], - "removePublicMembershipForAuthenticatedUser": [Function], - "setMembershipForUser": [Function], - "setPublicMembershipForAuthenticatedUser": [Function], - "unblockUser": [Function], - "update": [Function], - "updateHook": [Function], - "updateMembership": [Function], - "updateMembershipForAuthenticatedUser": [Function], - "updateWebhook": [Function], - }, - "paginate": [Function], - "projects": Object { - "addCollaborator": [Function], - "createCard": [Function], - "createColumn": [Function], - "createForAuthenticatedUser": [Function], - "createForOrg": [Function], - "createForRepo": [Function], - "delete": [Function], - "deleteCard": [Function], - "deleteColumn": [Function], - "get": [Function], - "getCard": [Function], - "getColumn": [Function], - "getPermissionForUser": [Function], - "listCards": [Function], - "listCollaborators": [Function], - "listColumns": [Function], - "listForOrg": [Function], - "listForRepo": [Function], - "listForUser": [Function], - "moveCard": [Function], - "moveColumn": [Function], - "removeCollaborator": [Function], - "reviewUserPermissionLevel": [Function], - "update": [Function], - "updateCard": [Function], - "updateColumn": [Function], - }, - "pulls": Object { - "checkIfMerged": [Function], - "create": [Function], - "createComment": [Function], - "createReplyForReviewComment": [Function], - "createReview": [Function], - "createReviewComment": [Function], - "createReviewCommentReply": [Function], - "createReviewRequest": [Function], - "deleteComment": [Function], - "deletePendingReview": [Function], - "deleteReviewComment": [Function], - "deleteReviewRequest": [Function], - "dismissReview": [Function], - "get": [Function], - "getComment": [Function], - "getCommentsForReview": [Function], - "getReview": [Function], - "getReviewComment": [Function], - "list": [Function], - "listComments": [Function], - "listCommentsForRepo": [Function], - "listCommentsForReview": [Function], - "listCommits": [Function], - "listFiles": [Function], - "listRequestedReviewers": [Function], - "listReviewComments": [Function], - "listReviewCommentsForRepo": [Function], - "listReviewRequests": [Function], - "listReviews": [Function], - "merge": [Function], - "removeRequestedReviewers": [Function], - "requestReviewers": [Function], - "submitReview": [Function], - "update": [Function], - "updateBranch": [Function], - "updateComment": [Function], - "updateReview": [Function], - "updateReviewComment": [Function], - }, - "rateLimit": Object { - "get": [Function], - }, - "reactions": Object { - "createForCommitComment": [Function], - "createForIssue": [Function], - "createForIssueComment": [Function], - "createForPullRequestReviewComment": [Function], - "createForTeamDiscussionCommentInOrg": [Function], - "createForTeamDiscussionInOrg": [Function], - "delete": [Function], - "deleteForCommitComment": [Function], - "deleteForIssue": [Function], - "deleteForIssueComment": [Function], - "deleteForPullRequestComment": [Function], - "deleteForTeamDiscussion": [Function], - "deleteForTeamDiscussionComment": [Function], - "deleteLegacy": [Function], - "listForCommitComment": [Function], - "listForIssue": [Function], - "listForIssueComment": [Function], - "listForPullRequestReviewComment": [Function], - "listForTeamDiscussionCommentInOrg": [Function], - "listForTeamDiscussionInOrg": [Function], - }, - "repos": Object { - "acceptInvitation": [Function], - "addAppAccessRestrictions": [Function], - "addCollaborator": [Function], - "addDeployKey": [Function], - "addProtectedBranchAdminEnforcement": [Function], - "addProtectedBranchAppRestrictions": [Function], - "addProtectedBranchRequiredSignatures": [Function], - "addProtectedBranchRequiredStatusChecksContexts": [Function], - "addProtectedBranchTeamRestrictions": [Function], - "addProtectedBranchUserRestrictions": [Function], - "addStatusCheckContexts": [Function], - "addTeamAccessRestrictions": [Function], - "addUserAccessRestrictions": [Function], - "checkCollaborator": [Function], - "checkVulnerabilityAlerts": [Function], - "compareCommits": [Function], - "createCommitComment": [Function], - "createCommitSignatureProtection": [Function], - "createCommitStatus": [Function], - "createDeployKey": [Function], - "createDeployment": [Function], - "createDeploymentStatus": [Function], - "createDispatchEvent": [Function], - "createForAuthenticatedUser": [Function], - "createFork": [Function], - "createHook": [Function], - "createInOrg": [Function], - "createOrUpdateFile": [Function], - "createOrUpdateFileContents": [Function], - "createPagesSite": [Function], - "createRelease": [Function], - "createStatus": [Function], - "createUsingTemplate": [Function], - "createWebhook": [Function], - "declineInvitation": [Function], - "delete": [Function], - "deleteAccessRestrictions": [Function], - "deleteAdminBranchProtection": [Function], - "deleteBranchProtection": [Function], - "deleteCommitComment": [Function], - "deleteCommitSignatureProtection": [Function], - "deleteDeployKey": [Function], - "deleteDeployment": [Function], - "deleteDownload": [Function], - "deleteFile": [Function], - "deleteHook": [Function], - "deleteInvitation": [Function], - "deletePagesSite": [Function], - "deletePullRequestReviewProtection": [Function], - "deleteRelease": [Function], - "deleteReleaseAsset": [Function], - "deleteWebhook": [Function], - "disableAutomatedSecurityFixes": [Function], - "disablePagesSite": [Function], - "disableVulnerabilityAlerts": [Function], - "downloadArchive": [Function], - "enableAutomatedSecurityFixes": [Function], - "enablePagesSite": [Function], - "enableVulnerabilityAlerts": [Function], - "get": [Function], - "getAccessRestrictions": [Function], - "getAdminBranchProtection": [Function], - "getAllStatusCheckContexts": [Function], - "getAllTopics": [Function], - "getAppsWithAccessToProtectedBranch": [Function], - "getArchiveLink": [Function], - "getBranch": [Function], - "getBranchProtection": [Function], - "getClones": [Function], - "getCodeFrequencyStats": [Function], - "getCollaboratorPermissionLevel": [Function], - "getCombinedStatusForRef": [Function], - "getCommit": [Function], - "getCommitActivityStats": [Function], - "getCommitComment": [Function], - "getCommitSignatureProtection": [Function], - "getCommunityProfileMetrics": [Function], - "getContent": [Function], - "getContents": [Function], - "getContributorsStats": [Function], - "getDeployKey": [Function], - "getDeployment": [Function], - "getDeploymentStatus": [Function], - "getDownload": [Function], - "getHook": [Function], - "getLatestPagesBuild": [Function], - "getLatestRelease": [Function], - "getPages": [Function], - "getPagesBuild": [Function], - "getParticipationStats": [Function], - "getProtectedBranchAdminEnforcement": [Function], - "getProtectedBranchPullRequestReviewEnforcement": [Function], - "getProtectedBranchRequiredSignatures": [Function], - "getProtectedBranchRequiredStatusChecks": [Function], - "getProtectedBranchRestrictions": [Function], - "getPullRequestReviewProtection": [Function], - "getPunchCardStats": [Function], - "getReadme": [Function], - "getRelease": [Function], - "getReleaseAsset": [Function], - "getReleaseByTag": [Function], - "getStatusChecksProtection": [Function], - "getTeamsWithAccessToProtectedBranch": [Function], - "getTopPaths": [Function], - "getTopReferrers": [Function], - "getUsersWithAccessToProtectedBranch": [Function], - "getViews": [Function], - "getWebhook": [Function], - "list": [Function], - "listAssetsForRelease": [Function], - "listBranches": [Function], - "listBranchesForHeadCommit": [Function], - "listCollaborators": [Function], - "listCommentsForCommit": [Function], - "listCommitComments": [Function], - "listCommitCommentsForRepo": [Function], - "listCommitStatusesForRef": [Function], - "listCommits": [Function], - "listContributors": [Function], - "listDeployKeys": [Function], - "listDeploymentStatuses": [Function], - "listDeployments": [Function], - "listDownloads": [Function], - "listForAuthenticatedUser": [Function], - "listForOrg": [Function], - "listForUser": [Function], - "listForks": [Function], - "listHooks": [Function], - "listInvitations": [Function], - "listInvitationsForAuthenticatedUser": [Function], - "listLanguages": [Function], - "listPagesBuilds": [Function], - "listProtectedBranchRequiredStatusChecksContexts": [Function], - "listPublic": [Function], - "listPullRequestsAssociatedWithCommit": [Function], - "listReleaseAssets": [Function], - "listReleases": [Function], - "listStatusesForRef": [Function], - "listTags": [Function], - "listTeams": [Function], - "listTopics": [Function], - "listWebhooks": [Function], - "merge": [Function], - "pingHook": [Function], - "pingWebhook": [Function], - "removeAppAccessRestrictions": [Function], - "removeBranchProtection": [Function], - "removeCollaborator": [Function], - "removeDeployKey": [Function], - "removeProtectedBranchAdminEnforcement": [Function], - "removeProtectedBranchAppRestrictions": [Function], - "removeProtectedBranchPullRequestReviewEnforcement": [Function], - "removeProtectedBranchRequiredSignatures": [Function], - "removeProtectedBranchRequiredStatusChecks": [Function], - "removeProtectedBranchRequiredStatusChecksContexts": [Function], - "removeProtectedBranchRestrictions": [Function], - "removeProtectedBranchTeamRestrictions": [Function], - "removeProtectedBranchUserRestrictions": [Function], - "removeStatusCheckContexts": [Function], - "removeStatusCheckProtection": [Function], - "removeTeamAccessRestrictions": [Function], - "removeUserAccessRestrictions": [Function], - "replaceAllTopics": [Function], - "replaceProtectedBranchAppRestrictions": [Function], - "replaceProtectedBranchRequiredStatusChecksContexts": [Function], - "replaceProtectedBranchTeamRestrictions": [Function], - "replaceProtectedBranchUserRestrictions": [Function], - "replaceTopics": [Function], - "requestPageBuild": [Function], - "requestPagesBuild": [Function], - "retrieveCommunityProfileMetrics": [Function], - "setAdminBranchProtection": [Function], - "setAppAccessRestrictions": [Function], - "setStatusCheckContexts": [Function], - "setTeamAccessRestrictions": [Function], - "setUserAccessRestrictions": [Function], - "testPushHook": [Function], - "testPushWebhook": [Function], - "transfer": [Function], - "update": [Function], - "updateBranchProtection": [Function], - "updateCommitComment": [Function], - "updateHook": [Function], - "updateInformationAboutPagesSite": [Function], - "updateInvitation": [Function], - "updateProtectedBranchPullRequestReviewEnforcement": [Function], - "updateProtectedBranchRequiredStatusChecks": [Function], - "updatePullRequestReviewProtection": [Function], - "updateRelease": [Function], - "updateReleaseAsset": [Function], - "updateStatusCheckPotection": [Function], - "updateWebhook": [Function], - "uploadReleaseAsset": [Function], - }, - "request": [Function], - "search": Object { - "code": [Function], - "commits": [Function], - "issuesAndPullRequests": [Function], - "labels": [Function], - "repos": [Function], - "topics": [Function], - "users": [Function], - }, - "teams": Object { - "addOrUpdateMembershipForUserInOrg": [Function], - "addOrUpdateMembershipInOrg": [Function], - "addOrUpdateProjectInOrg": [Function], - "addOrUpdateProjectPermissionsInOrg": [Function], - "addOrUpdateRepoInOrg": [Function], - "addOrUpdateRepoPermissionsInOrg": [Function], - "checkManagesRepoInOrg": [Function], - "checkPermissionsForProjectInOrg": [Function], - "checkPermissionsForRepoInOrg": [Function], - "create": [Function], - "createDiscussionCommentInOrg": [Function], - "createDiscussionInOrg": [Function], - "deleteDiscussionCommentInOrg": [Function], - "deleteDiscussionInOrg": [Function], - "deleteInOrg": [Function], - "getByName": [Function], - "getDiscussionCommentInOrg": [Function], - "getDiscussionInOrg": [Function], - "getMembershipForUserInOrg": [Function], - "getMembershipInOrg": [Function], - "list": [Function], - "listChildInOrg": [Function], - "listDiscussionCommentsInOrg": [Function], - "listDiscussionsInOrg": [Function], - "listForAuthenticatedUser": [Function], - "listMembersInOrg": [Function], - "listPendingInvitationsInOrg": [Function], - "listProjectsInOrg": [Function], - "listReposInOrg": [Function], - "removeMembershipForUserInOrg": [Function], - "removeMembershipInOrg": [Function], - "removeProjectInOrg": [Function], - "removeRepoInOrg": [Function], - "reviewProjectInOrg": [Function], - "updateDiscussionCommentInOrg": [Function], - "updateDiscussionInOrg": [Function], - "updateInOrg": [Function], - }, - "users": Object { - "addEmailForAuthenticated": [Function], - "addEmails": [Function], - "block": [Function], - "checkBlocked": [Function], - "checkFollowing": [Function], - "checkFollowingForUser": [Function], - "checkPersonIsFollowedByAuthenticated": [Function], - "createGpgKey": [Function], - "createGpgKeyForAuthenticated": [Function], - "createPublicKey": [Function], - "createPublicSshKeyForAuthenticated": [Function], - "deleteEmailForAuthenticated": [Function], - "deleteEmails": [Function], - "deleteGpgKey": [Function], - "deleteGpgKeyForAuthenticated": [Function], - "deletePublicKey": [Function], - "deletePublicSshKeyForAuthenticated": [Function], - "follow": [Function], - "getAuthenticated": [Function], - "getByUsername": [Function], - "getContextForUser": [Function], - "getGpgKey": [Function], - "getGpgKeyForAuthenticated": [Function], - "getPublicKey": [Function], - "getPublicSshKeyForAuthenticated": [Function], - "list": [Function], - "listBlocked": [Function], - "listBlockedByAuthenticated": [Function], - "listEmails": [Function], - "listEmailsForAuthenticated": [Function], - "listFollowedByAuthenticated": [Function], - "listFollowersForAuthenticatedUser": [Function], - "listFollowersForUser": [Function], - "listFollowingForAuthenticatedUser": [Function], - "listFollowingForUser": [Function], - "listGpgKeys": [Function], - "listGpgKeysForAuthenticated": [Function], - "listGpgKeysForUser": [Function], - "listPublicEmails": [Function], - "listPublicEmailsForAuthenticated": [Function], - "listPublicKeys": [Function], - "listPublicKeysForUser": [Function], - "listPublicSshKeysForAuthenticated": [Function], - "setPrimaryEmailVisibilityForAuthenticated": [Function], - "togglePrimaryEmailVisibility": [Function], - "unblock": [Function], - "unfollow": [Function], - "updateAuthenticated": [Function], - }, - }, - }, - "hasStorageAnalyticsAfecFeature": [Function], "isAccountReady": [Function], "isFixedCollectionWithSharedThroughputSupported": [Function], "isHostedDataExplorerEnabled": [Function], "isLeftPaneExpanded": [Function], - "isMongoIndexingEnabled": [Function], "isNotebookEnabled": [Function], "isNotebooksEnabledForAccount": [Function], - "isPublishNotebookPaneEnabled": [Function], "isResourceTokenCollectionNodeSelected": [Function], "isSchemaEnabled": [Function], "isServerlessEnabled": [Function], "isShellEnabled": [Function], - "isSparkEnabled": [Function], - "isSparkEnabledForAccount": [Function], "isSynapseLinkUpdating": [Function], "isTabsContentExpanded": [Function], - "junoClient": JunoClient { - "cachedPinnedRepos": [Function], - }, "memoryUsageInfo": [Function], "notebookBasePath": [Function], "notebookServerInfo": [Function], - "onGitHubClientError": [Function], "onRefreshDatabasesKeyPress": [Function], "onRefreshResourcesClick": [Function], "openSidePanel": undefined, @@ -2696,12 +356,8 @@ exports[`SettingsComponent renders 1`] = ` } container={ Explorer { - "_isAfecFeatureRegistered": [Function], "_isInitializingNotebooks": false, - "_refreshSparkEnabledStateForAccount": [Function], "_resetNotebookWorkspace": [Function], - "arcadiaToken": [Function], - "canExceedMaximumValue": [Function], "canSaveQueries": [Function], "closeSidePanel": undefined, "collapsedResourceTreeWidth": 36, @@ -2722,797 +378,21 @@ exports[`SettingsComponent renders 1`] = ` "tabsButtons": Array [], }, "databases": [Function], - "gitHubClient": GitHubClient { - "errorCallback": [Function], - "ocktokit": OctokitWithDefaults { - "actions": Object { - "addSelectedRepoToOrgSecret": [Function], - "cancelWorkflowRun": [Function], - "createOrUpdateOrgSecret": [Function], - "createOrUpdateRepoSecret": [Function], - "createOrUpdateSecretForRepo": [Function], - "createRegistrationToken": [Function], - "createRegistrationTokenForOrg": [Function], - "createRegistrationTokenForRepo": [Function], - "createRemoveToken": [Function], - "createRemoveTokenForOrg": [Function], - "createRemoveTokenForRepo": [Function], - "deleteArtifact": [Function], - "deleteOrgSecret": [Function], - "deleteRepoSecret": [Function], - "deleteSecretFromRepo": [Function], - "deleteSelfHostedRunnerFromOrg": [Function], - "deleteSelfHostedRunnerFromRepo": [Function], - "deleteWorkflowRunLogs": [Function], - "downloadArtifact": [Function], - "downloadJobLogsForWorkflowRun": [Function], - "downloadWorkflowJobLogs": [Function], - "downloadWorkflowRunLogs": [Function], - "getArtifact": [Function], - "getJobForWorkflowRun": [Function], - "getOrgPublicKey": [Function], - "getOrgSecret": [Function], - "getPublicKey": [Function], - "getRepoPublicKey": [Function], - "getRepoSecret": [Function], - "getSecret": [Function], - "getSelfHostedRunner": [Function], - "getSelfHostedRunnerForOrg": [Function], - "getSelfHostedRunnerForRepo": [Function], - "getWorkflow": [Function], - "getWorkflowJob": [Function], - "getWorkflowRun": [Function], - "getWorkflowRunUsage": [Function], - "getWorkflowUsage": [Function], - "listArtifactsForRepo": [Function], - "listDownloadsForSelfHostedRunnerApplication": [Function], - "listJobsForWorkflowRun": [Function], - "listOrgSecrets": [Function], - "listRepoSecrets": [Function], - "listRepoWorkflowRuns": [Function], - "listRepoWorkflows": [Function], - "listRunnerApplicationsForOrg": [Function], - "listRunnerApplicationsForRepo": [Function], - "listSecretsForRepo": [Function], - "listSelectedReposForOrgSecret": [Function], - "listSelfHostedRunnersForOrg": [Function], - "listSelfHostedRunnersForRepo": [Function], - "listWorkflowJobLogs": [Function], - "listWorkflowRunArtifacts": [Function], - "listWorkflowRunLogs": [Function], - "listWorkflowRuns": [Function], - "listWorkflowRunsForRepo": [Function], - "reRunWorkflow": [Function], - "removeSelectedRepoFromOrgSecret": [Function], - "removeSelfHostedRunner": [Function], - "setSelectedReposForOrgSecret": [Function], - }, - "activity": Object { - "checkRepoIsStarredByAuthenticatedUser": [Function], - "checkStarringRepo": [Function], - "deleteRepoSubscription": [Function], - "deleteThreadSubscription": [Function], - "getFeeds": [Function], - "getRepoSubscription": [Function], - "getThread": [Function], - "getThreadSubscription": [Function], - "getThreadSubscriptionForAuthenticatedUser": [Function], - "listEventsForAuthenticatedUser": [Function], - "listEventsForOrg": [Function], - "listEventsForUser": [Function], - "listFeeds": [Function], - "listNotifications": [Function], - "listNotificationsForAuthenticatedUser": [Function], - "listNotificationsForRepo": [Function], - "listOrgEventsForAuthenticatedUser": [Function], - "listPublicEvents": [Function], - "listPublicEventsForOrg": [Function], - "listPublicEventsForRepoNetwork": [Function], - "listPublicEventsForUser": [Function], - "listPublicOrgEvents": [Function], - "listReceivedEventsForUser": [Function], - "listReceivedPublicEventsForUser": [Function], - "listRepoEvents": [Function], - "listRepoNotificationsForAuthenticatedUser": [Function], - "listReposStarredByAuthenticatedUser": [Function], - "listReposStarredByUser": [Function], - "listReposWatchedByUser": [Function], - "listStargazersForRepo": [Function], - "listWatchedReposForAuthenticatedUser": [Function], - "listWatchersForRepo": [Function], - "markAsRead": [Function], - "markNotificationsAsRead": [Function], - "markNotificationsAsReadForRepo": [Function], - "markRepoNotificationsAsRead": [Function], - "markThreadAsRead": [Function], - "setRepoSubscription": [Function], - "setThreadSubscription": [Function], - "starRepo": [Function], - "starRepoForAuthenticatedUser": [Function], - "unstarRepo": [Function], - "unstarRepoForAuthenticatedUser": [Function], - }, - "apps": Object { - "addRepoToInstallation": [Function], - "checkAccountIsAssociatedWithAny": [Function], - "checkAccountIsAssociatedWithAnyStubbed": [Function], - "checkToken": [Function], - "createContentAttachment": [Function], - "createFromManifest": [Function], - "createInstallationAccessToken": [Function], - "createInstallationToken": [Function], - "deleteAuthorization": [Function], - "deleteInstallation": [Function], - "deleteToken": [Function], - "getAuthenticated": [Function], - "getBySlug": [Function], - "getInstallation": [Function], - "getOrgInstallation": [Function], - "getRepoInstallation": [Function], - "getSubscriptionPlanForAccount": [Function], - "getSubscriptionPlanForAccountStubbed": [Function], - "getUserInstallation": [Function], - "listAccountsForPlan": [Function], - "listAccountsForPlanStubbed": [Function], - "listAccountsUserOrOrgOnPlan": [Function], - "listAccountsUserOrOrgOnPlanStubbed": [Function], - "listInstallationReposForAuthenticatedUser": [Function], - "listInstallations": [Function], - "listInstallationsForAuthenticatedUser": [Function], - "listMarketplacePurchasesForAuthenticatedUser": [Function], - "listMarketplacePurchasesForAuthenticatedUserStubbed": [Function], - "listPlans": [Function], - "listPlansStubbed": [Function], - "listRepos": [Function], - "listReposAccessibleToInstallation": [Function], - "listSubscriptionsForAuthenticatedUser": [Function], - "listSubscriptionsForAuthenticatedUserStubbed": [Function], - "removeRepoFromInstallation": [Function], - "resetToken": [Function], - "revokeInstallationAccessToken": [Function], - "revokeInstallationToken": [Function], - "suspendInstallation": [Function], - "unsuspendInstallation": [Function], - }, - "auth": [Function], - "checks": Object { - "create": [Function], - "createSuite": [Function], - "get": [Function], - "getSuite": [Function], - "listAnnotations": [Function], - "listForRef": [Function], - "listForSuite": [Function], - "listSuitesForRef": [Function], - "rerequestSuite": [Function], - "setSuitesPreferences": [Function], - "update": [Function], - }, - "codeScanning": Object { - "getAlert": [Function], - "listAlertsForRepo": [Function], - }, - "codesOfConduct": Object { - "getAllCodesOfConduct": [Function], - "getConductCode": [Function], - "getForRepo": [Function], - "listConductCodes": [Function], - }, - "emojis": Object { - "get": [Function], - }, - "gists": Object { - "checkIsStarred": [Function], - "create": [Function], - "createComment": [Function], - "delete": [Function], - "deleteComment": [Function], - "fork": [Function], - "get": [Function], - "getComment": [Function], - "getRevision": [Function], - "list": [Function], - "listComments": [Function], - "listCommits": [Function], - "listForUser": [Function], - "listForks": [Function], - "listPublic": [Function], - "listPublicForUser": [Function], - "listStarred": [Function], - "star": [Function], - "unstar": [Function], - "update": [Function], - "updateComment": [Function], - }, - "git": Object { - "createBlob": [Function], - "createCommit": [Function], - "createRef": [Function], - "createTag": [Function], - "createTree": [Function], - "deleteRef": [Function], - "getBlob": [Function], - "getCommit": [Function], - "getRef": [Function], - "getTag": [Function], - "getTree": [Function], - "listMatchingRefs": [Function], - "updateRef": [Function], - }, - "gitignore": Object { - "getAllTemplates": [Function], - "getTemplate": [Function], - "listTemplates": [Function], - }, - "graphql": [Function], - "hook": [Function], - "interactions": Object { - "addOrUpdateRestrictionsForOrg": [Function], - "addOrUpdateRestrictionsForRepo": [Function], - "getRestrictionsForOrg": [Function], - "getRestrictionsForRepo": [Function], - "removeRestrictionsForOrg": [Function], - "removeRestrictionsForRepo": [Function], - "setRestrictionsForOrg": [Function], - "setRestrictionsForRepo": [Function], - }, - "issues": Object { - "addAssignees": [Function], - "addLabels": [Function], - "checkAssignee": [Function], - "checkUserCanBeAssigned": [Function], - "create": [Function], - "createComment": [Function], - "createLabel": [Function], - "createMilestone": [Function], - "deleteComment": [Function], - "deleteLabel": [Function], - "deleteMilestone": [Function], - "get": [Function], - "getComment": [Function], - "getEvent": [Function], - "getLabel": [Function], - "getMilestone": [Function], - "list": [Function], - "listAssignees": [Function], - "listComments": [Function], - "listCommentsForRepo": [Function], - "listEvents": [Function], - "listEventsForRepo": [Function], - "listEventsForTimeline": [Function], - "listForAuthenticatedUser": [Function], - "listForOrg": [Function], - "listForRepo": [Function], - "listLabelsForMilestone": [Function], - "listLabelsForRepo": [Function], - "listLabelsOnIssue": [Function], - "listMilestones": [Function], - "listMilestonesForRepo": [Function], - "lock": [Function], - "removeAllLabels": [Function], - "removeAssignees": [Function], - "removeLabel": [Function], - "removeLabels": [Function], - "replaceAllLabels": [Function], - "replaceLabels": [Function], - "setLabels": [Function], - "unlock": [Function], - "update": [Function], - "updateComment": [Function], - "updateLabel": [Function], - "updateMilestone": [Function], - }, - "licenses": Object { - "get": [Function], - "getAllCommonlyUsed": [Function], - "getForRepo": [Function], - "listCommonlyUsed": [Function], - }, - "log": Object { - "debug": [Function], - "error": [Function], - "info": [Function], - "warn": [Function], - }, - "markdown": Object { - "render": [Function], - "renderRaw": [Function], - }, - "meta": Object { - "get": [Function], - }, - "migrations": Object { - "cancelImport": [Function], - "deleteArchiveForAuthenticatedUser": [Function], - "deleteArchiveForOrg": [Function], - "downloadArchiveForOrg": [Function], - "getArchiveForAuthenticatedUser": [Function], - "getCommitAuthors": [Function], - "getImportProgress": [Function], - "getImportStatus": [Function], - "getLargeFiles": [Function], - "getStatusForAuthenticatedUser": [Function], - "getStatusForOrg": [Function], - "listForAuthenticatedUser": [Function], - "listForOrg": [Function], - "listReposForOrg": [Function], - "listReposForUser": [Function], - "mapCommitAuthor": [Function], - "setLfsPreference": [Function], - "startForAuthenticatedUser": [Function], - "startForOrg": [Function], - "startImport": [Function], - "unlockRepoForAuthenticatedUser": [Function], - "unlockRepoForOrg": [Function], - "updateImport": [Function], - }, - "orgs": Object { - "addOrUpdateMembership": [Function], - "blockUser": [Function], - "checkBlockedUser": [Function], - "checkMembership": [Function], - "checkMembershipForUser": [Function], - "checkPublicMembership": [Function], - "checkPublicMembershipForUser": [Function], - "concealMembership": [Function], - "convertMemberToOutsideCollaborator": [Function], - "createHook": [Function], - "createInvitation": [Function], - "createWebhook": [Function], - "deleteHook": [Function], - "deleteWebhook": [Function], - "get": [Function], - "getHook": [Function], - "getMembership": [Function], - "getMembershipForAuthenticatedUser": [Function], - "getMembershipForUser": [Function], - "getWebhook": [Function], - "list": [Function], - "listAppInstallations": [Function], - "listBlockedUsers": [Function], - "listForAuthenticatedUser": [Function], - "listForUser": [Function], - "listHooks": [Function], - "listInstallations": [Function], - "listInvitationTeams": [Function], - "listMembers": [Function], - "listMemberships": [Function], - "listMembershipsForAuthenticatedUser": [Function], - "listOutsideCollaborators": [Function], - "listPendingInvitations": [Function], - "listPublicMembers": [Function], - "listWebhooks": [Function], - "pingHook": [Function], - "pingWebhook": [Function], - "publicizeMembership": [Function], - "removeMember": [Function], - "removeMembership": [Function], - "removeMembershipForUser": [Function], - "removeOutsideCollaborator": [Function], - "removePublicMembershipForAuthenticatedUser": [Function], - "setMembershipForUser": [Function], - "setPublicMembershipForAuthenticatedUser": [Function], - "unblockUser": [Function], - "update": [Function], - "updateHook": [Function], - "updateMembership": [Function], - "updateMembershipForAuthenticatedUser": [Function], - "updateWebhook": [Function], - }, - "paginate": [Function], - "projects": Object { - "addCollaborator": [Function], - "createCard": [Function], - "createColumn": [Function], - "createForAuthenticatedUser": [Function], - "createForOrg": [Function], - "createForRepo": [Function], - "delete": [Function], - "deleteCard": [Function], - "deleteColumn": [Function], - "get": [Function], - "getCard": [Function], - "getColumn": [Function], - "getPermissionForUser": [Function], - "listCards": [Function], - "listCollaborators": [Function], - "listColumns": [Function], - "listForOrg": [Function], - "listForRepo": [Function], - "listForUser": [Function], - "moveCard": [Function], - "moveColumn": [Function], - "removeCollaborator": [Function], - "reviewUserPermissionLevel": [Function], - "update": [Function], - "updateCard": [Function], - "updateColumn": [Function], - }, - "pulls": Object { - "checkIfMerged": [Function], - "create": [Function], - "createComment": [Function], - "createReplyForReviewComment": [Function], - "createReview": [Function], - "createReviewComment": [Function], - "createReviewCommentReply": [Function], - "createReviewRequest": [Function], - "deleteComment": [Function], - "deletePendingReview": [Function], - "deleteReviewComment": [Function], - "deleteReviewRequest": [Function], - "dismissReview": [Function], - "get": [Function], - "getComment": [Function], - "getCommentsForReview": [Function], - "getReview": [Function], - "getReviewComment": [Function], - "list": [Function], - "listComments": [Function], - "listCommentsForRepo": [Function], - "listCommentsForReview": [Function], - "listCommits": [Function], - "listFiles": [Function], - "listRequestedReviewers": [Function], - "listReviewComments": [Function], - "listReviewCommentsForRepo": [Function], - "listReviewRequests": [Function], - "listReviews": [Function], - "merge": [Function], - "removeRequestedReviewers": [Function], - "requestReviewers": [Function], - "submitReview": [Function], - "update": [Function], - "updateBranch": [Function], - "updateComment": [Function], - "updateReview": [Function], - "updateReviewComment": [Function], - }, - "rateLimit": Object { - "get": [Function], - }, - "reactions": Object { - "createForCommitComment": [Function], - "createForIssue": [Function], - "createForIssueComment": [Function], - "createForPullRequestReviewComment": [Function], - "createForTeamDiscussionCommentInOrg": [Function], - "createForTeamDiscussionInOrg": [Function], - "delete": [Function], - "deleteForCommitComment": [Function], - "deleteForIssue": [Function], - "deleteForIssueComment": [Function], - "deleteForPullRequestComment": [Function], - "deleteForTeamDiscussion": [Function], - "deleteForTeamDiscussionComment": [Function], - "deleteLegacy": [Function], - "listForCommitComment": [Function], - "listForIssue": [Function], - "listForIssueComment": [Function], - "listForPullRequestReviewComment": [Function], - "listForTeamDiscussionCommentInOrg": [Function], - "listForTeamDiscussionInOrg": [Function], - }, - "repos": Object { - "acceptInvitation": [Function], - "addAppAccessRestrictions": [Function], - "addCollaborator": [Function], - "addDeployKey": [Function], - "addProtectedBranchAdminEnforcement": [Function], - "addProtectedBranchAppRestrictions": [Function], - "addProtectedBranchRequiredSignatures": [Function], - "addProtectedBranchRequiredStatusChecksContexts": [Function], - "addProtectedBranchTeamRestrictions": [Function], - "addProtectedBranchUserRestrictions": [Function], - "addStatusCheckContexts": [Function], - "addTeamAccessRestrictions": [Function], - "addUserAccessRestrictions": [Function], - "checkCollaborator": [Function], - "checkVulnerabilityAlerts": [Function], - "compareCommits": [Function], - "createCommitComment": [Function], - "createCommitSignatureProtection": [Function], - "createCommitStatus": [Function], - "createDeployKey": [Function], - "createDeployment": [Function], - "createDeploymentStatus": [Function], - "createDispatchEvent": [Function], - "createForAuthenticatedUser": [Function], - "createFork": [Function], - "createHook": [Function], - "createInOrg": [Function], - "createOrUpdateFile": [Function], - "createOrUpdateFileContents": [Function], - "createPagesSite": [Function], - "createRelease": [Function], - "createStatus": [Function], - "createUsingTemplate": [Function], - "createWebhook": [Function], - "declineInvitation": [Function], - "delete": [Function], - "deleteAccessRestrictions": [Function], - "deleteAdminBranchProtection": [Function], - "deleteBranchProtection": [Function], - "deleteCommitComment": [Function], - "deleteCommitSignatureProtection": [Function], - "deleteDeployKey": [Function], - "deleteDeployment": [Function], - "deleteDownload": [Function], - "deleteFile": [Function], - "deleteHook": [Function], - "deleteInvitation": [Function], - "deletePagesSite": [Function], - "deletePullRequestReviewProtection": [Function], - "deleteRelease": [Function], - "deleteReleaseAsset": [Function], - "deleteWebhook": [Function], - "disableAutomatedSecurityFixes": [Function], - "disablePagesSite": [Function], - "disableVulnerabilityAlerts": [Function], - "downloadArchive": [Function], - "enableAutomatedSecurityFixes": [Function], - "enablePagesSite": [Function], - "enableVulnerabilityAlerts": [Function], - "get": [Function], - "getAccessRestrictions": [Function], - "getAdminBranchProtection": [Function], - "getAllStatusCheckContexts": [Function], - "getAllTopics": [Function], - "getAppsWithAccessToProtectedBranch": [Function], - "getArchiveLink": [Function], - "getBranch": [Function], - "getBranchProtection": [Function], - "getClones": [Function], - "getCodeFrequencyStats": [Function], - "getCollaboratorPermissionLevel": [Function], - "getCombinedStatusForRef": [Function], - "getCommit": [Function], - "getCommitActivityStats": [Function], - "getCommitComment": [Function], - "getCommitSignatureProtection": [Function], - "getCommunityProfileMetrics": [Function], - "getContent": [Function], - "getContents": [Function], - "getContributorsStats": [Function], - "getDeployKey": [Function], - "getDeployment": [Function], - "getDeploymentStatus": [Function], - "getDownload": [Function], - "getHook": [Function], - "getLatestPagesBuild": [Function], - "getLatestRelease": [Function], - "getPages": [Function], - "getPagesBuild": [Function], - "getParticipationStats": [Function], - "getProtectedBranchAdminEnforcement": [Function], - "getProtectedBranchPullRequestReviewEnforcement": [Function], - "getProtectedBranchRequiredSignatures": [Function], - "getProtectedBranchRequiredStatusChecks": [Function], - "getProtectedBranchRestrictions": [Function], - "getPullRequestReviewProtection": [Function], - "getPunchCardStats": [Function], - "getReadme": [Function], - "getRelease": [Function], - "getReleaseAsset": [Function], - "getReleaseByTag": [Function], - "getStatusChecksProtection": [Function], - "getTeamsWithAccessToProtectedBranch": [Function], - "getTopPaths": [Function], - "getTopReferrers": [Function], - "getUsersWithAccessToProtectedBranch": [Function], - "getViews": [Function], - "getWebhook": [Function], - "list": [Function], - "listAssetsForRelease": [Function], - "listBranches": [Function], - "listBranchesForHeadCommit": [Function], - "listCollaborators": [Function], - "listCommentsForCommit": [Function], - "listCommitComments": [Function], - "listCommitCommentsForRepo": [Function], - "listCommitStatusesForRef": [Function], - "listCommits": [Function], - "listContributors": [Function], - "listDeployKeys": [Function], - "listDeploymentStatuses": [Function], - "listDeployments": [Function], - "listDownloads": [Function], - "listForAuthenticatedUser": [Function], - "listForOrg": [Function], - "listForUser": [Function], - "listForks": [Function], - "listHooks": [Function], - "listInvitations": [Function], - "listInvitationsForAuthenticatedUser": [Function], - "listLanguages": [Function], - "listPagesBuilds": [Function], - "listProtectedBranchRequiredStatusChecksContexts": [Function], - "listPublic": [Function], - "listPullRequestsAssociatedWithCommit": [Function], - "listReleaseAssets": [Function], - "listReleases": [Function], - "listStatusesForRef": [Function], - "listTags": [Function], - "listTeams": [Function], - "listTopics": [Function], - "listWebhooks": [Function], - "merge": [Function], - "pingHook": [Function], - "pingWebhook": [Function], - "removeAppAccessRestrictions": [Function], - "removeBranchProtection": [Function], - "removeCollaborator": [Function], - "removeDeployKey": [Function], - "removeProtectedBranchAdminEnforcement": [Function], - "removeProtectedBranchAppRestrictions": [Function], - "removeProtectedBranchPullRequestReviewEnforcement": [Function], - "removeProtectedBranchRequiredSignatures": [Function], - "removeProtectedBranchRequiredStatusChecks": [Function], - "removeProtectedBranchRequiredStatusChecksContexts": [Function], - "removeProtectedBranchRestrictions": [Function], - "removeProtectedBranchTeamRestrictions": [Function], - "removeProtectedBranchUserRestrictions": [Function], - "removeStatusCheckContexts": [Function], - "removeStatusCheckProtection": [Function], - "removeTeamAccessRestrictions": [Function], - "removeUserAccessRestrictions": [Function], - "replaceAllTopics": [Function], - "replaceProtectedBranchAppRestrictions": [Function], - "replaceProtectedBranchRequiredStatusChecksContexts": [Function], - "replaceProtectedBranchTeamRestrictions": [Function], - "replaceProtectedBranchUserRestrictions": [Function], - "replaceTopics": [Function], - "requestPageBuild": [Function], - "requestPagesBuild": [Function], - "retrieveCommunityProfileMetrics": [Function], - "setAdminBranchProtection": [Function], - "setAppAccessRestrictions": [Function], - "setStatusCheckContexts": [Function], - "setTeamAccessRestrictions": [Function], - "setUserAccessRestrictions": [Function], - "testPushHook": [Function], - "testPushWebhook": [Function], - "transfer": [Function], - "update": [Function], - "updateBranchProtection": [Function], - "updateCommitComment": [Function], - "updateHook": [Function], - "updateInformationAboutPagesSite": [Function], - "updateInvitation": [Function], - "updateProtectedBranchPullRequestReviewEnforcement": [Function], - "updateProtectedBranchRequiredStatusChecks": [Function], - "updatePullRequestReviewProtection": [Function], - "updateRelease": [Function], - "updateReleaseAsset": [Function], - "updateStatusCheckPotection": [Function], - "updateWebhook": [Function], - "uploadReleaseAsset": [Function], - }, - "request": [Function], - "search": Object { - "code": [Function], - "commits": [Function], - "issuesAndPullRequests": [Function], - "labels": [Function], - "repos": [Function], - "topics": [Function], - "users": [Function], - }, - "teams": Object { - "addOrUpdateMembershipForUserInOrg": [Function], - "addOrUpdateMembershipInOrg": [Function], - "addOrUpdateProjectInOrg": [Function], - "addOrUpdateProjectPermissionsInOrg": [Function], - "addOrUpdateRepoInOrg": [Function], - "addOrUpdateRepoPermissionsInOrg": [Function], - "checkManagesRepoInOrg": [Function], - "checkPermissionsForProjectInOrg": [Function], - "checkPermissionsForRepoInOrg": [Function], - "create": [Function], - "createDiscussionCommentInOrg": [Function], - "createDiscussionInOrg": [Function], - "deleteDiscussionCommentInOrg": [Function], - "deleteDiscussionInOrg": [Function], - "deleteInOrg": [Function], - "getByName": [Function], - "getDiscussionCommentInOrg": [Function], - "getDiscussionInOrg": [Function], - "getMembershipForUserInOrg": [Function], - "getMembershipInOrg": [Function], - "list": [Function], - "listChildInOrg": [Function], - "listDiscussionCommentsInOrg": [Function], - "listDiscussionsInOrg": [Function], - "listForAuthenticatedUser": [Function], - "listMembersInOrg": [Function], - "listPendingInvitationsInOrg": [Function], - "listProjectsInOrg": [Function], - "listReposInOrg": [Function], - "removeMembershipForUserInOrg": [Function], - "removeMembershipInOrg": [Function], - "removeProjectInOrg": [Function], - "removeRepoInOrg": [Function], - "reviewProjectInOrg": [Function], - "updateDiscussionCommentInOrg": [Function], - "updateDiscussionInOrg": [Function], - "updateInOrg": [Function], - }, - "users": Object { - "addEmailForAuthenticated": [Function], - "addEmails": [Function], - "block": [Function], - "checkBlocked": [Function], - "checkFollowing": [Function], - "checkFollowingForUser": [Function], - "checkPersonIsFollowedByAuthenticated": [Function], - "createGpgKey": [Function], - "createGpgKeyForAuthenticated": [Function], - "createPublicKey": [Function], - "createPublicSshKeyForAuthenticated": [Function], - "deleteEmailForAuthenticated": [Function], - "deleteEmails": [Function], - "deleteGpgKey": [Function], - "deleteGpgKeyForAuthenticated": [Function], - "deletePublicKey": [Function], - "deletePublicSshKeyForAuthenticated": [Function], - "follow": [Function], - "getAuthenticated": [Function], - "getByUsername": [Function], - "getContextForUser": [Function], - "getGpgKey": [Function], - "getGpgKeyForAuthenticated": [Function], - "getPublicKey": [Function], - "getPublicSshKeyForAuthenticated": [Function], - "list": [Function], - "listBlocked": [Function], - "listBlockedByAuthenticated": [Function], - "listEmails": [Function], - "listEmailsForAuthenticated": [Function], - "listFollowedByAuthenticated": [Function], - "listFollowersForAuthenticatedUser": [Function], - "listFollowersForUser": [Function], - "listFollowingForAuthenticatedUser": [Function], - "listFollowingForUser": [Function], - "listGpgKeys": [Function], - "listGpgKeysForAuthenticated": [Function], - "listGpgKeysForUser": [Function], - "listPublicEmails": [Function], - "listPublicEmailsForAuthenticated": [Function], - "listPublicKeys": [Function], - "listPublicKeysForUser": [Function], - "listPublicSshKeysForAuthenticated": [Function], - "setPrimaryEmailVisibilityForAuthenticated": [Function], - "togglePrimaryEmailVisibility": [Function], - "unblock": [Function], - "unfollow": [Function], - "updateAuthenticated": [Function], - }, - }, - }, - "hasStorageAnalyticsAfecFeature": [Function], "isAccountReady": [Function], "isFixedCollectionWithSharedThroughputSupported": [Function], "isHostedDataExplorerEnabled": [Function], "isLeftPaneExpanded": [Function], - "isMongoIndexingEnabled": [Function], "isNotebookEnabled": [Function], "isNotebooksEnabledForAccount": [Function], - "isPublishNotebookPaneEnabled": [Function], "isResourceTokenCollectionNodeSelected": [Function], "isSchemaEnabled": [Function], "isServerlessEnabled": [Function], "isShellEnabled": [Function], - "isSparkEnabled": [Function], - "isSparkEnabledForAccount": [Function], "isSynapseLinkUpdating": [Function], "isTabsContentExpanded": [Function], - "junoClient": JunoClient { - "cachedPinnedRepos": [Function], - }, "memoryUsageInfo": [Function], "notebookBasePath": [Function], "notebookServerInfo": [Function], - "onGitHubClientError": [Function], "onRefreshDatabasesKeyPress": [Function], "onRefreshResourcesClick": [Function], "openSidePanel": undefined, diff --git a/src/Explorer/Controls/ThroughputInput/ThroughputInputComponentAutoPilotV3.ts b/src/Explorer/Controls/ThroughputInput/ThroughputInputComponentAutoPilotV3.ts deleted file mode 100644 index 3999fa57f..000000000 --- a/src/Explorer/Controls/ThroughputInput/ThroughputInputComponentAutoPilotV3.ts +++ /dev/null @@ -1,308 +0,0 @@ -import * as ko from "knockout"; -import { KeyCodes } from "../../../Common/Constants"; -import * as ViewModels from "../../../Contracts/ViewModels"; -import { FreeTierLimits } from "../../../Shared/Constants"; -import { Action, ActionModifiers } from "../../../Shared/Telemetry/TelemetryConstants"; -import * as TelemetryProcessor from "../../../Shared/Telemetry/TelemetryProcessor"; -import * as AutoPilotUtils from "../../../Utils/AutoPilotUtils"; -import { WaitsForTemplateViewModel } from "../../WaitsForTemplateViewModel"; -import ThroughputInputComponentAutoscaleV3 from "./ThroughputInputComponentAutoscaleV3.html"; - -/** - * Throughput Input: - * - * Creates a set of controls to input, sanitize and increase/decrease throughput - * - * How to use in your markup: - * - * - * - */ - -/** - * Parameters for this component - */ -export interface ThroughputInputParams { - /** - * Callback triggered when the template is bound to the component (for testing purposes) - */ - onTemplateReady?: () => void; - - /** - * Observable to bind the Throughput value to - */ - value: ViewModels.Editable; - - /** - * Text to use as id for testing - */ - testId: string; - - /** - * Text to use as aria-label - */ - ariaLabel?: ko.Observable; - - /** - * Minimum value in the range - */ - minimum: ko.Observable; - - /** - * Maximum value in the range - */ - maximum: ko.Observable; - - /** - * Step value for increase/decrease - */ - step?: number; - - /** - * Observable to bind the Throughput enabled status - */ - isEnabled?: ko.Observable; - - /** - * Should show pricing controls - */ - costsVisible: ko.Observable; - - /** - * RU price - */ - requestUnitsUsageCost: ko.Computed; // Our code assigns to ko.Computed, but unit test assigns to ko.Observable - - /** - * State of the spending acknowledge checkbox - */ - spendAckChecked?: ko.Observable; - - /** - * id of the spending acknowledge checkbox - */ - spendAckId?: ko.Observable; - - /** - * spending acknowledge text - */ - spendAckText?: ko.Observable; - - /** - * Show spending acknowledge controls - */ - spendAckVisible?: ko.Observable; - - /** - * Display * to the left of the label - */ - showAsMandatory: boolean; - - /** - * If true, it will display a text to prompt users to use unlimited collections to go beyond max for fixed - */ - isFixed: boolean; - - /** - * Label of the provisioned throughut control - */ - label: ko.Observable; - - /** - * Text of the info bubble for provisioned throughut control - */ - infoBubbleText?: ko.Observable; - - /** - * Computed value that decides if value can exceed maximum allowable value - */ - canExceedMaximumValue?: ko.Computed; - - /** - * CSS classes to apply on input element - */ - cssClass?: string; - - isAutoPilotSelected: ko.Observable; - throughputAutoPilotRadioId: string; - throughputProvisionedRadioId: string; - throughputModeRadioName: string; - maxAutoPilotThroughputSet: ViewModels.Editable; - autoPilotUsageCost: ko.Computed; - overrideWithAutoPilotSettings: ko.Observable; - overrideWithProvisionedThroughputSettings: ko.Observable; - freeTierExceedThroughputTooltip?: ko.Observable; - freeTierExceedThroughputWarning?: ko.Observable; -} - -export class ThroughputInputViewModel extends WaitsForTemplateViewModel { - public ariaLabel: ko.Observable; - public canExceedMaximumValue: ko.Computed; - public step: ko.Computed; - public testId: string; - public value: ViewModels.Editable; - public minimum: ko.Observable; - public maximum: ko.Observable; - public isEnabled: ko.Observable; - public cssClass: string; - public decreaseButtonAriaLabel: string; - public increaseButtonAriaLabel: string; - public costsVisible: ko.Observable; - public requestUnitsUsageCost: ko.Computed; - public spendAckChecked: ko.Observable; - public spendAckId: ko.Observable; - public spendAckText: ko.Observable; - public spendAckVisible: ko.Observable; - public showAsMandatory: boolean; - public infoBubbleText: string | ko.Observable; - public label: ko.Observable; - public isFixed: boolean; - public isAutoPilotSelected: ko.Observable; - public throughputAutoPilotRadioId: string; - public throughputProvisionedRadioId: string; - public throughputModeRadioName: string; - public maxAutoPilotThroughputSet: ko.Observable; - public autoPilotUsageCost: ko.Computed; - public minAutoPilotThroughput: ko.Observable; - public overrideWithAutoPilotSettings: ko.Observable; - public overrideWithProvisionedThroughputSettings: ko.Observable; - public isManualThroughputInputFieldRequired: ko.Computed; - public isAutoscaleThroughputInputFieldRequired: ko.Computed; - public freeTierExceedThroughputTooltip: ko.Observable; - public freeTierExceedThroughputWarning: ko.Observable; - public showFreeTierExceedThroughputTooltip: ko.Computed; - public showFreeTierExceedThroughputWarning: ko.Computed; - - public constructor(options: ThroughputInputParams) { - super(); - super.onTemplateReady((isTemplateReady: boolean) => { - if (isTemplateReady && options.onTemplateReady) { - options.onTemplateReady(); - } - }); - - const params: ThroughputInputParams = options; - this.testId = params.testId || "ThroughputValue"; - this.ariaLabel = ko.observable((params.ariaLabel && params.ariaLabel()) || ""); - this.canExceedMaximumValue = params.canExceedMaximumValue || ko.computed(() => false); - this.isEnabled = params.isEnabled || ko.observable(true); - this.cssClass = params.cssClass || "textfontclr collid migration"; - this.minimum = params.minimum; - this.maximum = params.maximum; - this.value = params.value; - this.costsVisible = options.costsVisible; - this.requestUnitsUsageCost = options.requestUnitsUsageCost; - this.spendAckChecked = options.spendAckChecked || ko.observable(false); - this.spendAckId = options.spendAckId || ko.observable(); - this.spendAckText = options.spendAckText || ko.observable(); - this.spendAckVisible = options.spendAckVisible || ko.observable(false); - this.showAsMandatory = !!options.showAsMandatory; - this.isFixed = !!options.isFixed; - this.infoBubbleText = options.infoBubbleText || ko.observable(); - this.label = options.label || ko.observable(); - this.isAutoPilotSelected = options.isAutoPilotSelected || ko.observable(false); - this.isAutoPilotSelected.subscribe((value) => { - TelemetryProcessor.trace(Action.ToggleAutoscaleSetting, ActionModifiers.Mark, { - changedSelectedValueTo: value ? ActionModifiers.ToggleAutoscaleOn : ActionModifiers.ToggleAutoscaleOff, - dataExplorerArea: "Scale Tab V1", - }); - }); - - this.throughputAutoPilotRadioId = options.throughputAutoPilotRadioId; - this.throughputProvisionedRadioId = options.throughputProvisionedRadioId; - this.throughputModeRadioName = options.throughputModeRadioName; - this.overrideWithAutoPilotSettings = options.overrideWithAutoPilotSettings || ko.observable(false); - this.overrideWithProvisionedThroughputSettings = - options.overrideWithProvisionedThroughputSettings || ko.observable(false); - - this.maxAutoPilotThroughputSet = - options.maxAutoPilotThroughputSet || ko.observable(AutoPilotUtils.minAutoPilotThroughput); - this.autoPilotUsageCost = options.autoPilotUsageCost; - this.minAutoPilotThroughput = ko.observable(AutoPilotUtils.minAutoPilotThroughput); - - this.step = ko.pureComputed(() => { - if (this.isAutoPilotSelected()) { - return AutoPilotUtils.autoPilotIncrementStep; - } - return params.step || ThroughputInputViewModel._defaultStep; - }); - this.decreaseButtonAriaLabel = "Decrease throughput by " + this.step().toString(); - this.increaseButtonAriaLabel = "Increase throughput by " + this.step().toString(); - this.isManualThroughputInputFieldRequired = ko.pureComputed(() => this.isEnabled() && !this.isAutoPilotSelected()); - this.isAutoscaleThroughputInputFieldRequired = ko.pureComputed( - () => this.isEnabled() && this.isAutoPilotSelected() - ); - - this.freeTierExceedThroughputTooltip = options.freeTierExceedThroughputTooltip || ko.observable(); - this.freeTierExceedThroughputWarning = options.freeTierExceedThroughputWarning || ko.observable(); - this.showFreeTierExceedThroughputTooltip = ko.pureComputed( - () => !!this.freeTierExceedThroughputTooltip() && this.value() > FreeTierLimits.RU - ); - - this.showFreeTierExceedThroughputWarning = ko.pureComputed( - () => !!this.freeTierExceedThroughputWarning() && this.value() > FreeTierLimits.RU - ); - } - - public decreaseThroughput() { - let offerThroughput: number = this._getSanitizedValue(); - - if (offerThroughput > this.minimum()) { - offerThroughput -= this.step(); - if (offerThroughput < this.minimum()) { - offerThroughput = this.minimum(); - } - - this.value(offerThroughput); - } - } - - public increaseThroughput() { - let offerThroughput: number = this._getSanitizedValue(); - - if (offerThroughput < this.maximum() || this.canExceedMaximumValue()) { - offerThroughput += this.step(); - if (offerThroughput > this.maximum() && !this.canExceedMaximumValue()) { - offerThroughput = this.maximum(); - } - - this.value(offerThroughput); - } - } - - public onIncreaseKeyDown = (source: any, event: KeyboardEvent): boolean => { - if (event.keyCode === KeyCodes.Enter || event.keyCode === KeyCodes.Space) { - this.increaseThroughput(); - event.stopPropagation(); - return false; - } - - return true; - }; - - public onDecreaseKeyDown = (source: any, event: KeyboardEvent): boolean => { - if (event.keyCode === KeyCodes.Enter || event.keyCode === KeyCodes.Space) { - this.decreaseThroughput(); - event.stopPropagation(); - return false; - } - - return true; - }; - - private _getSanitizedValue(): number { - let throughput = this.value(); - - if (this.isAutoPilotSelected()) { - throughput = this.maxAutoPilotThroughputSet(); - } - return isNaN(throughput) ? 0 : Number(throughput); - } - - private static _defaultStep: number = 100; -} - -export const ThroughputInputComponentAutoPilotV3 = { - viewModel: ThroughputInputViewModel, - template: ThroughputInputComponentAutoscaleV3, -}; diff --git a/src/Explorer/Controls/ThroughputInput/ThroughputInputComponentAutoscaleV3.html b/src/Explorer/Controls/ThroughputInput/ThroughputInputComponentAutoscaleV3.html deleted file mode 100644 index b8ad196b2..000000000 --- a/src/Explorer/Controls/ThroughputInput/ThroughputInputComponentAutoscaleV3.html +++ /dev/null @@ -1,194 +0,0 @@ -
-
-

- - * - - - - - - - More information - - - -

-
- - -
- - Autoscale - - - - Manual - -
- - -
-

- Provision maximum RU/s required by this resource. Estimate your required RU/s with - capacity calculator. -

-

- Max RU/s -

-
- -
-

- -

-

- -

- - -

- - -

- - - -

Choose unlimited storage capacity for more than 10,000 RU/s.

- -
- -
-

- Estimate your required throughput with - capacity calculator -

- -
- -
- -
- -
- -
- Warning - -
- -

- -

- - -

- - -

- - - -

Choose unlimited storage capacity for more than 10,000 RU/s.

- -
-
diff --git a/src/Explorer/DataSamples/ContainerSampleGenerator.test.ts b/src/Explorer/DataSamples/ContainerSampleGenerator.test.ts index 75d059dc3..b9932656a 100644 --- a/src/Explorer/DataSamples/ContainerSampleGenerator.test.ts +++ b/src/Explorer/DataSamples/ContainerSampleGenerator.test.ts @@ -14,7 +14,6 @@ describe("ContainerSampleGenerator", () => { const createExplorerStub = (database: ViewModels.Database): Explorer => { const explorerStub = {} as Explorer; explorerStub.databases = ko.observableArray([database]); - explorerStub.canExceedMaximumValue = ko.computed(() => false); explorerStub.findDatabaseWithId = () => database; explorerStub.refreshAllDatabases = () => Q.resolve(); return explorerStub; diff --git a/src/Explorer/Explorer.tsx b/src/Explorer/Explorer.tsx index 36a3ff6a4..bb7a45124 100644 --- a/src/Explorer/Explorer.tsx +++ b/src/Explorer/Explorer.tsx @@ -6,40 +6,34 @@ import _ from "underscore"; import { AuthType } from "../AuthType"; import { BindingHandlersRegisterer } from "../Bindings/BindingHandlersRegisterer"; import * as Constants from "../Common/Constants"; -import { ExplorerMetrics, HttpStatusCodes } from "../Common/Constants"; +import { ExplorerMetrics } from "../Common/Constants"; import { readCollection } from "../Common/dataAccess/readCollection"; import { readDatabases } from "../Common/dataAccess/readDatabases"; import { getErrorMessage, getErrorStack, handleError } from "../Common/ErrorHandlingUtils"; import * as Logger from "../Common/Logger"; -import { sendCachedDataMessage } from "../Common/MessageHandler"; import { QueriesClient } from "../Common/QueriesClient"; import { Splitter, SplitterBounds, SplitterDirection } from "../Common/Splitter"; import { configContext, Platform } from "../ConfigContext"; import * as DataModels from "../Contracts/DataModels"; -import { MessageTypes } from "../Contracts/ExplorerContracts"; import * as ViewModels from "../Contracts/ViewModels"; -import { GitHubClient } from "../GitHub/GitHubClient"; import { GitHubOAuthService } from "../GitHub/GitHubOAuthService"; import { IGalleryItem, JunoClient } from "../Juno/JunoClient"; import { NotebookWorkspaceManager } from "../NotebookWorkspaceManager/NotebookWorkspaceManager"; -import { ResourceProviderClientFactory } from "../ResourceProvider/ResourceProviderClientFactory"; import { RouteHandler } from "../RouteHandlers/RouteHandler"; -import { trackEvent } from "../Shared/appInsights"; import * as SharedConstants from "../Shared/Constants"; import { ExplorerSettings } from "../Shared/ExplorerSettings"; import { Action, ActionModifiers } from "../Shared/Telemetry/TelemetryConstants"; import * as TelemetryProcessor from "../Shared/Telemetry/TelemetryProcessor"; -import { ArcadiaResourceManager } from "../SparkClusterManager/ArcadiaResourceManager"; -import { updateUserContext, userContext } from "../UserContext"; +import { userContext } from "../UserContext"; import { getCollectionName, getDatabaseName, getUploadName } from "../Utils/APITypeUtils"; -import { decryptJWTToken, getAuthorizationHeader } from "../Utils/AuthorizationUtils"; +import { update } from "../Utils/arm/generatedClients/cosmos/databaseAccounts"; +import { getAuthorizationHeader } from "../Utils/AuthorizationUtils"; import { stringToBlob } from "../Utils/BlobUtils"; import { isCapabilityEnabled } from "../Utils/CapabilityUtils"; import { fromContentUri, toRawContentUri } from "../Utils/GitHubUtils"; import * as NotificationConsoleUtils from "../Utils/NotificationConsoleUtils"; import { logConsoleError, logConsoleInfo, logConsoleProgress } from "../Utils/NotificationConsoleUtils"; import * as ComponentRegisterer from "./ComponentRegisterer"; -import { ArcadiaWorkspaceItem } from "./Controls/Arcadia/ArcadiaMenuPicker"; import { CommandButtonComponentProps } from "./Controls/CommandButton/CommandButtonComponent"; import { DialogProps, TextFieldProps, useDialog } from "./Controls/Dialog"; import { GalleryTab as GalleryTabKind } from "./Controls/NotebookGallery/GalleryViewerComponent"; @@ -55,7 +49,6 @@ import { AddCollectionPanel } from "./Panes/AddCollectionPanel"; import { AddDatabasePanel } from "./Panes/AddDatabasePanel/AddDatabasePanel"; import { BrowseQueriesPane } from "./Panes/BrowseQueriesPane/BrowseQueriesPane"; import { CassandraAddCollectionPane } from "./Panes/CassandraAddCollectionPane/CassandraAddCollectionPane"; -import { ContextualPaneBase } from "./Panes/ContextualPaneBase"; import { DeleteCollectionConfirmationPane } from "./Panes/DeleteCollectionConfirmationPane/DeleteCollectionConfirmationPane"; import { DeleteDatabaseConfirmationPanel } from "./Panes/DeleteDatabaseConfirmationPanel"; import { ExecuteSprocParamsPane } from "./Panes/ExecuteSprocParamsPane/ExecuteSprocParamsPane"; @@ -104,7 +97,6 @@ export default class Explorer { public isServerlessEnabled: ko.Computed; public isAccountReady: ko.Observable; public canSaveQueries: ko.Computed; - public features: ko.Observable; public queriesClient: QueriesClient; public tableDataClient: TableDataClient; public splitter: Splitter; @@ -115,7 +107,6 @@ export default class Explorer { private setInProgressConsoleDataIdToBeDeleted: (id: string) => void; // Panes - public contextPanes: ContextualPaneBase[]; public openSidePanel: (headerText: string, panelContent: JSX.Element, onClose?: () => void) => void; public closeSidePanel: () => void; @@ -139,16 +130,10 @@ export default class Explorer { public isTabsContentExpanded: ko.Observable; public tabsManager: TabsManager; - // Contextual panes - private gitHubClient: GitHubClient; public gitHubOAuthService: GitHubOAuthService; - public junoClient: JunoClient; // features - public isPublishNotebookPaneEnabled: ko.Observable; public isHostedDataExplorerEnabled: ko.Computed; - public isMongoIndexingEnabled: ko.Observable; - public canExceedMaximumValue: ko.Computed; public isSchemaEnabled: ko.Computed; // Notebooks @@ -157,11 +142,6 @@ export default class Explorer { public notebookServerInfo: ko.Observable; public notebookWorkspaceManager: NotebookWorkspaceManager; public sparkClusterConnectionInfo: ko.Observable; - public isSparkEnabled: ko.Observable; - public isSparkEnabledForAccount: ko.Observable; - public arcadiaToken: ko.Observable; - public arcadiaWorkspaces: ko.ObservableArray; - public hasStorageAnalyticsAfecFeature: ko.Observable; public isSynapseLinkUpdating: ko.Observable; public memoryUsageInfo: ko.Observable; public notebookManager?: NotebookManager; @@ -170,7 +150,6 @@ export default class Explorer { private _isInitializingNotebooks: boolean; private notebookBasePath: ko.Observable; - private _arcadiaManager: ArcadiaResourceManager; private notebookToImport: { name: string; content: string; @@ -182,8 +161,6 @@ export default class Explorer { private static readonly MaxNbDatabasesToAutoExpand = 5; constructor(params?: ExplorerParams) { - this.gitHubClient = new GitHubClient(this.onGitHubClientError); - this.junoClient = new JunoClient(); this.setIsNotificationConsoleExpanded = params?.setIsNotificationConsoleExpanded; this.setNotificationConsoleData = params?.setNotificationConsoleData; this.setInProgressConsoleDataIdToBeDeleted = params?.setInProgressConsoleDataIdToBeDeleted; @@ -195,22 +172,9 @@ export default class Explorer { }); this.isAccountReady = ko.observable(false); this._isInitializingNotebooks = false; - this.arcadiaToken = ko.observable(); - this.arcadiaToken.subscribe((token: string) => { - if (token) { - const notebookTabs = this.tabsManager.getTabs(ViewModels.CollectionTabKind.NotebookV2); - (notebookTabs || []).forEach((tab: NotebookV2Tab) => { - tab.reconfigureServiceEndpoints(); - }); - } - }); this.isShellEnabled = ko.observable(false); this.isNotebooksEnabledForAccount = ko.observable(false); this.isNotebooksEnabledForAccount.subscribe((isEnabledForAccount: boolean) => this.refreshCommandBarButtons()); - this.isSparkEnabledForAccount = ko.observable(false); - this.isSparkEnabledForAccount.subscribe((isEnabledForAccount: boolean) => this.refreshCommandBarButtons()); - this.hasStorageAnalyticsAfecFeature = ko.observable(false); - this.hasStorageAnalyticsAfecFeature.subscribe((enabled: boolean) => this.refreshCommandBarButtons()); this.isSynapseLinkUpdating = ko.observable(false); this.isAccountReady.subscribe(async (isAccountReady: boolean) => { if (isAccountReady) { @@ -219,63 +183,29 @@ export default class Explorer { : this.refreshAllDatabases(true); RouteHandler.getInstance().initHandler(); this.notebookWorkspaceManager = new NotebookWorkspaceManager(); - this.arcadiaWorkspaces = ko.observableArray(); - this._arcadiaManager = new ArcadiaResourceManager(); - this._isAfecFeatureRegistered(Constants.AfecFeatures.StorageAnalytics).then((isRegistered) => - this.hasStorageAnalyticsAfecFeature(isRegistered) + await this._refreshNotebooksEnabledStateForAccount(); + this.isNotebookEnabled( + userContext.authType !== AuthType.ResourceToken && + ((await this._containsDefaultNotebookWorkspace(userContext.databaseAccount)) || + userContext.features.enableNotebooks) ); - Promise.all([this._refreshNotebooksEnabledStateForAccount(), this._refreshSparkEnabledStateForAccount()]).then( - async () => { - this.isNotebookEnabled( - userContext.authType !== AuthType.ResourceToken && - ((await this._containsDefaultNotebookWorkspace(userContext.databaseAccount)) || - userContext.features.enableNotebooks) - ); - this.isShellEnabled( - this.isNotebookEnabled() && - !userContext.databaseAccount.properties.isVirtualNetworkFilterEnabled && - userContext.databaseAccount.properties.ipRules.length === 0 - ); - - TelemetryProcessor.trace(Action.NotebookEnabled, ActionModifiers.Mark, { - isNotebookEnabled: this.isNotebookEnabled(), - dataExplorerArea: Constants.Areas.Notebook, - }); - - if (this.isNotebookEnabled()) { - await this.initNotebooks(userContext.databaseAccount); - const workspaces = await this._getArcadiaWorkspaces(); - this.arcadiaWorkspaces(workspaces); - } else if (this.notebookToImport) { - // if notebooks is not enabled but the user is trying to do a quickstart setup with notebooks, open the SetupNotebooksPane - this._openSetupNotebooksPaneForQuickstart(); - } - - this.isSparkEnabled( - (this.isNotebookEnabled() && - this.isSparkEnabledForAccount() && - this.arcadiaWorkspaces() && - this.arcadiaWorkspaces().length > 0) || - userContext.features.enableSpark - ); - if (this.isSparkEnabled()) { - trackEvent( - { name: "LoadedWithSparkEnabled" }, - { - subscriptionId: userContext.subscriptionId, - accountName: userContext.databaseAccount?.name, - accountId: userContext.databaseAccount?.id, - platform: configContext.platform, - } - ); - const pollArcadiaTokenRefresh = async () => { - this.arcadiaToken(await this.getArcadiaToken()); - setTimeout(() => pollArcadiaTokenRefresh(), this.getTokenRefreshInterval(this.arcadiaToken())); - }; - await pollArcadiaTokenRefresh(); - } - } + this.isShellEnabled( + this.isNotebookEnabled() && + !userContext.databaseAccount.properties.isVirtualNetworkFilterEnabled && + userContext.databaseAccount.properties.ipRules.length === 0 ); + + TelemetryProcessor.trace(Action.NotebookEnabled, ActionModifiers.Mark, { + isNotebookEnabled: this.isNotebookEnabled(), + dataExplorerArea: Constants.Areas.Notebook, + }); + + if (this.isNotebookEnabled()) { + await this.initNotebooks(userContext.databaseAccount); + } else if (this.notebookToImport) { + // if notebooks is not enabled but the user is trying to do a quickstart setup with notebooks, open the SetupNotebooksPane + this._openSetupNotebooksPaneForQuickstart(); + } } }); this.memoryUsageInfo = ko.observable(); @@ -286,11 +216,6 @@ export default class Explorer { this.resourceTokenCollectionId = ko.observable(); this.resourceTokenCollection = ko.observable(); this.resourceTokenPartitionKey = ko.observable(); - this.isMongoIndexingEnabled = ko.observable(false); - this.isPublishNotebookPaneEnabled = ko.observable(false); - - this.canExceedMaximumValue = ko.computed(() => userContext.features.canExceedMaximumValue); - this.isSchemaEnabled = ko.computed(() => userContext.features.enableSchema); this.databases = ko.observableArray(); @@ -445,8 +370,6 @@ export default class Explorer { this.refreshNotebookList(); }); - this.isSparkEnabled = ko.observable(false); - this.isSparkEnabled.subscribe((isEnabled: boolean) => this.refreshCommandBarButtons()); this.resourceTree = new ResourceTreeAdapter(this); this.resourceTreeForResourceToken = new ResourceTreeAdapterForResourceToken(this); this.notebookServerInfo = ko.observable({ @@ -490,23 +413,6 @@ export default class Explorer { } } - private onGitHubClientError = (error: any): void => { - Logger.logError(getErrorMessage(error), "NotebookManager/onGitHubClientError"); - - if (error.status === HttpStatusCodes.Unauthorized) { - this.gitHubOAuthService.resetToken(); - - this.showOkCancelModalDialog( - undefined, - "Cosmos DB cannot access your Github account anymore. Please connect to GitHub again.", - "Connect to GitHub", - () => this.openGitHubReposPanel("Connect to GitHub"), - "Cancel", - undefined - ); - } - }; - public openEnableSynapseLinkDialog(): void { const addSynapseLinkDialogProps: DialogProps = { linkProps: { @@ -528,22 +434,17 @@ export default class Explorer { this.isSynapseLinkUpdating(true); useDialog.getState().closeDialog(); - const resourceProviderClient = new ResourceProviderClientFactory().getOrCreate(userContext.databaseAccount.id); - try { - const databaseAccount: DataModels.DatabaseAccount = await resourceProviderClient.patchAsync( - userContext.databaseAccount.id, - "2019-12-12", - { - properties: { - enableAnalyticalStorage: true, - }, - } - ); + await update(userContext.subscriptionId, userContext.resourceGroup, userContext.databaseAccount.id, { + properties: { + enableAnalyticalStorage: true, + }, + }); + clearInProgressMessage(); logConsoleInfo("Enabled Azure Synapse Link for this account"); TelemetryProcessor.traceSuccess(Action.EnableAzureSynapseLink, {}, startTime); - updateUserContext({ databaseAccount }); + userContext.databaseAccount.properties.enableAnalyticalStorage = true; } catch (error) { clearInProgressMessage(); logConsoleError(`Enabling Azure Synapse Link for this account failed. ${getErrorMessage(error)}`); @@ -733,52 +634,6 @@ export default class Explorer { window.open(Constants.Urls.feedbackEmail, "_blank"); }; - public async getArcadiaToken(): Promise { - return new Promise((resolve: (token: string) => void, reject: (error: any) => void) => { - sendCachedDataMessage(MessageTypes.GetArcadiaToken, undefined /** params **/).then( - (token: string) => { - resolve(token); - }, - (error: any) => { - Logger.logError(getErrorMessage(error), "Explorer/getArcadiaToken"); - resolve(undefined); - } - ); - }); - } - - private async _getArcadiaWorkspaces(): Promise { - try { - const workspaces = await this._arcadiaManager.listWorkspacesAsync([userContext.subscriptionId]); - let workspaceItems: ArcadiaWorkspaceItem[] = new Array(workspaces.length); - const sparkPromises: Promise[] = []; - workspaces.forEach((workspace, i) => { - let promise = this._arcadiaManager.listSparkPoolsAsync(workspaces[i].id).then( - (sparkpools) => { - workspaceItems[i] = { ...workspace, sparkPools: sparkpools }; - }, - (error) => { - Logger.logError(getErrorMessage(error), "Explorer/this._arcadiaManager.listSparkPoolsAsync"); - } - ); - sparkPromises.push(promise); - }); - - return Promise.all(sparkPromises).then(() => workspaceItems); - } catch (error) { - handleError(error, "Explorer/this._arcadiaManager.listWorkspacesAsync", "Get Arcadia workspaces failed"); - return Promise.resolve([]); - } - } - - public async createWorkspace(): Promise { - return sendCachedDataMessage(MessageTypes.CreateWorkspace, undefined /** params **/); - } - - public async createSparkPool(workspaceId: string): Promise { - return sendCachedDataMessage(MessageTypes.CreateSparkPool, [workspaceId]); - } - public async initNotebooks(databaseAccount: DataModels.DatabaseAccount): Promise { if (!databaseAccount) { throw new Error("No database account specified"); @@ -1178,7 +1033,6 @@ export default class Explorer { onTakeSnapshot, onClosePanel ); - this.isPublishNotebookPaneEnabled(true); } } @@ -1457,57 +1311,6 @@ export default class Explorer { } } - public _refreshSparkEnabledStateForAccount = async (): Promise => { - const { subscriptionId, authType } = userContext; - const armEndpoint = configContext.ARM_ENDPOINT; - if (!subscriptionId || !armEndpoint || authType === AuthType.EncryptedToken) { - // explorer is not aware of the database account yet - this.isSparkEnabledForAccount(false); - return; - } - - const featureUri = `subscriptions/${subscriptionId}/providers/Microsoft.Features/providers/Microsoft.DocumentDb/features/${Constants.AfecFeatures.Spark}`; - const resourceProviderClient = new ResourceProviderClientFactory().getOrCreate(featureUri); - try { - const sparkNotebooksFeature: DataModels.AfecFeature = await resourceProviderClient.getAsync( - featureUri, - Constants.ArmApiVersions.armFeatures - ); - const isEnabled = - (sparkNotebooksFeature && - sparkNotebooksFeature.properties && - sparkNotebooksFeature.properties.state === "Registered") || - false; - this.isSparkEnabledForAccount(isEnabled); - } catch (error) { - Logger.logError(getErrorMessage(error), "Explorer/isSparkEnabledForAccount"); - this.isSparkEnabledForAccount(false); - } - }; - - public _isAfecFeatureRegistered = async (featureName: string): Promise => { - const { subscriptionId, authType } = userContext; - const armEndpoint = configContext.ARM_ENDPOINT; - if (!featureName || !subscriptionId || !armEndpoint || authType === AuthType.EncryptedToken) { - // explorer is not aware of the database account yet - return false; - } - - const featureUri = `subscriptions/${subscriptionId}/providers/Microsoft.Features/providers/Microsoft.DocumentDb/features/${featureName}`; - const resourceProviderClient = new ResourceProviderClientFactory().getOrCreate(featureUri); - try { - const featureStatus: DataModels.AfecFeature = await resourceProviderClient.getAsync( - featureUri, - Constants.ArmApiVersions.armFeatures - ); - const isEnabled = - (featureStatus && featureStatus.properties && featureStatus.properties.state === "Registered") || false; - return isEnabled; - } catch (error) { - Logger.logError(getErrorMessage(error), "Explorer/isSparkEnabledForAccount"); - return false; - } - }; private refreshNotebookList = async (): Promise => { if (!this.isNotebookEnabled() || !this.notebookManager?.notebookContentClient) { return; @@ -1724,30 +1527,6 @@ export default class Explorer { } } - private getTokenRefreshInterval(token: string): number { - let tokenRefreshInterval = Constants.ClientDefaults.arcadiaTokenRefreshInterval; - if (!token) { - return tokenRefreshInterval; - } - - try { - const tokenPayload = decryptJWTToken(this.arcadiaToken()); - if (tokenPayload && tokenPayload.hasOwnProperty("exp")) { - const expirationTime = tokenPayload.exp as number; // seconds since unix epoch - const now = new Date().getTime() / 1000; - const tokenExpirationIntervalInMs = (expirationTime - now) * 1000; - if (tokenExpirationIntervalInMs < tokenRefreshInterval) { - tokenRefreshInterval = - tokenExpirationIntervalInMs - Constants.ClientDefaults.arcadiaTokenRefreshIntervalPaddingMs; - } - } - return tokenRefreshInterval; - } catch (error) { - Logger.logError(getErrorMessage(error), "Explorer/getTokenRefreshInterval"); - return tokenRefreshInterval; - } - } - private _openSetupNotebooksPaneForQuickstart(): void { const title = "Enable Notebooks (Preview)"; const description = @@ -1779,11 +1558,6 @@ export default class Explorer { } } - public async loadSelectedDatabaseOffer(): Promise { - const database = this.findSelectedDatabase(); - await database?.loadOffer(); - } - public async loadDatabaseOffers(): Promise { await Promise.all( this.databases()?.map(async (database: ViewModels.Database) => { diff --git a/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.test.ts b/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.test.ts index 61b8126bc..5af290993 100644 --- a/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.test.ts +++ b/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.test.ts @@ -22,7 +22,6 @@ describe("CommandBarComponentButtonFactory tests", () => { }, } as DatabaseAccount, }); - mockExplorer.isSparkEnabled = ko.observable(true); mockExplorer.isSynapseLinkUpdating = ko.observable(false); mockExplorer.isDatabaseNodeOrNoneSelected = () => true; @@ -65,7 +64,6 @@ describe("CommandBarComponentButtonFactory tests", () => { } as DatabaseAccount, }); mockExplorer.isSynapseLinkUpdating = ko.observable(false); - mockExplorer.isSparkEnabled = ko.observable(true); mockExplorer.isSynapseLinkUpdating = ko.observable(false); mockExplorer.isDatabaseNodeOrNoneSelected = () => true; @@ -131,7 +129,6 @@ describe("CommandBarComponentButtonFactory tests", () => { }, } as DatabaseAccount, }); - mockExplorer.isSparkEnabled = ko.observable(true); mockExplorer.isSynapseLinkUpdating = ko.observable(false); mockExplorer.isDatabaseNodeOrNoneSelected = () => true; @@ -231,7 +228,6 @@ describe("CommandBarComponentButtonFactory tests", () => { } as DatabaseAccount, }); mockExplorer.isSynapseLinkUpdating = ko.observable(false); - mockExplorer.isSparkEnabled = ko.observable(true); mockExplorer.isDatabaseNodeOrNoneSelected = () => true; mockExplorer.isServerlessEnabled = ko.computed(() => false); @@ -323,7 +319,6 @@ describe("CommandBarComponentButtonFactory tests", () => { }); mockExplorer.isSynapseLinkUpdating = ko.observable(false); - mockExplorer.isSparkEnabled = ko.observable(true); mockExplorer.isDatabaseNodeOrNoneSelected = () => true; mockExplorer.isNotebooksEnabledForAccount = ko.observable(false); mockExplorer.isRunningOnNationalCloud = ko.observable(false); diff --git a/src/Explorer/Menus/CommandBar/CommandBarUtil.tsx b/src/Explorer/Menus/CommandBar/CommandBarUtil.tsx index dd7f01209..2f17a1370 100644 --- a/src/Explorer/Menus/CommandBar/CommandBarUtil.tsx +++ b/src/Explorer/Menus/CommandBar/CommandBarUtil.tsx @@ -14,7 +14,6 @@ import { StyleConstants } from "../../../Common/Constants"; import { MemoryUsageInfo } from "../../../Contracts/DataModels"; import { Action, ActionModifiers } from "../../../Shared/Telemetry/TelemetryConstants"; import * as TelemetryProcessor from "../../../Shared/Telemetry/TelemetryProcessor"; -import { ArcadiaMenuPicker } from "../../Controls/Arcadia/ArcadiaMenuPicker"; import { CommandButtonComponentProps } from "../../Controls/CommandButton/CommandButtonComponent"; import { MemoryTrackerComponent } from "./MemoryTrackerComponent"; @@ -168,10 +167,6 @@ export const convertButton = (btns: CommandButtonComponentProps[], backgroundCol }; } - if (btn.isArcadiaPicker && btn.arcadiaProps) { - result.commandBarButtonAs = () => ; - } - return result; } ); diff --git a/src/Explorer/Notebook/NotebookComponent/epics.ts b/src/Explorer/Notebook/NotebookComponent/epics.ts index 8c8610c0a..33eac5fac 100644 --- a/src/Explorer/Notebook/NotebookComponent/epics.ts +++ b/src/Explorer/Notebook/NotebookComponent/epics.ts @@ -36,7 +36,6 @@ import * as Constants from "../../../Common/Constants"; import { Areas } from "../../../Common/Constants"; import { Action as TelemetryAction, ActionModifiers } from "../../../Shared/Telemetry/TelemetryConstants"; import * as TelemetryProcessor from "../../../Shared/Telemetry/TelemetryProcessor"; -import { decryptJWTToken } from "../../../Utils/AuthorizationUtils"; import { logConsoleError, logConsoleInfo } from "../../../Utils/NotificationConsoleUtils"; import * as FileSystemUtil from "../FileSystemUtil"; import * as cdbActions from "../NotebookComponent/actions"; @@ -105,11 +104,6 @@ const formWebSocketURL = (serverConfig: NotebookServiceConfig, kernelId: string, params.append("session_id", sessionId); } - const userId = getUserPuid(); - if (userId) { - params.append("user_id", userId); - } - const q = params.toString(); const suffix = q !== "" ? `?${q}` : ""; @@ -289,7 +283,6 @@ export const launchWebSocketKernelEpic = ( return EMPTY; } const serverConfig: NotebookServiceConfig = selectors.serverConfig(host); - serverConfig.userPuid = getUserPuid(); const { payload: { kernelSpecName, cwd, kernelRef, contentRef }, @@ -766,25 +759,6 @@ const executeFocusedCellAndFocusNextEpic = ( ); }; -function getUserPuid(): string { - const arcadiaToken = window.dataExplorer && window.dataExplorer.arcadiaToken(); - if (!arcadiaToken) { - return undefined; - } - - let userPuid; - try { - const tokenPayload = decryptJWTToken(arcadiaToken); - if (tokenPayload && tokenPayload.hasOwnProperty("puid")) { - userPuid = tokenPayload.puid; - } - } catch (error) { - // ignore - } - - return userPuid; -} - /** * Close tab if mimetype not supported * @param action$ diff --git a/src/Explorer/Panes/AddCollectionPanel.tsx b/src/Explorer/Panes/AddCollectionPanel.tsx index 63f5a400e..e6b332546 100644 --- a/src/Explorer/Panes/AddCollectionPanel.tsx +++ b/src/Explorer/Panes/AddCollectionPanel.tsx @@ -862,8 +862,6 @@ export class AddCollectionPanel extends React.Component; - private selectedSparkPool: ko.Observable; private notebookComponentAdapter: NotebookComponentAdapter; constructor(options: NotebookTabOptions) { @@ -53,16 +46,6 @@ export default class NotebookTabV2 extends NotebookTabBase { notebookClient: NotebookTabBase.clientManager, onUpdateKernelInfo: this.onKernelUpdate, }); - - this.selectedSparkPool = ko.observable(null); - this.container && - this.container.arcadiaToken.subscribe(async () => { - const currentKernel = this.notebookComponentAdapter.getCurrentKernelName(); - if (!currentKernel) { - return; - } - await this.configureServiceEndpoints(currentKernel); - }); } public onCloseTabButtonClick(): Q.Promise { @@ -361,32 +344,6 @@ export default class NotebookTabV2 extends NotebookTabBase { }, // TODO: Uncomment when undo/redo is reimplemented in nteract ]; - - if (this.container.hasStorageAnalyticsAfecFeature()) { - const arcadiaWorkspaceDropdown: CommandButtonComponentProps = { - iconSrc: null, - iconAlt: workspaceLabel, - ariaLabel: workspaceLabel, - onCommandClick: () => {}, - commandButtonLabel: null, - hasPopup: false, - disabled: this.container.arcadiaWorkspaces.length < 1, - isDropdown: false, - isArcadiaPicker: true, - arcadiaProps: { - selectedSparkPool: this.selectedSparkPool(), - workspaces: this.container.arcadiaWorkspaces(), - onSparkPoolSelect: this.onSparkPoolSelect, - onCreateNewWorkspaceClicked: () => { - this.container.createWorkspace(); - }, - onCreateNewSparkPoolClicked: (workspaceResourceId: string) => { - this.container.createSparkPool(workspaceResourceId); - }, - }, - }; - buttons.splice(1, 0, arcadiaWorkspaceDropdown); - } return buttons; } @@ -394,50 +351,6 @@ export default class NotebookTabV2 extends NotebookTabBase { this.updateNavbarWithTabsButtons(); } - private onSparkPoolSelect = (evt: React.MouseEvent | React.KeyboardEvent, item: any) => { - if (!item || !item.text) { - this.selectedSparkPool(null); - return; - } - - trackEvent( - { name: "SparkPoolSelected" }, - { - subscriptionId: userContext.subscriptionId, - accountName: userContext.databaseAccount?.name, - accountId: userContext.databaseAccount?.id, - } - ); - - this.container && - this.container.arcadiaWorkspaces && - this.container.arcadiaWorkspaces() && - this.container.arcadiaWorkspaces().forEach(async (workspace) => { - if (workspace && workspace.name && workspace.sparkPools) { - const selectedPoolIndex = _.findIndex(workspace.sparkPools, (pool) => pool && pool.name === item.text); - if (selectedPoolIndex >= 0) { - const selectedPool = workspace.sparkPools[selectedPoolIndex]; - if (selectedPool && selectedPool.name) { - this.container.sparkClusterConnectionInfo({ - userName: undefined, - password: undefined, - endpoints: [ - { - endpoint: `https://${workspace.name}.${configContext.ARCADIA_LIVY_ENDPOINT_DNS_ZONE}/livyApi/versions/${ArmApiVersions.arcadiaLivy}/sparkPools/${selectedPool.name}/`, - kind: DataModels.SparkClusterEndpointKind.Livy, - }, - ], - }); - this.selectedSparkPool(item.text); - await this.reconfigureServiceEndpoints(); - this.container.sparkClusterConnectionInfo.valueHasMutated(); - return; - } - } - } - }); - }; - private onKernelUpdate = async () => { await this.configureServiceEndpoints(this.notebookComponentAdapter.getCurrentKernelName()).catch((reason) => { /* Erroring is ok here */ diff --git a/src/NotebookWorkspaceManager/NotebookWorkspaceResourceProviderMockClients.ts b/src/NotebookWorkspaceManager/NotebookWorkspaceResourceProviderMockClients.ts deleted file mode 100644 index f6416fe1c..000000000 --- a/src/NotebookWorkspaceManager/NotebookWorkspaceResourceProviderMockClients.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { IResourceProviderClient } from "../ResourceProvider/IResourceProviderClient"; -import { NotebookWorkspace } from "../Contracts/DataModels"; - -export class NotebookWorkspaceSettingsProviderClient implements IResourceProviderClient { - public async deleteAsync(_url: string, _apiVersion: string): Promise { - throw new Error("Not yet implemented"); - } - - public async postAsync(_url: string, _body: any, _apiVersion: string): Promise { - return Promise.resolve({ - notebookServerEndpoint: "http://localhost:8888", - username: "", - password: "", - }); - } - - public async getAsync(): Promise { - throw new Error("Not yet implemented"); - } - - public async putAsync(): Promise { - throw new Error("Not yet implemented"); - } - - public async patchAsync(): Promise { - throw new Error("Not yet implemented"); - } -} - -export class NotebookWorkspaceResourceProviderClient implements IResourceProviderClient { - public async deleteAsync(): Promise { - throw new Error("Not yet implemented"); - } - - public async postAsync(): Promise { - throw new Error("Not yet implemented"); - } - - public async getAsync(): Promise { - throw new Error("Not yet implemented"); - } - - public async putAsync(): Promise { - throw new Error("Not yet implemented"); - } - - public async patchAsync(): Promise { - throw new Error("Not yet implemented"); - } -} diff --git a/src/SparkClusterManager/ArcadiaResourceManager.ts b/src/SparkClusterManager/ArcadiaResourceManager.ts deleted file mode 100644 index cbfa68a58..000000000 --- a/src/SparkClusterManager/ArcadiaResourceManager.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { - ArcadiaWorkspace, - ArcadiaWorkspaceFeedResponse, - SparkPool, - SparkPoolFeedResponse, -} from "../Contracts/DataModels"; -import { ArmApiVersions, ArmResourceTypes } from "../Common/Constants"; -import { IResourceProviderClient, IResourceProviderClientFactory } from "../ResourceProvider/IResourceProviderClient"; -import * as Logger from "../Common/Logger"; -import { ResourceProviderClientFactory } from "../ResourceProvider/ResourceProviderClientFactory"; -import { getErrorMessage } from "../Common/ErrorHandlingUtils"; - -export class ArcadiaResourceManager { - private resourceProviderClientFactory: IResourceProviderClientFactory; - - constructor() { - this.resourceProviderClientFactory = new ResourceProviderClientFactory(); - } - - public async getWorkspacesAsync(arcadiaResourceId: string): Promise { - const uri = `${arcadiaResourceId}/workspaces`; - try { - const response = (await this._rpClient(uri).getAsync( - uri, - ArmApiVersions.arcadia - )) as ArcadiaWorkspaceFeedResponse; - return response && response.value; - } catch (error) { - Logger.logError(getErrorMessage(error), "ArcadiaResourceManager/getWorkspaceAsync"); - throw error; - } - } - - public async getWorkspaceAsync(arcadiaResourceId: string, workspaceId: string): Promise { - const uri = `${arcadiaResourceId}/workspaces/${workspaceId}`; - try { - return (await this._rpClient(uri).getAsync(uri, ArmApiVersions.arcadia)) as ArcadiaWorkspace; - } catch (error) { - Logger.logError(getErrorMessage(error), "ArcadiaResourceManager/getWorkspaceAsync"); - throw error; - } - } - - public async listWorkspacesAsync(subscriptionIds: string[]): Promise { - let uriFilter = `$filter=(resourceType eq '${ArmResourceTypes.synapseWorkspaces.toLowerCase()}')`; - if (subscriptionIds && subscriptionIds.length) { - uriFilter += ` and (${"subscriptionId eq '" + subscriptionIds.join("' or subscriptionId eq '") + "'"})`; - } - const uri = "/resources"; - try { - const response = (await this._rpClient(uri + uriFilter).getAsync( - uri, - ArmApiVersions.arm, - uriFilter - )) as ArcadiaWorkspaceFeedResponse; - return response && response.value; - } catch (error) { - Logger.logError(getErrorMessage(error), "ArcadiaManager/listWorkspacesAsync"); - throw error; - } - } - - public async listSparkPoolsAsync(resourceId: string): Promise { - let uri = `${resourceId}/bigDataPools`; - - try { - const response = (await this._rpClient(uri).getAsync(uri, ArmApiVersions.arcadia)) as SparkPoolFeedResponse; - return response && response.value; - } catch (error) { - Logger.logError(getErrorMessage(error), "ArcadiaManager/listSparkPoolsAsync"); - throw error; - } - } - - private _rpClient(uri: string): IResourceProviderClient { - return this.resourceProviderClientFactory.getOrCreate(uri); - } -} diff --git a/src/Utils/NotebookConfigurationUtils.ts b/src/Utils/NotebookConfigurationUtils.ts index 2159a9162..9151b6f40 100644 --- a/src/Utils/NotebookConfigurationUtils.ts +++ b/src/Utils/NotebookConfigurationUtils.ts @@ -1,6 +1,6 @@ -import * as DataModels from "../Contracts/DataModels"; -import * as Logger from "../Common/Logger"; import { getErrorMessage } from "../Common/ErrorHandlingUtils"; +import * as Logger from "../Common/Logger"; +import * as DataModels from "../Contracts/DataModels"; interface KernelConnectionMetadata { name: string; @@ -64,14 +64,13 @@ export const configureServiceEndpoints = async ( return Promise.reject("Invalid or missing cluster connection info"); } - const dataExplorer = window.dataExplorer; const notebookEndpointInfo: DataModels.NotebookConfigurationEndpointInfo[] = clusterConnectionInfo.endpoints.map( (clusterEndpoint) => ({ type: clusterEndpoint.kind.toLowerCase(), endpoint: clusterEndpoint && clusterEndpoint.endpoint, username: clusterConnectionInfo.userName, password: clusterConnectionInfo.password, - token: dataExplorer && dataExplorer.arcadiaToken(), + token: "", // TODO. This was arcadiaToken() when our synapse/spark integration comes back }) ); const configurationEndpoints: DataModels.NotebookConfigurationEndpoints = { diff --git a/src/Utils/arm/generatedClients/synapseWorkspaces/types.ts b/src/Utils/arm/generatedClients/synapseWorkspaces/types.ts index aaf9cacfb..a806ec6f5 100644 --- a/src/Utils/arm/generatedClients/synapseWorkspaces/types.ts +++ b/src/Utils/arm/generatedClients/synapseWorkspaces/types.ts @@ -6,6 +6,8 @@ Generated from: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/workspace.json */ +import { ARMResourceProperties } from "../cosmos/types"; + /* Workspace active directory administrator properties */ export interface AadAdminProperties { /* Tenant ID of the workspace active directory administrator */ @@ -113,13 +115,13 @@ export interface PurviewConfiguration { } /* Workspace active directory administrator */ -export type WorkspaceAadAdminInfo = unknown & { +export type WorkspaceAadAdminInfo = ARMResourceProperties & { /* Workspace active directory administrator properties */ properties?: AadAdminProperties; }; /* A workspace */ -export type Workspace = unknown & { +export type Workspace = ARMResourceProperties & { /* Workspace resource properties */ properties?: WorkspaceProperties; @@ -209,7 +211,7 @@ export interface WorkspacePatchProperties { } /* Sql Control Settings for workspace managed identity */ -export type ManagedIdentitySqlControlSettingsModel = unknown & { +export type ManagedIdentitySqlControlSettingsModel = ARMResourceProperties & { /* Sql Control Settings for workspace managed identity */ properties?: unknown; }; @@ -235,7 +237,7 @@ export interface RestorableDroppedSqlPoolProperties { } /* A restorable dropped Sql pool */ -export type RestorableDroppedSqlPool = unknown & { +export type RestorableDroppedSqlPool = ARMResourceProperties & { /* The geo-location where the resource lives */ readonly location?: string; /* The properties of a restorable dropped Sql pool */ diff --git a/tsconfig.strict.json b/tsconfig.strict.json index 53cf90d99..3693d539c 100644 --- a/tsconfig.strict.json +++ b/tsconfig.strict.json @@ -78,7 +78,6 @@ "./src/GitHub/GitHubConnector.ts", "./src/HostedExplorerChildFrame.ts", "./src/Index.ts", - "./src/NotebookWorkspaceManager/NotebookWorkspaceResourceProviderMockClients.ts", "./src/Platform/Hosted/Authorization.ts", "./src/Platform/Hosted/Components/MeControl.test.tsx", "./src/Platform/Hosted/Components/MeControl.tsx",