Skip to content

Commit

Permalink
HARMONY-1978 - WIP: TODO - truncated label values should pull value f…
Browse files Browse the repository at this point in the history
…rom different field?
  • Loading branch information
vinnyinverso committed Jan 23, 2025
1 parent cbb093a commit d73e10c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/harmony/app/frontends/workflow-ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function parseQuery( /* eslint-disable @typescript-eslint/no-explicit-any */
isAdminAccess = false,
maxFilters = 30,
): { tableQuery: TableQuery, originalValues: string } {
console.log(requestQuery);
const tableQuery: TableQuery = {
sortGranules: undefined,
// tag input
Expand Down Expand Up @@ -113,6 +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 validProviderSelections = selectedOptions
.filter(option => /^provider: [A-Za-z0-9_]{1,100}$/.test(option.value));
Expand Down Expand Up @@ -145,6 +147,7 @@ function parseQuery( /* eslint-disable @typescript-eslint/no-explicit-any */
if (requestQuery.fromdatetime || requestQuery.todatetime) {
tableQuery.dateKind = requestQuery.datekind || 'createdAt';
}
console.log(tableQuery);
return { tableQuery, originalValues };
}

Expand Down

0 comments on commit d73e10c

Please sign in to comment.