Skip to content

Commit 27a2f21

Browse files
committed
Merge branch '7.8' of github.com:gchq/stroom
2 parents f81efba + 09fa868 commit 27a2f21

File tree

77 files changed

+551
-13596
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+551
-13596
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,21 @@ DO NOT ADD CHANGES HERE - ADD THEM USING log_change.sh
1313
~~~
1414

1515

16+
* Issue **#4855** : Fix Plan B session state range.
17+
18+
* Improve log message when proxy HTTP forwarding fails. Now includes the time taken and the bytes sent.
19+
20+
* Issue **#4858** : Fix Plan B query field error.
21+
22+
* Issue **#4859** : Fix query on open for embedded queries.
23+
24+
* Issue **#4861** : Allow embedded queries to have a set page size.
25+
26+
* Issue **#4748** : Add user group icon to API key page.
27+
28+
* Issue **#4806** : Add filter/group/sort indicators to hidden field menu items.
29+
30+
1631
## [v7.9-beta.8] - 2025-04-09
1732

1833
* Uplift BCrypt lib to 0.4.3.

replay_pid79302.log

Lines changed: 0 additions & 13377 deletions
This file was deleted.

stroom-analytics/stroom-analytics-impl/src/main/java/stroom/analytics/impl/AbstractScheduledQueryExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public List<UserDependency> getUserDependencies(final UserRef userRef) {
307307
return new UserDependency(userRef, details, executionSchedule.getOwningDoc());
308308
})
309309
// .filter(userDependency ->
310-
// GwtNullSafe.getOrElse(
310+
// NullSafe.getOrElse(
311311
// userDependency.getDocRef(),
312312
// docRef -> securityContext.hasDocumentPermission(docRef, DocumentPermission.VIEW),
313313
// true))

stroom-app/src/main/resources/ui/css/theme-root.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@
287287
/* Visualisations */
288288
--vis__background-color: var(--dashboard-panel__background-color);
289289
--vis-axis__color: rgba(0,0,0,0.54);
290-
--vis- GwtNullSafe: rgba(0,0,0,0.87);
290+
--vis-text__color: rgba(0,0,0,0.87);
291291
--vis-text__color--faint: rgba(0,0,0,0.12);
292292
--vis-icon__color: rgba(0,0,0,0.6);
293293
--vis-icon__color--hover: rgba(0,0,0,0.87);

stroom-core-client-widget/src/main/java/stroom/cell/info/client/HoverActionMenuCell.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ public void render(final Context context, final T value, final SafeHtmlBuilder s
163163
menuItems.get(0) instanceof final MenuItem menuItem &&
164164
menuItem.getCommand() != null) {
165165
// Single item with a command so no menu popup needed
166-
sb.append(template.divWithToolTip(NullSafe
167-
.getOrElse(menuItem.getText(), SafeHtml::asString, ""), icon));
166+
final SafeHtml tooltip = NullSafe.getOrElse(menuItem, MenuItem::getTooltip, menuItem.getText());
167+
sb.append(template.divWithTitle(tooltip.asString(), icon));
168168
} else {
169169
// Build the menu popup
170-
sb.append(template.divWithToolTip("Actions...", icon));
170+
sb.append(template.divWithTitle("Actions...", icon));
171171
}
172172

173173
sb.appendHtmlConstant("</div>");
@@ -192,6 +192,6 @@ interface Template extends SafeHtmlTemplates {
192192
SafeHtml div(String className, SafeHtml content);
193193

194194
@Template("<div title=\"{0}\">{1}</div>")
195-
SafeHtml divWithToolTip(String title, SafeHtml content);
195+
SafeHtml divWithTitle(String title, SafeHtml content);
196196
}
197197
}

stroom-core-client-widget/src/main/java/stroom/data/grid/client/HeadingBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public Header<SafeHtml> build() {
8686

8787
builder.appendHtmlConstant(">")
8888
.append(headingText);
89-
// if (GwtNullSafe.isBlankString(headingText)) {
89+
// if (NullSafe.isBlankString(headingText)) {
9090
// builder.append(SafeHtmlUtils.EMPTY_SAFE_HTML);
9191
// } else {
9292
// builder.appendEscaped(headingText);

stroom-core-client-widget/src/main/java/stroom/item/client/SelectionList.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,11 @@ public void init(final SelectionListModel<T, I> model) {
258258
refresh(false, false);
259259
}
260260

261+
public void refresh() {
262+
quickFilter.clear();
263+
refresh(true, true);
264+
}
265+
261266
public void destroy() {
262267
if (model != null) {
263268
lastFilter = null;

stroom-core-client-widget/src/main/java/stroom/item/client/SelectionPopup.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ public void init(final SelectionListModel<T, I> model) {
5151
selectionList.init(model);
5252
}
5353

54+
public void refresh() {
55+
selectionList.refresh();
56+
}
57+
5458
public MultiSelectionModel<I> getSelectionModel() {
5559
return selectionList.getSelectionModel();
5660
}

stroom-core-client-widget/src/main/java/stroom/widget/form/client/FormGroup.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public void setHelpText(final String helpText) {
155155
// // This allows us to have hard coded help in the ui.xml but override it
156156
// // using helpText, or set helpText back to null to use the hardcoded
157157
// // ui.xml content
158-
// if (GwtNullSafe.isBlankString(helpText) && helpHTML != null) {
158+
// if (NullSafe.isBlankString(helpText) && helpHTML != null) {
159159
// this.helpText = helpHTML.getHTML();
160160
// }
161161
updateHelpButton();
@@ -212,19 +212,19 @@ private void updateHelpButton() {
212212
// }
213213
updateLabelPanel();
214214

215-
// if (GwtNullSafe.isNonBlankString(plainHelpText)) {
215+
// if (NullSafe.isNonBlankString(plainHelpText)) {
216216
// haveHelpText = true;
217217
// // Escape any html in there
218218
// effectiveHelpText = SafeHtmlUtils.fromString(plainHelpText);
219219
// }
220220
//
221-
// if (GwtNullSafe.isBlankString(helpText) && helpHTML != null) {
221+
// if (NullSafe.isBlankString(helpText) && helpHTML != null) {
222222
// effectiveHelpText = SafeHtmlUtils.fromTrustedString(helpHTML.getHTML());
223223
// haveHelpText = true;
224224
// } else {
225225
//
226226
// }
227-
// if (!GwtNullSafe.isBlankString(getHelpText())) {
227+
// if (!NullSafe.isBlankString(getHelpText())) {
228228
// helpButton.setHelpContent(SafeHtmlUtils.fromSafeConstant(getHelpText()));
229229
// } else {
230230
// helpButton.setHelpContent(null);
@@ -282,7 +282,7 @@ private void addHelpHtml(final HelpHTML helpHTML) {
282282

283283
updateHelpButton();
284284
// // helpText trumps helpHTML
285-
// if (GwtNullSafe.isBlankString(helpText)) {
285+
// if (NullSafe.isBlankString(helpText)) {
286286
// this.helpText = this.helpHTML.getHTML();
287287
// }
288288
}

stroom-core-client-widget/src/main/java/stroom/widget/menu/client/presenter/IconMenuItem.java

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,22 @@ public class IconMenuItem extends MenuItem {
3131
private final SvgImage disabledIcon;
3232
private final IconColour iconColour;
3333
private final boolean highlight;
34-
public final String tooltip;
3534

3635
protected IconMenuItem(final int priority,
3736
final SvgImage enabledIcon,
3837
final SvgImage disabledIcon,
3938
final IconColour iconColour,
4039
final SafeHtml text,
40+
final SafeHtml tooltip,
4141
final Action action,
4242
final boolean enabled,
4343
final Command command,
44-
final boolean highlight,
45-
final String tooltip) {
46-
super(priority, text, action, enabled, command);
44+
final boolean highlight) {
45+
super(priority, text, tooltip, action, enabled, command);
4746
this.enabledIcon = enabledIcon;
4847
this.disabledIcon = disabledIcon;
4948
this.iconColour = iconColour;
5049
this.highlight = highlight;
51-
this.tooltip = tooltip;
5250
}
5351

5452
public SvgImage getEnabledIcon() {
@@ -67,13 +65,6 @@ public boolean isHighlight() {
6765
return highlight;
6866
}
6967

70-
public String getTooltip() {
71-
return NullSafe.string(tooltip);
72-
}
73-
74-
// --------------------------------------------------------------------------------
75-
76-
7768
protected abstract static class AbstractBuilder<T extends IconMenuItem, B extends AbstractBuilder<T, ?>>
7869
extends MenuItem.AbstractBuilder<T, B> {
7970

@@ -117,10 +108,6 @@ public B highlight(final boolean highlight) {
117108
public abstract T build();
118109
}
119110

120-
121-
// --------------------------------------------------------------------------------
122-
123-
124111
public static class Builder
125112
extends AbstractBuilder<IconMenuItem, Builder> {
126113

@@ -139,11 +126,11 @@ public IconMenuItem build() {
139126
disabledIcon,
140127
iconColour,
141128
text,
129+
tooltip,
142130
action,
143131
enabled,
144132
command,
145-
highlight,
146-
tooltip);
133+
highlight);
147134
}
148135
}
149136
}

0 commit comments

Comments
 (0)