Skip to content

data carousel: fix review feedback in data_carousel_module.py#670

Merged
mightqxc merged 2 commits intodata_carouselfrom
copilot/sub-pr-669
Mar 2, 2026
Merged

data carousel: fix review feedback in data_carousel_module.py#670
mightqxc merged 2 commits intodata_carouselfrom
copilot/sub-pr-669

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 2, 2026

Addresses five code-quality issues found during review of the DataCarouselModule extraction from misc_standalone_module.

Fixes

  • Bare f-string no-op (resubmit_data_carousel_request_JEDI): (f"already {dc_req_spec.status} ; skipped") had no effect — changed to tmp_log.debug(...).
  • Missing commit after SELECT (get_data_carousel_request_id_JEDI): Added self._commit() on both return paths to prevent idle-in-transaction connections with Postgres autocommit disabled.
  • Misleading log messages (get_data_carousel_staging_requests_JEDI): "no queued request" / "got N queued requests""no staging request" / "got N staging requests" to match the actual status=staging query.
  • Misleading log message (get_data_carousel_requests_by_task_status_JEDI): "no queued request""no request" since this method filters by arbitrary task status, not specifically queued.
  • Unused variable (resubmit_data_carousel_request_JEDI): Removed to_resubmit = False which was assigned but never read.

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: mightqxc <19180940+mightqxc@users.noreply.github.com>
Copilot AI changed the title [WIP] Modularize Data Carousel DB methods in DBProxy data carousel: fix review feedback in data_carousel_module.py Mar 2, 2026
@mightqxc mightqxc marked this pull request as ready for review March 2, 2026 10:11
@mightqxc mightqxc merged commit 33cd964 into data_carousel Mar 2, 2026
1 check passed
@mightqxc mightqxc deleted the copilot/sub-pr-669 branch March 2, 2026 10:12
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.

2 participants