chore(workspaces): drop defaultLogoIndex (#3898)

This commit is contained in:
Chuck Driesler
2025-01-28 07:56:13 +00:00
committed by GitHub
parent 57751db6d7
commit 35b59ca4f2
22 changed files with 26 additions and 91 deletions
@@ -140,8 +140,7 @@ export const createTestWorkspace = async (
name: workspace.name,
slug: workspace.slug || cryptoRandomString({ length: 10 }),
description: workspace.description || null,
logo: workspace.logo || null,
defaultLogoIndex: 0
logo: workspace.logo || null
},
userResourceAccessLimits: null
})
@@ -21,7 +21,6 @@ describe('workspace domain services', () => {
it('returns null if the workspace is not domain protected', async () => {
const isCompliant = await isUserWorkspaceDomainPolicyCompliantFactory({
getWorkspaceWithDomains: async () => ({
defaultLogoIndex: 0,
name: cryptoRandomString({ length: 10 }),
logo: null,
slug: cryptoRandomString({ length: 10 }),
@@ -45,7 +44,6 @@ describe('workspace domain services', () => {
const domain = 'example.com'
const isCompliant = await isUserWorkspaceDomainPolicyCompliantFactory({
getWorkspaceWithDomains: async () => ({
defaultLogoIndex: 0,
name: cryptoRandomString({ length: 10 }),
logo: null,
slug: cryptoRandomString({ length: 10 }),
@@ -31,8 +31,7 @@ const createTestWorkspaceWithDomains = (
domains: [],
discoverabilityEnabled: false,
domainBasedMembershipProtectionEnabled: false,
defaultProjectRole: Roles.Stream.Contributor,
defaultLogoIndex: 0
defaultProjectRole: Roles.Stream.Contributor
}
if (arg) assign(workspace, arg)
return workspace
@@ -93,8 +93,7 @@ const getCreateWorkspaceInput = () => {
description: 'foobar',
slug: cryptoRandomString({ length: 10 }),
logo: null,
name: cryptoRandomString({ length: 6 }),
defaultLogoIndex: 0
name: cryptoRandomString({ length: 6 })
}
}
}
@@ -258,7 +257,6 @@ describe('Workspace services', () => {
createdAt: new Date(),
updatedAt: new Date(),
logo: null,
defaultLogoIndex: 0,
discoverabilityEnabled: false,
domainBasedMembershipProtectionEnabled: false,
defaultProjectRole: 'stream:contributor',
@@ -1094,8 +1092,7 @@ describe('Workspace role services', () => {
description: null,
discoverabilityEnabled: false,
domainBasedMembershipProtectionEnabled: false,
defaultProjectRole: 'stream:contributor',
defaultLogoIndex: 0
defaultProjectRole: 'stream:contributor'
}
},
getDomains: async () => {
@@ -1135,8 +1132,7 @@ describe('Workspace role services', () => {
description: null,
discoverabilityEnabled: false,
domainBasedMembershipProtectionEnabled: false,
defaultProjectRole: 'stream:contributor',
defaultLogoIndex: 0
defaultProjectRole: 'stream:contributor'
}
await addDomainToWorkspaceFactory({
@@ -381,7 +381,6 @@ describe('Workspace SSO services', () => {
name: '',
description: '',
logo: null,
defaultLogoIndex: 0,
defaultProjectRole: 'stream:contributor',
domainBasedMembershipProtectionEnabled: false,
discoverabilityEnabled: false,