Skip to content

Monitoring data support ("Data Tables")#967

Merged
underbluewaters merged 33 commits into
masterfrom
feature/monitoring-data
Jul 23, 2026
Merged

Monitoring data support ("Data Tables")#967
underbluewaters merged 33 commits into
masterfrom
feature/monitoring-data

Conversation

@underbluewaters

@underbluewaters underbluewaters commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

No description provided.

state = 'running',
progress_message = 'uploaded',
started_at = now(),
timeout_at = timezone('utc', now()) + interval '60 seconds'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sixty second upload timeout

High Severity

The timeout_at for data_table_upload jobs is set to 60 seconds in submit_overlay_data_table_upload. This is often too short for the actual processing, leading to background cleanup marking jobs as failed. Consequently, complete_overlay_data_table_upload cannot finalize these jobs, causing successful uploads to appear as failures without creating a new data table.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 0284327. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

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 using high effort and found 2 potential issues.

There are 3 total unresolved issues (including 1 from previous review).

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 1015a18. Configure here.


update project_background_jobs
set state = 'complete', progress = 1, progress_message = 'complete', error_message = null
where id = job_id;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Complete overwrites failed job

Medium Severity

The complete_overlay_data_table_upload function's final project_background_jobs update lacks a state check. This allows a race condition where a concurrently failed or timed-out job can be incorrectly marked complete, leading to an inconsistent state where a new data table exists but the job status is misleading.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 1015a18. Configure here.

before insert on table_of_contents_items
for each row execute function trg_copy_data_table_settings_from_draft_toc();

drop index if exists overlay_data_tables_active_name_per_toc;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Duplicate active table names

Low Severity

Migration 000430 drops the partial unique index overlay_data_tables_active_name_per_toc, which previously prevented two non-deleted data tables on the same draft layer from sharing a name. After this change, duplicate active names on one TOC item are allowed, which can break admin UI assumptions and make changelogs or pickers ambiguous.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 1015a18. Configure here.

@underbluewaters
underbluewaters merged commit b00298f into master Jul 23, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant