File tree 3 files changed +34
-3
lines changed
stroom-core-shared/src/main/java/stroom/dashboard/shared
3 files changed +34
-3
lines changed Original file line number Diff line number Diff line change 27
27
import com .fasterxml .jackson .annotation .JsonProperty ;
28
28
import com .fasterxml .jackson .annotation .JsonPropertyOrder ;
29
29
30
+ import java .util .ArrayList ;
30
31
import java .util .List ;
31
32
import java .util .Objects ;
32
33
@@ -142,8 +143,12 @@ private Builder(final EmbeddedQueryComponentSettings settings) {
142
143
super (settings );
143
144
this .queryRef = settings .queryRef ;
144
145
this .showTable = settings .showTable ;
145
- this .queryTablePreferences = settings .queryTablePreferences ;
146
- this .selectionFilter = settings .selectionFilter ;
146
+ this .queryTablePreferences = settings .queryTablePreferences == null
147
+ ? null
148
+ : settings .queryTablePreferences .copy ().build ();
149
+ this .selectionFilter = settings .selectionFilter == null
150
+ ? null
151
+ : new ArrayList <>(settings .selectionFilter );
147
152
}
148
153
149
154
public Builder queryRef (final DocRef queryRef ) {
Original file line number Diff line number Diff line change @@ -343,7 +343,9 @@ private Builder(final TableComponentSettings tableSettings) {
343
343
: new ArrayList <>(tableSettings .conditionalFormattingRules );
344
344
this .modelVersion = tableSettings .modelVersion ;
345
345
this .applyValueFilters = tableSettings .applyValueFilters ;
346
- this .selectionFilter = tableSettings .selectionHandlers ;
346
+ this .selectionFilter = tableSettings .selectionHandlers == null
347
+ ? null
348
+ : new ArrayList <>(tableSettings .selectionHandlers );
347
349
}
348
350
349
351
private List <ConditionalFormattingRule > copyConditionalFormattingRules (
Original file line number Diff line number Diff line change
1
+ * Issue ** #4788 ** : Deep copy selection handlers when duplicating dashboard tables.
2
+
3
+
4
+ ``` sh
5
+ # ********************************************************************************
6
+ # Issue title: Selection Handlers are not deep copied when a table is duplicated
7
+ # Issue link: https://github.com/gchq/stroom/issues/4788
8
+ # ********************************************************************************
9
+
10
+ # ONLY the top line will be included as a change entry in the CHANGELOG.
11
+ # The entry should be in GitHub flavour markdown and should be written on a SINGLE
12
+ # line with no hard breaks. You can have multiple change files for a single GitHub issue.
13
+ # The entry should be written in the imperative mood, i.e. 'Fix nasty bug' rather than
14
+ # 'Fixed nasty bug'.
15
+ #
16
+ # Examples of acceptable entries are:
17
+ #
18
+ #
19
+ # * Issue **123** : Fix bug with an associated GitHub issue in this repository
20
+ #
21
+ # * Issue **namespace/other-repo#456** : Fix bug with an associated GitHub issue in another repository
22
+ #
23
+ # * Fix bug with no associated GitHub issue.
24
+ ```
You can’t perform that action at this time.
0 commit comments