MCPcopy Index your code
hub / github.com/simstudioai/sim / issueToStub

Function issueToStub

apps/sim/connectors/sentry/sentry.ts:260–271  ·  view source on GitHub ↗

* Creates a lightweight document stub from a list entry. No per-issue API calls — the * latest-event content is deferred to getDocument and only fetched for new/changed issues.

(issue: SentryIssue)

Source from the content-addressed store, hash-verified

258 * latest-event content is deferred to getDocument and only fetched for new/changed issues.
259 */
260function issueToStub(issue: SentryIssue): ExternalDocument {
261 return {
262 externalId: issue.id,
263 title: buildTitle(issue),
264 content: '',
265 contentDeferred: true,
266 mimeType: 'text/plain',
267 sourceUrl: issue.permalink || undefined,
268 contentHash: buildContentHash(issue),
269 metadata: buildMetadata(issue),
270 }
271}
272
273/**
274 * Renders the exception entry of a latest event into readable lines: each exception's

Callers

nothing calls this directly

Calls 3

buildTitleFunction · 0.70
buildContentHashFunction · 0.70
buildMetadataFunction · 0.70

Tested by

no test coverage detected