Skip to content

Renaming SQL queries from GUI and improved Layout of SQL IDE#142

Merged
ValentinHerrmann merged 12 commits intomainfrom
141-rename-sql
Feb 5, 2026
Merged

Renaming SQL queries from GUI and improved Layout of SQL IDE#142
ValentinHerrmann merged 12 commits intomainfrom
141-rename-sql

Conversation

@ValentinHerrmann
Copy link
Owner

closes #141

@github-actions
Copy link

github-actions bot commented Jan 30, 2026

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
1892 1151 61% 0% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: b4794be by action🐍

@github-actions
Copy link

Coverage report

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link

github-actions bot commented Jan 30, 2026

🧪 Test Results (Python 3.13)

174 tests   174 ✅  2s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit b4794be.

♻️ This comment has been updated with latest results.

Copy link
Contributor

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 refactors the SQL IDE UI, adds inline rename/delete for SQL files, and adjusts server-side handling for user-defined SQL functions and the DB overview. It also introduces a new success/error banner for executed SQL and tweaks the layout of the SQL editor and results.

Changes:

  • Minor cleanup in overview to standardize the cursor is None check.
  • Refactor of user_functions_execute to wrap execution in a top-level try/except and return explicit HTTP 500 responses on errors.
  • SQL IDE layout and behavior updates: responsive two-pane layout, new success status banner, inline file actions (delete/rename), and restructured client-side logic in sql_ide.js.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

File Description
tutorial/myapp/views/views.py Small readability fix in the overview view (if cursor is None:), no behavioral change.
tutorial/myapp/views/user_functions.py Wraps user_functions_execute in a broad try/except, changes error handling to 500 text responses, and slightly changes control flow around when the execution view is rendered.
tutorial/myapp/templates/sql_ide.html Reworks the SQL IDE layout into a flex-based split between file explorer and editor, adds a separate success banner, and wraps AJAX results in a styled container.
tutorial/myapp/staticfiles/js/sql_ide.js Refactors from an IIFE to top-level functions, adds inline delete/rename buttons for files, refines save/run behaviors, introduces a success/error banner for query execution, and adjusts editor height behavior when showing results.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ValentinHerrmann ValentinHerrmann marked this pull request as draft February 4, 2026 13:04
…better separation of concerns and maintainability.
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 5, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@ValentinHerrmann ValentinHerrmann merged commit ff9a053 into main Feb 5, 2026
12 of 13 checks passed
@ValentinHerrmann ValentinHerrmann deleted the 141-rename-sql branch February 5, 2026 12:27
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.

Rename SQL query files

1 participant