x-atlas-consortia / data-ingest-board

The UI App for HuBMAP and Sennet Data Publishing Dashboard
MIT License
1 stars 0 forks source link

Libpitt/218 group organs #219

Closed libpitt closed 2 months ago

libpitt commented 2 months ago

Change log:

  1. Add methods getHierarchy,makeHierarchyFilters for determining parent category and respective filters
  2. Use filteredValue prop instead to keep filter selected
  3. Renamed defaultFilteredValue and defaultSortOrder to urlParamFilters and urlSortOrder respectively avoid confusion and to indicate source of filtering and order data
  4. Update example envs so that field index names found therein will be handled during definition of urlParamFilters
  5. Remove deprecated react defaultProps

Please update to: SN: NEXT_PUBLIC_DEFAULT_FILTER_FIELDS = '["group_name", "status", "organ", "dataset_type", "source_type", "has_rui_info", "assigned_to_group_name"]' HM: NEXT_PUBLIC_DEFAULT_FILTER_FIELDS = '["group_name", "status", "organ", "dataset_type", "has_rui_info", "assigned_to_group_name"]'

maxsibilla commented 2 months ago

@libpitt If you filter by "Lung" or "Blood" by itself you get results but when you filter by multiple organs where there is a hierarchy it breaks the table:

image
libpitt commented 2 months ago

Thanks much @maxsibilla. It should be fine now.

Screen Shot 2024-08-21 at 3 47 41 PM