Skip to content

Commit 6d4a7f8

Browse files
author
Sebastian Benjamin
committed
in set -> equals one of
1 parent aa496fd commit 6d4a7f8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

jbrowse/src/client/JBrowse/VariantSearch/components/FilterForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const FilterForm = (props: FilterFormProps ) => {
110110
updatedFilter.value = '';
111111
}
112112

113-
if (value === "in set" || filter.operator === "in set") {
113+
if (value === "equals one of" || filter.operator === "equals one of") {
114114
updatedFilter.value = '';
115115
}
116116
}
@@ -268,7 +268,7 @@ const FilterForm = (props: FilterFormProps ) => {
268268
</Select>
269269
</FormControlMinWidth>
270270

271-
{filter.operator === "in set" ? (
271+
{filter.operator === "equals one of" ? (
272272
<FormControlMinWidth sx={ highlightedInputs[index]?.value ? highlightedSx : null } >
273273
<InputLabel id="value-select-label">Value</InputLabel>
274274
<Select

jbrowse/src/client/JBrowse/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ export function serializeLocationToLuceneQuery(contig, start, end) {
330330
function generateLuceneString(field, operator, value) {
331331
let luceneQueryString = '';
332332

333-
if (field === 'variableSamples' && operator == "in set") {
333+
if (field === 'variableSamples' && operator == "equals one of") {
334334
return `variableSamples:~${value}~`;
335335
}
336336
let intValue = parseInt(value);
@@ -656,7 +656,7 @@ export function searchStringToInitialFilters(knownFieldNames: string[]) : Filter
656656

657657
export function getOperatorsForField(fieldObj: FieldModel): string[] {
658658
const stringOperators = ["equals", "does not equal", "contains", "does not contain", "starts with", "ends with", "is empty", "is not empty"];
659-
const variableSamplesType = ["in set", "variable in", "not variable in", "variable in all of", "variable in any of", "not variable in any of", "not variable in one of", "is empty", "is not empty"];
659+
const variableSamplesType = ["equals one of", "variable in", "not variable in", "variable in all of", "variable in any of", "not variable in any of", "not variable in one of", "is empty", "is not empty"];
660660
const numericOperators = ["=", "!=", ">", ">=", "<", "<="];
661661
const noneOperators = [];
662662

jbrowse/test/src/org/labkey/test/tests/external/labModules/JBrowseTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1616,7 +1616,7 @@ private void testLuceneSearchUI(String sessionId)
16161616
waitForElement(Locator.tagWithAttribute("div", "aria-labelledby", "field-label")).click();
16171617
waitForElement(Locator.tagWithText("li", "Samples With Variant")).click();
16181618
waitForElement(Locator.tagWithAttribute("div", "aria-labelledby", "operator-label")).click();
1619-
waitForElement(Locator.tagWithText("li", "in set")).click();
1619+
waitForElement(Locator.tagWithText("li", "equals one of")).click();
16201620
waitForElement(Locator.tagWithId("div", "value-select-0")).click();
16211621
waitForElement(Locator.tagWithText("li", "!TestGroup!")).click();
16221622
waitAndClick(Locator.tagWithClass("button", "filter-form-select-button"));

0 commit comments

Comments
 (0)