* 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)
| 258 | * latest-event content is deferred to getDocument and only fetched for new/changed issues. |
| 259 | */ |
| 260 | function 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 |
nothing calls this directly
no test coverage detected