Skip to content

Promote methods to AbstractNotification - #324

Merged
bbimber merged 1 commit into
LabKey:release26.7-SNAPSHOTfrom
bimberlabinternal:26.7_fb_mhcquery
Oct 30, 2026
Merged

bbimber merged 1 commit into
LabKey:release26.7-SNAPSHOTfrom
bimberlabinternal:26.7_fb_mhcquery

Conversation

@bbimber

@bbimber bbimber commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

This backports a simple refactor from discvr26.7 to release26.7, so it can be used by ONPRC EHR modules: LabKey/onprcEHRModules#1968.

Related to: LabKey/BimberLabKeyModules#309

long count = ts.getRowCount();
if (count > 0)
{
msg.append("<b>WARNING: There are ").append(count).append(" ").append(message).append("</b><br>\n");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Escape message? PageFlowUtil.filter(message)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a valid point, although I think the thing to do is refactor all of NotificationService to use HtmlString. That touches a lot of code. There are no user-supplied values, so the notifications should be pretty safe, but I will make a note to look into this at some point.

@bbimber
bbimber merged commit 15d7ae6 into LabKey:release26.7-SNAPSHOT Oct 30, 2026
5 of 7 checks passed
bbimber added a commit to LabKey/BimberLabKeyModules that referenced this pull request Oct 30, 2026
This backports a simple refactor from discvr26.7 to release26.7, so it
can be used by ONPRC EHR modules:
LabKey/onprcEHRModules#1968

Related to: LabKey/LabDevKitModules#324
@bbimber
bbimber deleted the 26.7_fb_mhcquery branch October 30, 2026 18:45
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.

2 participants