Skip to content

HCK-18803: Share isViewActivated for CREATE VIEW and alter view DDL - #109

Merged
chulanovskyi-bs merged 1 commit into
developfrom
HCK-18803
Nov 23, 2026
Merged

chulanovskyi-bs merged 1 commit into
developfrom
HCK-18803

Conversation

@AlikRakhmonov

@AlikRakhmonov AlikRakhmonov commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor
Sub-bugHCK-18803 [Multiple-RDBMS-like] Invalid processing of deactivated objects in DDL tab - leftover

## Summary - Introduce shared `isViewActivated` that checks container, view, and view columns (including source collection/schema/field) - Reuse it for CREATE VIEW commenting and alter view comment/rename/drop-create scripts so activation stays consistent

Test plan

  • Deactivate parent container → CREATE VIEW and view COMMENT statements are commented
  • Deactivate view → CREATE VIEW and view COMMENT statements are commented
  • Deactivate all view columns / source table / source fields → CREATE VIEW and view COMMENT statements are commented
  • Keep at least one active column path → statements remain uncommented
  • Custom SELECT view still activates when view/container are active

Reuse one activation check (container, view, columns and sources) when commenting CREATE VIEW and view alter/comment statements.

Co-authored-by: Cursor <cursoragent@cursor.com>
@sonarqubecloud

Copy link
Copy Markdown

@chulanovskyi-bs
chulanovskyi-bs merged commit 16b1229 into develop Nov 23, 2026
2 checks passed
@chulanovskyi-bs
chulanovskyi-bs deleted the HCK-18803 branch November 23, 2026 16:28
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