Skip to content

Commit

Permalink
Merge pull request #4248 from Shopify/remove-website-from-clients
Browse files Browse the repository at this point in the history
Remove website from clients
  • Loading branch information
gracejychang committed Aug 1, 2024
2 parents a7af4dc + 027b5e1 commit d30fbb7
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 20 deletions.
2 changes: 0 additions & 2 deletions packages/app/src/cli/api/graphql/find_org.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export const FindOrganizationQuery = gql`
nodes {
id
businessName
website
apps(first: 25, title: $title) {
pageInfo {
hasNextPage
Expand All @@ -32,7 +31,6 @@ export interface FindOrganizationQuerySchema {
nodes: {
id: string
businessName: string
website: string
apps: {
pageInfo: {
hasNextPage: boolean
Expand Down
2 changes: 0 additions & 2 deletions packages/app/src/cli/api/graphql/find_org_basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export const FindOrganizationBasicQuery = gql`
nodes {
id
businessName
website
}
}
}
Expand All @@ -17,7 +16,6 @@ export interface FindOrganizationBasicQuerySchema {
nodes: {
id: string
businessName: string
website: string
}[]
}
}
Expand Down
2 changes: 0 additions & 2 deletions packages/app/src/cli/api/graphql/find_store_by_domain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export const FindStoreByDomainQuery = gql`
nodes {
id
businessName
website
stores(shopDomain: $shopDomain, first: 1, archived: false) {
nodes {
shopId
Expand All @@ -32,7 +31,6 @@ export interface FindStoreByDomainSchema {
nodes: {
id: string
businessName: string
website: string
stores: {
nodes: {
shopId: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/co

export type AllOrgsQueryVariables = Types.Exact<{[key: string]: never}>

export type AllOrgsQuery = {
organizations: {nodes?: ({id: string; businessName: string; website?: string | null} | null)[] | null}
}
export type AllOrgsQuery = {organizations: {nodes?: ({id: string; businessName: string} | null)[] | null}}

export const AllOrgs = {
kind: 'Document',
Expand Down Expand Up @@ -36,7 +34,6 @@ export const AllOrgs = {
selections: [
{kind: 'Field', name: {kind: 'Name', value: 'id'}},
{kind: 'Field', name: {kind: 'Name', value: 'businessName'}},
{kind: 'Field', name: {kind: 'Name', value: 'website'}},
{kind: 'Field', name: {kind: 'Name', value: '__typename'}},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ query AllOrgs {
nodes {
id
businessName
website
}
}
}
1 change: 0 additions & 1 deletion packages/app/src/cli/models/app/app.test-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ function testOrganization(): Organization {
return {
id: '1',
businessName: 'org1',
website: 'https://www.example.com',
}
}

Expand Down
1 change: 0 additions & 1 deletion packages/app/src/cli/models/organization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export enum OrganizationSource {
export interface Organization {
id: string
businessName: string
website?: string
source?: OrganizationSource
}

Expand Down
1 change: 0 additions & 1 deletion packages/app/src/cli/services/app/env/show.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ describe('env show', () => {
id: '123',
flags: {},
businessName: 'test',
website: '',
apps: {nodes: []},
}
const organizationApp = testOrganizationApp()
Expand Down
2 changes: 0 additions & 2 deletions packages/app/src/cli/services/context.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,11 @@ const APP2 = testOrganizationApp({
const ORG1: Organization = {
id: '1',
businessName: 'org1',
website: '',
source: OrganizationSource.Partners,
}
const ORG2: Organization = {
id: '2',
businessName: 'org2',
website: '',
source: OrganizationSource.Partners,
}

Expand Down
1 change: 0 additions & 1 deletion packages/app/src/cli/services/dev/fetch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ const FETCH_STORE_RESPONSE_VALUE: FindStoreByDomainSchema = {
{
id: ORG1.id,
businessName: ORG1.businessName,
website: 'https://example.com',
stores: {nodes: [STORE1]},
},
],
Expand Down
1 change: 0 additions & 1 deletion packages/app/src/cli/services/info.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const ORG1 = {
id: '123',
flags: {},
businessName: 'test',
website: '',
apps: {nodes: []},
}

Expand Down
1 change: 0 additions & 1 deletion packages/app/src/cli/services/versions-list.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ afterEach(() => {
const ORG1: Organization = {
id: 'org-id',
businessName: 'name of org 1',
website: '',
}

function buildDeveloperPlatformClient(): DeveloperPlatformClient {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,6 @@ export class AppManagementClient implements DeveloperPlatformClient {
{
id: organization.id,
businessName: organization.name,
website: 'N/A',
stores: {
nodes: storesArray,
},
Expand Down

0 comments on commit d30fbb7

Please sign in to comment.