Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,16 @@ protected void doCandidateChecks(final Container c, User u, final StringBuilder
protected void candidatesForLongTime(final Container c, User u, final StringBuilder msg)
{
SimpleFilter filter = new SimpleFilter(FieldKey.fromString("isActive"), true, CompareType.EQUAL);
filter.addCondition(FieldKey.fromString("daysElapsed"), 30, CompareType.GTE);
filter.addCondition(FieldKey.fromString("daysElapsed"), 180, CompareType.GTE);
filter.addCondition(FieldKey.fromString("flag/category"), "Assign Alias", CompareType.EQUAL);
filter.addCondition(FieldKey.fromString("flag/value"), ONPRC_EHRManager.AUC_RESERVED, CompareType.NEQ_OR_NULL);

TableSelector ts = new TableSelector(getStudySchema(c, u).getTable("flags"), filter, null);
long count = ts.getRowCount();
if (count > 0)
{
msg.append("<b>WARNING: There are " + count + " flags for assignment aliases/candidates that have been active for more than 30 days. This may indicate these flags should be ended.</b><br>\n");
//Changed the num of days by Kollil in Aug, 2026. Refer to tkt #15129
msg.append("<b>WARNING: There are " + count + " flags for assignment aliases/candidates that have been active for more than 180 days. This may indicate these flags should be ended.</b><br>\n");
msg.append("<p><a href='" + getExecuteQueryUrl(c, "study", "flags", null) + "&" + filter.toQueryString("query") + "'>Click here to view them</a><br>\n\n");
msg.append("<hr>\n\n");
}
Expand Down