Skip to content

Conversation

dimitri-yatsenko
Copy link
Member

No description provided.

@github-actions github-actions bot added enhancement Indicates new improvements documentation Issues related to documentation labels Jul 3, 2025
@dimitri-yatsenko dimitri-yatsenko requested review from Copilot, kushalbakshi and ttngu207 and removed request for kushalbakshi July 3, 2025 21:26
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances error handling for cascade deletes when foreign key info is missing, updates logging calls for deprecation consistency, and ensures SQL parsing emits any trailing statements.

  • Add final yield in parse_sql to return residual statements.
  • Replace deprecated logger.warn with logger.warning and adjust log messages.
  • Improve cascade delete error path: detect missing foreign key info and raise a clear DataJointError.

Reviewed Changes

Copilot reviewed 3 out of 13 changed files in this pull request and generated 1 comment.

File Description
datajoint/utils.py Yield any remaining SQL statement after parsing.
datajoint/table.py Update log calls, refine cascade delete error handling, remove deprecated show_definition.
datajoint/autopopulate.py Minor documentation tweaks for step numbering and signal handler comment.

@ttngu207 ttngu207 merged commit 4fc2cca into datajoint:master Jul 24, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Issues related to documentation enhancement Indicates new improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants