98d595118a466c5ef78850d88a2e41f06049d548 galt Wed Nov 19 14:21:02 2025 -0800 Max prefers to have one shared copy of the routine. This changes does not affect functionality, just moves the routine into the trackDb.c lib file. Feedback from Max code review. refs #28113 diff --git src/hg/lib/trackDb.c src/hg/lib/trackDb.c index ca1fbf7c9f9..a58d0ee39ed 100644 --- src/hg/lib/trackDb.c +++ src/hg/lib/trackDb.c @@ -254,17 +254,69 @@ fprintf(f, "%s", el->html); if (sep == ',') fputc('"',f); fputc(sep,f); if (sep == ',') fputc('"',f); fprintf(f, "%s", el->grp); if (sep == ',') fputc('"',f); fputc(sep,f); fprintf(f, "%u", el->canPack); fputc(sep,f); if (sep == ',') fputc('"',f); fprintf(f, "%s", el->settings); if (sep == ',') fputc('"',f); fputc(lastSep,f); } +boolean isComplexSetting(char *name) +/* Check to see if this is one of the filter variables that have arbitrary initial strings. + * This routine copied to hubCheck. */ +{ +if (startsWith("yAxisLabel.", name)) + return TRUE; +if (startsWith("filter.", name)) + return TRUE; +if (startsWith("filterValues.", name)) + return TRUE; +if (startsWith("filterValuesDefault.", name)) + return TRUE; +if (startsWith("filterType.", name)) + return TRUE; +if (startsWith("filterLimits.", name)) + return TRUE; +if (startsWith("filterLabel.", name)) + return TRUE; +if (startsWith("filterByRange.", name)) + return TRUE; +if (startsWith("filterText.", name)) + return TRUE; +if (endsWith(name, "Filter")) + return TRUE; +if (endsWith(name, "FilterValues")) + return TRUE; +if (endsWith(name, "FilterType")) + return TRUE; +if (endsWith(name, "FilterLimits")) + return TRUE; +if (endsWith(name, "FilterText")) + return TRUE; +if (startsWith("highlight.", name)) + return TRUE; +if (startsWith("highlightValues.", name)) + return TRUE; +if (startsWith("highlightValuesDefault.", name)) + return TRUE; +if (startsWith("highlightType.", name)) + return TRUE; +if (startsWith("highlightLimits.", name)) + return TRUE; +if (startsWith("highlightLabel.", name)) + return TRUE; +if (startsWith("highlightByRange.", name)) + return TRUE; +if (startsWith("highlightText.", name)) + return TRUE; +return FALSE; +} + + /* -------------------------------- End autoSql Generated Code -------------------------------- */