Skip to content

Commit 01d56ca

Browse files
committed
chore(connectors): remove non-TSDoc inline comments
1 parent 267c00d commit 01d56ca

4 files changed

Lines changed: 1 addition & 14 deletions

File tree

apps/sim/connectors/fathom/fathom.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,10 +489,6 @@ export const fathomConnector: ConnectorConfig = {
489489
return hydrated
490490
}
491491

492-
// No cached header (defensive — `listDocuments` always caches one in the
493-
// shared sync context before `getDocument` runs in the same run). Omit the
494-
// hash so the engine reuses the authoritative stub `contentHash` instead of
495-
// persisting a divergent value that would loop as a perpetual "update".
496492
return omit(hydrated, ['contentHash']) as ExternalDocument
497493
} catch (error) {
498494
logger.warn('Failed to get Fathom meeting', {

apps/sim/connectors/gitlab/gitlab.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,6 @@ export const gitlabConnector: ConnectorConfig = {
395395
throw new Error('Project is required')
396396
}
397397

398-
// Resolve the project path once per sync for building source URLs.
399398
let projectPath = (syncContext?.projectPath as string) ?? ''
400399
if (!projectPath && syncContext) {
401400
const projectResponse = await fetchProject(apiBase, encodedProject, accessToken)
@@ -410,7 +409,6 @@ export const gitlabConnector: ConnectorConfig = {
410409
const state = decodeCursor(cursor, initialPhase)
411410

412411
if (state.phase === 'wiki' && wantsWiki) {
413-
// Wikis have no pagination; list every page (with content) in one pass.
414412
const url = `${apiBase}/projects/${encodedProject}/wikis?with_content=1`
415413
logger.info('Listing GitLab wiki pages', { host, project: encodedProject })
416414

@@ -446,7 +444,6 @@ export const gitlabConnector: ConnectorConfig = {
446444
return { documents: capped, hasMore: false }
447445
}
448446

449-
// Advance to the issues phase.
450447
return {
451448
documents: capped,
452449
nextCursor: encodeCursor({ phase: 'issues', issuePage: 1 }),
@@ -624,7 +621,6 @@ export const gitlabConnector: ConnectorConfig = {
624621

625622
const projectRecord = (await response.json()) as GitLabProject
626623

627-
// When syncing wikis, confirm the wiki feature is enabled on the project.
628624
if (choice === 'wiki' || choice === 'both') {
629625
const accessLevel = projectRecord.wiki_access_level
630626
const enabled =

apps/sim/connectors/monday/monday.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,6 @@ export const mondayConnector: ConnectorConfig = {
381381
const fallbackBoard = { id: board.id, name: board.name }
382382

383383
const prevFetched = (syncContext?.totalDocsFetched as number) ?? 0
384-
// monday charges query complexity per returned item, so when a maxItems cap
385-
// leaves fewer than a full page remaining, request only what's needed.
386384
const pageLimit =
387385
maxItems > 0
388386
? Math.min(ITEMS_PAGE_SIZE, Math.max(1, maxItems - prevFetched))
@@ -449,7 +447,7 @@ export const mondayConnector: ConnectorConfig = {
449447
let hasMore = false
450448

451449
if (hitLimit) {
452-
// Stop syncing — item cap reached
450+
nextCursor = undefined
453451
} else if (nextItemsCursor) {
454452
nextCursor = encodeCursor({ boardIndex: state.boardIndex, itemsCursor: nextItemsCursor })
455453
hasMore = true

apps/sim/connectors/rootly/rootly.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,6 @@ export const rootlyConnector: ConnectorConfig = {
421421
if (status) queryParams.set('filter[status]', status)
422422
if (severity) queryParams.set('filter[severity]', severity)
423423

424-
// Incremental sync: Rootly supports filtering by update time and sorting by it,
425-
// so the engine only re-reads incidents changed since the last successful sync.
426-
// Sort most-recently-updated first so the freshest changes page in first.
427424
if (lastSyncAt) {
428425
queryParams.set('filter[updated_at][gt]', lastSyncAt.toISOString())
429426
queryParams.set('sort', '-updated_at')

0 commit comments

Comments
 (0)