Skip to content

Commit

Permalink
Merge pull request #541 from folio-org/MODFQMMGR-582
Browse files Browse the repository at this point in the history
MODFQMMGR-582:Update fields that are visible by default when viewing …
  • Loading branch information
kjain110 authored Nov 22, 2024
2 parents eb1f2f4 + b9993a5 commit c829e7e
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
isIdColumn: true,
queryable: true,
visibleByDefault: true,
visibleByDefault: false,
valueGetter: ':sourceAlias.currency',
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
isIdColumn: false,
queryable: true,
visibleByDefault: true,
visibleByDefault: false,
valueGetter: ':sourceAlias.creation_date',
valueFunction: '(:value)::timestamp',
essential: true
Expand Down Expand Up @@ -212,7 +212,7 @@
},
isIdColumn: false,
queryable: true,
visibleByDefault: true,
visibleByDefault: false,
valueGetter: ":sourceAlias.jsonb->>'callNumber'",
essential: true
},
Expand Down Expand Up @@ -276,7 +276,7 @@
isIdColumn: false,
queryable: true,
essential: true,
visibleByDefault: true,
visibleByDefault: false,
valueGetter: ":sourceAlias.jsonb->>'discoverySuppress'",
filterValueGetter: "COALESCE(\
lower(:sourceAlias.jsonb->>'discoverySuppress'::text),\
Expand Down Expand Up @@ -332,7 +332,7 @@
},
idColumnName: 'statistical_code_ids',
queryable: true,
visibleByDefault: true,
visibleByDefault: false,
valueGetter: "( SELECT array_agg(statcode.statistical_code) FILTER (WHERE (statcode.statistical_code) IS NOT NULL) AS array_agg FROM jsonb_array_elements_text((:sourceAlias.jsonb -> 'statisticalCodeIds'::text)) record(value) JOIN drv_inventory_statistical_codes_full statcode ON (record.value::text) = statcode.id::text)",
filterValueGetter: "( SELECT array_agg(lower(statcode.statistical_code)) FILTER (WHERE (statcode.statistical_code) IS NOT NULL) AS array_agg FROM jsonb_array_elements_text((:sourceAlias.jsonb -> 'statisticalCodeIds'::text)) record(value) JOIN drv_inventory_statistical_codes_full statcode ON (record.value::text) = statcode.id::text)",
valueFunction: 'lower(:value)',
Expand Down Expand Up @@ -720,7 +720,7 @@
},
isIdColumn: false,
queryable: false,
visibleByDefault: true,
visibleByDefault: false,
valueGetter: "(\
SELECT\
array_agg(elems.value::text) FILTER (\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
},
isIdColumn: false,
queryable: true,
visibleByDefault: true,
visibleByDefault: false,
essential: true,
valueGetter: ":sourceAlias.creation_date",
valueFunction: '(:value)::timestamp',
Expand Down Expand Up @@ -155,7 +155,7 @@
dataType: 'stringType',
},
queryable: true,
visibleByDefault: true,
visibleByDefault: false,
essential: true,
valueGetter: ":sourceAlias.jsonb->>'name'",
filterValueGetter: "lower(${tenant_id}_mod_inventory_storage.f_unaccent(:sourceAlias.jsonb->>'name'::text))",
Expand Down Expand Up @@ -1036,7 +1036,7 @@
},
isIdColumn: false,
queryable: true,
visibleByDefault: true,
visibleByDefault: false,
valueGetter: ":sourceAlias.jsonb->>'discoverySuppress'",
filterValueGetter: "COALESCE(\
lower(:sourceAlias.jsonb->>'discoverySuppress'),\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
},
isIdColumn: false,
queryable: true,
visibleByDefault: true,
visibleByDefault: false,
valueGetter: ":sourceAlias.jsonb->>'copyNumber'",
essential: true
},
Expand Down Expand Up @@ -756,7 +756,7 @@
},
isIdColumn: false,
queryable: true,
visibleByDefault: true,
visibleByDefault: false,
essential: true,
valueGetter: ":sourceAlias.jsonb->>'itemLevelCallNumber'",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
sourceAlias: 'location',
queryable: true,
visibleByDefault: true,
visibleByDefault: false,
essential: true,
valueGetter: ":sourceAlias.jsonb ->> 'code'",
filterValueGetter: "lower(${tenant_id}_mod_inventory_storage.f_unaccent(:sourceAlias.jsonb ->> 'code'::text))",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
},
isIdColumn: false,
queryable: true,
visibleByDefault: true,
visibleByDefault: false,
essential: true,
valueGetter: ":sourceAlias.jsonb->>'code'",
source: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
isIdColumn: false,
queryable: true,
visibleByDefault: true,
visibleByDefault: false,
valueGetter: ":sourceAlias.jsonb->>'name'",
filterValueGetter: "lower(${tenant_id}_mod_inventory_storage.f_unaccent(:sourceAlias.jsonb ->> 'name'::text))",
valueFunction: 'lower(${tenant_id}_mod_inventory_storage.f_unaccent(:value))',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
isIdColumn: false,
queryable: true,
essential: true,
visibleByDefault: true,
visibleByDefault: false,
valueGetter: ":sourceAlias.jsonb -> 'metadata' ->> 'createdDate'",
filterValueGetter: "\"left\"(lower(${tenant_id}_mod_orders_storage.f_unaccent((:sourceAlias.jsonb -> 'metadata'::text) ->> 'createdDate'::text)), 600)",
valueFunction: '"left"(lower(${tenant_id}_mod_orders_storage.f_unaccent(:value)), 600)'
Expand Down Expand Up @@ -363,7 +363,7 @@
essential: true,
idColumnName: 'acq_unit_ids',
queryable: true,
visibleByDefault: true,
visibleByDefault: false,
valueGetter: "( SELECT array_agg(acq_unit.jsonb ->> 'name'::text) FILTER (WHERE (acq_unit.jsonb ->> 'name'::text) IS NOT NULL) AS array_agg FROM jsonb_array_elements_text((:sourceAlias.jsonb -> 'acqUnitIds'::text)) record(value) JOIN src_acquisitions_unit acq_unit ON lower(record.value::text) = acq_unit.id::text)",
filterValueGetter: "( SELECT array_agg(lower(acq_unit.jsonb ->> 'name'::text)) FILTER (WHERE (acq_unit.jsonb ->> 'name'::text) IS NOT NULL) AS array_agg FROM jsonb_array_elements_text((:sourceAlias.jsonb -> 'acqUnitIds'::text)) record(value) JOIN src_acquisitions_unit acq_unit ON (record.value::text) = acq_unit.id::text)",
valueFunction: 'lower(:value)',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
isIdColumn: false,
essential: true,
queryable: true,
visibleByDefault: true,
visibleByDefault: false,
valueGetter: "concat_ws(', '::text, NULLIF((:sourceAlias.jsonb -> 'personal'::text) ->> 'lastName', ''::text), NULLIF((:sourceAlias.jsonb -> 'personal'::text) ->> 'firstName', ''::text))",
},
{
Expand All @@ -139,7 +139,7 @@
},
isIdColumn: false,
queryable: true,
visibleByDefault: true,
visibleByDefault: false,
essential: true,
valueGetter: ":sourceAlias.jsonb->>'username'",
filterValueGetter: "lower(${tenant_id}_mod_users.f_unaccent(:sourceAlias.jsonb ->> 'username'::text))",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
isIdColumn: true,
queryable: true,
visibleByDefault: true,
visibleByDefault: false,
essential: true,
valueGetter: ':sourceAlias.id',
},
Expand Down

0 comments on commit c829e7e

Please sign in to comment.