Skip to content

Commit

Permalink
Moving files
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwilcox committed Jan 3, 2024
1 parent d5894d4 commit 20b1066
Show file tree
Hide file tree
Showing 279 changed files with 1,803 additions and 1,511 deletions.
File renamed without changes.
14 changes: 9 additions & 5 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"agreementversion",
"alladmins",
"allowunlock",
"alreadyrestored",
"aosp",
"apikey",
"APPDIR",
Expand Down Expand Up @@ -90,6 +91,7 @@
"blockui",
"bootswatch",
"bootup",
"branchname",
"breakingchangereviewrequired",
"browserconfig",
"builddir",
Expand All @@ -106,8 +108,8 @@
"CELA",
"champscount",
"champstatus",
"chromedriver",
"checkmarks",
"chromedriver",
"citus",
"citusdata",
"classificationdelegated",
Expand Down Expand Up @@ -159,7 +161,6 @@
"copilotprod",
"copilotrequest",
"Copybara",
"countuse",
"corpnet",
"corporatealias",
"corporatecount",
Expand All @@ -171,6 +172,7 @@
"corporatename",
"corporateprod",
"corporateusername",
"countuse",
"createdat",
"creategithubaccount",
"creds",
Expand Down Expand Up @@ -208,6 +210,7 @@
"devstaging",
"directoryname",
"directowners",
"disablewave",
"distributeonly",
"distro",
"divisionid",
Expand Down Expand Up @@ -378,9 +381,9 @@
"issuecomment",
"issuesopened",
"istest",
"jabberpl",
"jeffwilcox",
"jitgrants",
"jabberpl",
"joblog",
"jobname",
"json",
Expand Down Expand Up @@ -500,8 +503,8 @@
"notifiedissueid",
"npminitignore",
"npminstallignore",
"npmrc",
"npmjs",
"npmrc",
"nums",
"Nunit",
"octicon",
Expand Down Expand Up @@ -667,6 +670,7 @@
"repoid",
"repoidifyouhaveit",
"repolockdown",
"repolockdownbranchprotections",
"repolockdownmember",
"repolockdownmembers",
"repolockdownteam",
Expand Down Expand Up @@ -879,9 +883,9 @@
"welcomeemailsent",
"whois",
"Whois",
"withsource",
"withmaintainers",
"withservicetree",
"withsource",
"wixtoolset",
"xamarinhq",
"Xcache",
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ feedscan
feedscan*
..prettierignore.swp
scripts/localCodespace.ts
junit.xml
2 changes: 1 addition & 1 deletion api/client/banner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { NextFunction, Response, Router } from 'express';
import { ReposAppRequest } from '../../interfaces';

import { jsonError } from '../../middleware';
import { getProviders } from '../../transitional';
import { getProviders } from '../../lib/transitional';

const router: Router = Router();

Expand Down
6 changes: 3 additions & 3 deletions api/client/context/administration/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import { NextFunction, Response, Router } from 'express';
import asyncHandler from 'express-async-handler';

import { ReposAppRequest } from '../../../../interfaces';
import { CreateError, getProviders } from '../../../../transitional';
import { CreateError, getProviders } from '../../../../lib/transitional';

import routeIndividualApp from './app';
import GitHubApplication from '../../../../business/application';
import { OrganizationSetting } from '../../../../entities/organizationSettings/organizationSetting';
import { sortByCaseInsensitive } from '../../../../utils';
import { OrganizationSetting } from '../../../../business/entities/organizationSettings/organizationSetting';
import { sortByCaseInsensitive } from '../../../../lib/utils';
import routeApplicationInstallation from './appInstallation';
import { ApiRequestWithGitHubApplication, RequestWithInstallation } from './types';

Expand Down
4 changes: 2 additions & 2 deletions api/client/context/administration/appInstallation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import { NextFunction, Response, Router } from 'express';
import asyncHandler from 'express-async-handler';

import { CreateError, getProviders } from '../../../../transitional';
import { OrganizationSetting } from '../../../../entities/organizationSettings/organizationSetting';
import { CreateError, getProviders } from '../../../../lib/transitional';
import { OrganizationSetting } from '../../../../business/entities/organizationSettings/organizationSetting';
import { AdministrativeGitHubAppInstallationResponse, RequestWithInstallation } from './types';

const router: Router = Router();
Expand Down
4 changes: 2 additions & 2 deletions api/client/context/administration/apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import { NextFunction, Response, Router } from 'express';
import asyncHandler from 'express-async-handler';

import { ReposAppRequest } from '../../../../interfaces';
import { CreateError, getProviders } from '../../../../transitional';
import { CreateError, getProviders } from '../../../../lib/transitional';

import routeIndividualApp from './app';
import GitHubApplication from '../../../../business/application';
import { sortByCaseInsensitive } from '../../../../utils';
import { sortByCaseInsensitive } from '../../../../lib/utils';
import {
ApiRequestWithGitHubApplication,
ManagedOrganizationAppConfigurationsByOrgView,
Expand Down
2 changes: 1 addition & 1 deletion api/client/context/administration/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Organization } from '../../../../business/organization';
import { ReposAppRequest } from '../../../../interfaces';
import { getIsCorporateAdministrator, jsonError } from '../../../../middleware';
import getCompanySpecificDeployment from '../../../../middleware/companySpecificDeployment';
import { ErrorHelper, getProviders } from '../../../../transitional';
import { ErrorHelper, getProviders } from '../../../../lib/transitional';

import routeIndividualOrganization from './organization';
import routeApps from './apps';
Expand Down
4 changes: 2 additions & 2 deletions api/client/context/administration/organization/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
import { NextFunction, Response, Router } from 'express';
import asyncHandler from 'express-async-handler';

import { OrganizationSetting } from '../../../../../entities/organizationSettings/organizationSetting';
import { OrganizationSetting } from '../../../../../business/entities/organizationSettings/organizationSetting';
import { ReposAppRequest } from '../../../../../interfaces';
import { jsonError } from '../../../../../middleware';
import { CreateError, ErrorHelper, getProviders } from '../../../../../transitional';
import { CreateError, ErrorHelper, getProviders } from '../../../../../lib/transitional';

const router: Router = Router();

Expand Down
2 changes: 1 addition & 1 deletion api/client/context/administration/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//

import GitHubApplication, { type GitHubAppDefinition } from '../../../../business/application';
import { OrganizationSetting } from '../../../../entities/organizationSettings/organizationSetting';
import { OrganizationSetting } from '../../../../business/entities/organizationSettings/organizationSetting';
import type { IGitHubAppInstallation, ReposAppRequest } from '../../../../interfaces';

export type ApiRequestWithGitHubApplication = ReposAppRequest & {
Expand Down
4 changes: 2 additions & 2 deletions api/client/context/approvals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { NextFunction, Response, Router } from 'express';
import asyncHandler from 'express-async-handler';

import { Team, Organization } from '../../../business';
import { TeamJoinApprovalEntity } from '../../../entities/teamJoinApproval/teamJoinApproval';
import { TeamJoinApprovalEntity } from '../../../business/entities/teamJoinApproval/teamJoinApproval';
import { TeamJsonFormat, ReposAppRequest } from '../../../interfaces';
import { jsonError } from '../../../middleware';
import {
Expand All @@ -16,7 +16,7 @@ import {
Approvals_getUserRequests,
closeOldRequest,
} from '../../../routes/settings/approvals';
import { getProviders } from '../../../transitional';
import { getProviders } from '../../../lib/transitional';
import { IndividualContext } from '../../../business/user';

const router: Router = Router();
Expand Down
2 changes: 1 addition & 1 deletion api/client/context/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { IProviders, ReposAppRequest } from '../../../interfaces';

import { jsonError } from '../../../middleware';
import getCompanySpecificDeployment from '../../../middleware/companySpecificDeployment';
import { ErrorHelper, getProviders } from '../../../transitional';
import { ErrorHelper, getProviders } from '../../../lib/transitional';
import { IndividualContext } from '../../../business/user';

import routeApprovals from './approvals';
Expand Down
2 changes: 1 addition & 1 deletion api/client/context/organization/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { IndividualContext } from '../../../../business/user';

import routeRepos from './repos';
import routeTeams from './teams';
import { CreateError } from '../../../../transitional';
import { CreateError } from '../../../../lib/transitional';

const router: Router = Router();

Expand Down
4 changes: 2 additions & 2 deletions api/client/context/organization/repoForkUnlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { getRepositoryMetadataProvider, ReposAppRequest } from '../../../../inte
import { Organization } from '../../../../business';
import { getContextualRepository } from '../../../../middleware/github/repoPermissions';
import { IndividualContext } from '../../../../business/user';
import { ErrorHelper, getProviders } from '../../../../transitional';
import NewRepositoryLockdownSystem from '../../../../features/newRepositories/newRepositoryLockdown';
import { ErrorHelper, getProviders } from '../../../../lib/transitional';
import NewRepositoryLockdownSystem from '../../../../business/features/newRepositories/newRepositoryLockdown';

const router: Router = Router();

Expand Down
4 changes: 2 additions & 2 deletions api/client/context/organization/team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { NextFunction, Response, Router } from 'express';
import asyncHandler from 'express-async-handler';

import { TeamJoinApprovalEntity } from '../../../../entities/teamJoinApproval/teamJoinApproval';
import { TeamJoinApprovalEntity } from '../../../../business/entities/teamJoinApproval/teamJoinApproval';
import {
ReposAppRequest,
OrganizationMembershipState,
Expand All @@ -24,7 +24,7 @@ import {
import { submitTeamJoinRequest } from '../../../../routes/org/team';
import { postActionDecision, TeamApprovalDecision } from '../../../../routes/org/team/approval';
import { PermissionWorkflowEngine } from '../../../../routes/org/team/approvals';
import { CreateError, getProviders } from '../../../../transitional';
import { CreateError, getProviders } from '../../../../lib/transitional';
import { IndividualContext } from '../../../../business/user';
import getCompanySpecificDeployment from '../../../../middleware/companySpecificDeployment';

Expand Down
2 changes: 1 addition & 1 deletion api/client/context/sample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import asyncHandler from 'express-async-handler';
import { sendLinkedAccountMail } from '../../../business/operations/link';
import { ReposAppRequest } from '../../../interfaces';
import { jsonError } from '../../../middleware';
import { CreateError, getProviders } from '../../../transitional';
import { CreateError, getProviders } from '../../../lib/transitional';
import { IndividualContext } from '../../../business/user';

const router: Router = Router();
Expand Down
2 changes: 1 addition & 1 deletion api/client/context/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { NextFunction, Response, Router } from 'express';
import asyncHandler from 'express-async-handler';

import { ReposAppRequest } from '../../../interfaces';
import { CreateError, getProviders } from '../../../transitional';
import { CreateError, getProviders } from '../../../lib/transitional';
import { getUserSettings } from '../../../middleware/business/userSettings';

import type { ReposAppRequestWithUserSettings } from '../../../interfaces/middleware';
Expand Down
2 changes: 1 addition & 1 deletion api/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
jsonError,
requireAuthenticatedUserOrSignIn,
} from '../../middleware';
import { getProviders } from '../../transitional';
import { getProviders } from '../../lib/transitional';

import getCompanySpecificDeployment from '../../middleware/companySpecificDeployment';

Expand Down
2 changes: 1 addition & 1 deletion api/client/linking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import asyncHandler from 'express-async-handler';

import { IndividualContext } from '../../business/user';
import { jsonError } from '../../middleware';
import { ErrorHelper, getProviders } from '../../transitional';
import { ErrorHelper, getProviders } from '../../lib/transitional';
import { unlinkInteractive } from '../../routes/unlink';
import { interactiveLinkUser } from '../../routes/link';
import { ReposAppRequest } from '../../interfaces';
Expand Down
2 changes: 1 addition & 1 deletion api/client/newOrgRepo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { NextFunction, Response, Router } from 'express';
import asyncHandler from 'express-async-handler';
const router: Router = Router();

import { getProviders } from '../../transitional';
import { getProviders } from '../../lib/transitional';
import { jsonError } from '../../middleware/jsonError';
import { IndividualContext } from '../../business/user';
import { Organization } from '../../business/organization';
Expand Down
2 changes: 1 addition & 1 deletion api/client/newRepo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { NextFunction, Response, Router } from 'express';
const router: Router = Router();

import { getProviders } from '../../transitional';
import { getProviders } from '../../lib/transitional';
import { jsonError } from '../../middleware/jsonError';

import newOrgRepo from './newOrgRepo';
Expand Down
2 changes: 1 addition & 1 deletion api/client/news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { NextFunction, Response, Router } from 'express';
import asyncHandler from 'express-async-handler';

import { jsonError } from '../../middleware';
import { getProviders } from '../../transitional';
import { getProviders } from '../../lib/transitional';
import { ReposAppRequest } from '../../interfaces';

const router: Router = Router();
Expand Down
4 changes: 2 additions & 2 deletions api/client/organization/annotations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import {
IOrganizationAnnotationChange,
OrganizationAnnotation,
getOrganizationAnnotationRestrictedPropertyNames,
} from '../../../entities/organizationAnnotation';
import { CreateError, ErrorHelper, getProviders } from '../../../transitional';
} from '../../../business/entities/organizationAnnotation';
import { CreateError, ErrorHelper, getProviders } from '../../../lib/transitional';
import { IndividualContext } from '../../../business/user';
import { IProviders } from '../../../interfaces';
import { ensureOrganizationProfileMiddleware } from '../../../middleware/github/ensureOrganizationProfile';
Expand Down
2 changes: 1 addition & 1 deletion api/client/organization/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import asyncHandler from 'express-async-handler';
import { ReposAppRequest } from '../../../interfaces';
import { jsonError } from '../../../middleware';
import getCompanySpecificDeployment from '../../../middleware/companySpecificDeployment';
import { getProviders } from '../../../transitional';
import { getProviders } from '../../../lib/transitional';
import {
blockIfUnmanagedOrganization,
IReposAppRequestWithOrganizationManagementType,
Expand Down
2 changes: 1 addition & 1 deletion api/client/organization/people.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { NextFunction, Response, Router } from 'express';
import asyncHandler from 'express-async-handler';

import { jsonError } from '../../../middleware';
import { getProviders } from '../../../transitional';
import { getProviders } from '../../../lib/transitional';
import LeakyLocalCache, { getLinksLightCache } from '../leakyLocalCache';
import JsonPager from '../jsonPager';
import {
Expand Down
4 changes: 2 additions & 2 deletions api/client/organization/repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { NextFunction, Response, Router } from 'express';
import asyncHandler from 'express-async-handler';

import { jsonError } from '../../../middleware';
import { CreateError, ErrorHelper, getProviders } from '../../../transitional';
import { CreateError, ErrorHelper, getProviders } from '../../../lib/transitional';
import { IndividualContext } from '../../../business/user';
import NewRepositoryLockdownSystem from '../../../features/newRepositories/newRepositoryLockdown';
import NewRepositoryLockdownSystem from '../../../business/features/newRepositories/newRepositoryLockdown';
import {
AddRepositoryPermissionsToRequest,
getContextualRepositoryPermissions,
Expand Down
4 changes: 2 additions & 2 deletions api/client/organization/repos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import { NextFunction, Response, Router } from 'express';
import asyncHandler from 'express-async-handler';

import { jsonError } from '../../../middleware';
import { CreateError, getProviders } from '../../../transitional';
import { CreateError, getProviders } from '../../../lib/transitional';
import { Repository } from '../../../business';

import JsonPager from '../jsonPager';
import { ReposAppRequest, IProviders } from '../../../interfaces';
import { sortRepositoriesByNameCaseInsensitive } from '../../../utils';
import { sortRepositoriesByNameCaseInsensitive } from '../../../lib/utils';
import { apiMiddlewareRepositoriesToRepository } from '../../../middleware/business/repository';

import routeRepo from './repo';
Expand Down
4 changes: 2 additions & 2 deletions api/client/organization/team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import asyncHandler from 'express-async-handler';
import { getContextualTeam } from '../../../middleware/github/teamPermissions';

import { jsonError } from '../../../middleware';
import { getProviders } from '../../../transitional';
import { getProviders } from '../../../lib/transitional';
import JsonPager from '../jsonPager';
import { getLinksLightCache } from '../leakyLocalCache';
import { equivalentLegacyPeopleSearch } from './people';
import { TeamRepositoryPermission, OrganizationMember, corporateLinkToJson } from '../../../business';
import { ReposAppRequest, TeamJsonFormat, NoCacheNoBackground, ICorporateLink } from '../../../interfaces';
import { sortRepositoriesByNameCaseInsensitive } from '../../../utils';
import { sortRepositoriesByNameCaseInsensitive } from '../../../lib/utils';
import getCompanySpecificDeployment from '../../../middleware/companySpecificDeployment';

const router: Router = Router();
Expand Down
4 changes: 2 additions & 2 deletions api/client/organizations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import asyncHandler from 'express-async-handler';
import throat from 'throat';

import { getIsCorporateAdministrator, jsonError } from '../../middleware';
import { CreateError, getProviders } from '../../transitional';
import { CreateError, getProviders } from '../../lib/transitional';
import { ReposAppRequest } from '../../interfaces';

import RouteOrganization from './organization';
Expand All @@ -18,7 +18,7 @@ import {
OrganizationAnnotation,
OrganizationAnnotationProperty,
getOrganizationAnnotationRestrictedPropertyNames,
} from '../../entities/organizationAnnotation';
} from '../../business/entities/organizationAnnotation';
import { getOrganizationProfileViaMemoryCache } from '../../middleware/github/ensureOrganizationProfile';

const router: Router = Router();
Expand Down
Loading

0 comments on commit 20b1066

Please sign in to comment.