Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove teams limit #10514

Merged
merged 3 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
169 changes: 0 additions & 169 deletions packages/server/billing/helpers/teamLimitsCheck.ts

This file was deleted.

3 changes: 0 additions & 3 deletions packages/server/graphql/mutations/archiveTeam.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {GraphQLID, GraphQLNonNull, GraphQLObjectType} from 'graphql'
import {SubscriptionChannel} from 'parabol-client/types/constEnums'
import TeamMemberId from '../../../client/shared/gqlIds/TeamMemberId'
import {maybeRemoveRestrictions} from '../../billing/helpers/teamLimitsCheck'
import generateUID from '../../generateUID'
import getKysely from '../../postgres/getKysely'
import removeMeetingTemplatesForTeam from '../../postgres/queries/removeMeetingTemplatesForTeam'
Expand Down Expand Up @@ -89,8 +88,6 @@ export default {
publish(SubscriptionChannel.NOTIFICATION, id, 'AuthTokenPayload', {tms})
})

await maybeRemoveRestrictions(team.orgId, dataLoader)

return data
}
}
2 changes: 0 additions & 2 deletions packages/server/graphql/mutations/endCheckIn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {AGENDA_ITEMS, LAST_CALL} from 'parabol-client/utils/constants'
import getMeetingPhase from 'parabol-client/utils/getMeetingPhase'
import findStageById from 'parabol-client/utils/meetings/findStageById'
import {positionAfter} from '../../../client/shared/sortOrder'
import {checkTeamsLimit} from '../../billing/helpers/teamLimitsCheck'
import TimelineEventCheckinComplete from '../../database/types/TimelineEventCheckinComplete'
import {DataLoaderInstance} from '../../dataloader/RootDataLoader'
import generateUID from '../../generateUID'
Expand Down Expand Up @@ -210,7 +209,6 @@ export default {

analytics.checkInEnd(completedCheckIn, meetingMembers, dataLoader)
sendNewMeetingSummary(completedCheckIn, context).catch(Logger.log)
checkTeamsLimit(team.orgId, dataLoader)

const events = teamMembers.map(
(teamMember) =>
Expand Down
2 changes: 0 additions & 2 deletions packages/server/graphql/mutations/endSprintPoker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {sql} from 'kysely'
import {SubscriptionChannel} from 'parabol-client/types/constEnums'
import getMeetingPhase from 'parabol-client/utils/getMeetingPhase'
import findStageById from 'parabol-client/utils/meetings/findStageById'
import {checkTeamsLimit} from '../../billing/helpers/teamLimitsCheck'
import TimelineEventPokerComplete from '../../database/types/TimelineEventPokerComplete'
import getKysely from '../../postgres/getKysely'
import {Logger} from '../../utils/Logger'
Expand Down Expand Up @@ -108,7 +107,6 @@ export default {
const isKill = !!(phase && phase.phaseType !== 'ESTIMATE')
if (!isKill) {
sendNewMeetingSummary(completedMeeting, context).catch(Logger.log)
checkTeamsLimit(team.orgId, dataLoader)
}
const events = teamMembers.map(
(teamMember) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {SubscriptionChannel} from 'parabol-client/types/constEnums'
import {DISCUSS} from 'parabol-client/utils/constants'
import getMeetingPhase from 'parabol-client/utils/getMeetingPhase'
import findStageById from 'parabol-client/utils/meetings/findStageById'
import {checkTeamsLimit} from '../../../billing/helpers/teamLimitsCheck'
import TimelineEventRetroComplete from '../../../database/types/TimelineEventRetroComplete'
import getKysely from '../../../postgres/getKysely'
import {RetrospectiveMeeting} from '../../../postgres/types/Meeting'
Expand Down Expand Up @@ -140,7 +139,6 @@ const safeEndRetrospective = async ({
// don't await for the OpenAI response or it'll hang for a while when ending the retro
summarizeRetroMeeting(completedRetrospective, context)
analytics.retrospectiveEnd(completedRetrospective, meetingMembers, template, dataLoader)
checkTeamsLimit(team.orgId, dataLoader)
const events = teamMembers.map(
(teamMember) =>
new TimelineEventRetroComplete({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {sql} from 'kysely'
import {SubscriptionChannel} from 'parabol-client/types/constEnums'
import {checkTeamsLimit} from '../../../billing/helpers/teamLimitsCheck'
import TimelineEventTeamPromptComplete from '../../../database/types/TimelineEventTeamPromptComplete'
import getKysely from '../../../postgres/getKysely'
import {getTeamPromptResponsesByMeetingId} from '../../../postgres/queries/getTeamPromptResponsesByMeetingIds'
Expand Down Expand Up @@ -88,7 +87,6 @@ const safeEndTeamPrompt = async ({
await pg.insertInto('TimelineEvent').values(events).execute()
summarizeTeamPrompt(meeting, context)
analytics.teamPromptEnd(completedTeamPrompt, meetingMembers, responses, dataLoader)
checkTeamsLimit(team.orgId, dataLoader)
dataLoader.get('newMeetings').clear(meetingId)

const data = {
Expand Down
Loading