Skip to content

feat(ourlogs): add 'all columns' option to export modal#116192

Draft
JoshuaKGoldberg wants to merge 1 commit into
masterfrom
ourlogs-modal-export-all-columns
Draft

feat(ourlogs): add 'all columns' option to export modal#116192
JoshuaKGoldberg wants to merge 1 commit into
masterfrom
ourlogs-modal-export-all-columns

Conversation

@JoshuaKGoldberg
Copy link
Copy Markdown
Member

@JoshuaKGoldberg JoshuaKGoldberg commented May 26, 2026

Closes LOGS-711.

Selected Columns All Columns
image image

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 26, 2026

LOGS-711

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 26, 2026
@github-actions
Copy link
Copy Markdown
Contributor

📊 Type Coverage Diff

Metric Before After Delta
Coverage 93.58% 93.58% ±0%
Typed 133,220 133,226 🟢 +6
Untyped 9,144 9,145 🔴 +1
🔍 1 new type safety issue introduced

Type assertions (as) (1 new)

File Line Detail
static/app/views/explore/logs/exports/logsExportModal.tsx 133 as ExportModalFormValues['columns']value as ExportModalFormValues['columns']

This is informational only and does not block the PR.

@JoshuaKGoldberg
Copy link
Copy Markdown
Member Author

@cursor review

@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review May 26, 2026 15:28
@JoshuaKGoldberg JoshuaKGoldberg requested a review from a team as a code owner May 26, 2026 15:28
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0c8ea05. Configure here.

formatNumber(ROW_COUNT_VALUE_SYNC_LIMIT)
)}
{columnsValue === 'all'
? t('Your file will be sent to your email address.')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All columns promises email incorrectly

Medium Severity

The modal incorrectly states that files will be emailed when 'All columns' is selected. For logs, the trace_item_full_export often completes synchronously, resulting in an immediate browser download instead of an email notification.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 0c8ea05. Configure here.

if (passedSyncLimit) {
if (isAllColumns || passedSyncLimit) {
await handleDataExport({
format: value.format,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Analytics misreports exported columns

Low Severity

When exporting "All columns", the explore.table_exported analytics event still includes the original queryInfo.field (selected columns). This means analytics incorrectly reports the table's selected columns instead of reflecting a full-column export, despite the actual export request being configured for all columns.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 0c8ea05. Configure here.

queryInfo: isAllColumns ? {...payload.queryInfo, field: []} : payload.queryInfo,
queryType: isAllColumns
? ExportQueryType.TRACE_ITEM_FULL_EXPORT
: ExportQueryType.EXPLORE,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI @manessaraj - I just want to make sure I haven't messed up this data format again?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Todo: we actually do have designs for this, I'll tweak this UI to match the Figma (https://www.figma.com/design/zwH7VEk2Ff18WfFoT9J66s/%F0%9F%94%8D-Explore?node-id=2458-23335&t=JUopNRF0c8TFt6Q9-0).

@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as draft May 26, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant