Skip to content

Commit 0f496cb

Browse files
[DQL] Fixing code reviews
1 parent 6d93ce6 commit 0f496cb

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- Adding predefined timeframes to the DQL execution toolbar (user can still define a custom one)
1212
- The DQL execution result will show an empty cell for a boolean column that had a `null` value (instead of the
1313
unchecked checkbox). This change helps to differentiate between `false` and `null` values.
14+
- Executed DQL queries will now be grouped by the tenant they were executed on in the Services tab
1415
- The "Show DQL query" option when executing DQL will now try to show the parsed query instead of the raw one, if
1516
possible.
1617
- Adding support for "Expression DQL" file (with `.edql` extensions), which allows to define a DQL expression without
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
package pl.thedeem.intellij.common;
22

33
import com.intellij.openapi.util.IconLoader;
4-
import pl.thedeem.intellij.dql.DQLIcon;
54

65
import javax.swing.*;
76

87
public interface Icons {
9-
Icon DYNATRACE_LOGO = IconLoader.getIcon("/icons/dynatrace.png", DQLIcon.class);
8+
Icon DYNATRACE_LOGO = IconLoader.getIcon("/icons/dynatrace.png", Icons.class);
109
}

src/main/java/pl/thedeem/intellij/dql/definition/model/QueryConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public QueryConfiguration copy() {
115115
copy.setTimeframeEnd(this.timeframeEnd);
116116
copy.setRunConfigName(this.runConfigName);
117117
copy.setOriginalFile(this.originalFile);
118-
copy.setDefinedVariables(this.definedVariables);
118+
copy.setDefinedVariables(List.copyOf(this.definedVariables));
119119
return copy;
120120
}
121121
}

src/main/java/pl/thedeem/intellij/dql/editor/actions/QueryConfigurationOptionsAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void updateCustomComponent(@NotNull JComponent component, @NotNull Presen
7171
}
7272
if (!myQueryConfigurationComponent.maxBytes().isFocusOwner()
7373
&& !Objects.equals(parseLong(myQueryConfigurationComponent.maxBytes().getText()), config.maxResultBytes())) {
74-
myQueryConfigurationComponent.maxBytes().setText(String.valueOf(config.maxResultRecords()));
74+
myQueryConfigurationComponent.maxBytes().setText(String.valueOf(config.maxResultBytes()));
7575
}
7676
if (!myQueryConfigurationComponent.maxRecords().isFocusOwner()
7777
&& !Objects.equals(parseLong(myQueryConfigurationComponent.maxRecords().getText()), config.maxResultRecords())) {

src/main/resources/messages/DQLBundle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ intention.joinFilterCommands=Join surrounding filtering commands
402402
intention.replaceAliasWithAssignExpression=Replace alias with assign expression
403403
intention.splitFilterCommands=Split filtering command
404404
services.executeDQL.serviceName={0}
405-
services.executeDQL.cancelRequested=The query "{0}" has been requested for cancellation.
405+
services.executeDQL.cancelRequested=The query with ID "{0}" has been requested for cancellation.
406406
services.executeDQL.errors.missingTenant=An invalid Dynatrace tenant "{0}" was used for the execution
407407
services.executeDQL.errors.invalidPayload=Could not create a valid request to execute the DQL query
408408
services.executeDQL.selectQuery.title=Select DQL Query To Execute

0 commit comments

Comments
 (0)