Skip to content

Commit

Permalink
HARMONY-1978: Use labels' db value attribute if present for db query
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnyinverso committed Jan 24, 2025
1 parent d73e10c commit f81f6fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions services/harmony/app/frontends/workflow-ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ function parseQuery( /* eslint-disable @typescript-eslint/no-explicit-any */
const userValues = validUserSelections.map(option => option.value.split('user: ')[1]);
const validLabelSelections = selectedOptions
.filter(option => /^label: .{1,100}$/.test(option.value));
// TODO - truncated label values should pull value from diff. field?
const labelValues = validLabelSelections.map(option => option.value.split('label: ')[1].toLowerCase());
const labelValues = validLabelSelections.map(option => option.dbValue || option.value.split('label: ')[1].toLowerCase());
const validProviderSelections = selectedOptions
.filter(option => /^provider: [A-Za-z0-9_]{1,100}$/.test(option.value));
const providerValues = validProviderSelections.map(option => option.value.split('provider: ')[1].toLowerCase());
Expand Down

0 comments on commit f81f6fd

Please sign in to comment.