[DQL] Introducing the Query Console view#121
Conversation
There was a problem hiding this comment.
Pull request overview
Introduces a new “Dynatrace Query Console” in the Services tool window to execute DQL without creating a .dql file.
Changes:
- Adds a new Services action and UI panel backed by a virtual file to host the query console editor.
- Adds tenant-group toolbar actions to open a console preselected to a tenant and to close all executions for that tenant.
- Improves execution naming by allowing a preferred execution name to flow through the execution actions.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/main/resources/messages/DQLBundle.properties | Adds i18n strings for the Query Console action and tenant-group toolbar actions. |
| src/main/resources/META-INF/plugin.xml | Registers the Query Console action in Tools → Services and ServiceView “Add Service”. |
| src/main/java/pl/thedeem/intellij/dql/services/ui/TenantServiceGroup.java | Adds Service Group toolbar actions (open console with tenant, close all executions). |
| src/main/java/pl/thedeem/intellij/dql/fileProviders/DQLQueryConsoleVirtualFile.java | Introduces a virtual file type to host the Query Console UI component. |
| src/main/java/pl/thedeem/intellij/dql/exec/panel/DQLQueryConsolePanel.java | Adds the Query Console UI (editor + toolbar + data context provisioning). |
| src/main/java/pl/thedeem/intellij/dql/exec/DQLExecutionService.java | Avoids creating a tenant group when no tenant is configured. |
| src/main/java/pl/thedeem/intellij/dql/editor/actions/StartStopDQLExecutionAction.java | Uses the preferred execution name when available. |
| src/main/java/pl/thedeem/intellij/dql/editor/actions/QueryConfigurationOptionsAction.java | Avoids executing actions when the component is no longer showing. |
| src/main/java/pl/thedeem/intellij/dql/editor/actions/QueryConfigurationAction.java | Fixes update() flow by returning early for context menu usage. |
| src/main/java/pl/thedeem/intellij/dql/actions/OpenDQLQueryConsoleAction.java | Adds an action to open new Query Consoles in the editor area. |
| src/main/java/pl/thedeem/intellij/dql/actions/ExecuteDQLQueryAction.java | Introduces a DataKey to pass a preferred execution name to execution actions. |
| docs/wiki/DQL.md | Documents how to open and use the new Query Console. |
| CHANGELOG.md | Announces the new Query Console feature in the changelog. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/main/java/pl/thedeem/intellij/dql/services/ui/TenantServiceGroup.java
Outdated
Show resolved
Hide resolved
src/main/java/pl/thedeem/intellij/dql/services/ui/TenantServiceGroup.java
Show resolved
Hide resolved
src/main/java/pl/thedeem/intellij/dql/exec/panel/DQLQueryConsolePanel.java
Show resolved
Hide resolved
src/main/java/pl/thedeem/intellij/dql/actions/ExecuteDQLQueryAction.java
Outdated
Show resolved
Hide resolved
…ction.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Qodana for JVMIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked View the detailed Qodana reportTo be able to view the detailed Qodana report, you can either:
To get - name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2025.3.1
with:
upload-result: trueContact Qodana teamContact us at qodana-support@jetbrains.com
|
|
An error needs to be fixed: |
Uh oh!
There was an error while loading. Please reload this page.