From 8283edfc0aa677011cc9fd918c09ab293e892ef3 Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Fri, 15 Dec 2023 12:56:06 +0100 Subject: [PATCH] feat: Sort by stale (#5653) --- .../feature/FeatureToggleList/FeatureToggleListTable.tsx | 1 - src/lib/features/feature-search/feature-search-store.ts | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.tsx b/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.tsx index 0bbe91eece..186f882aab 100644 --- a/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.tsx +++ b/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.tsx @@ -219,7 +219,6 @@ const FeatureToggleListTableComponent: VFC = () => { columnHelper.accessor('stale', { header: 'State', cell: ({ getValue }) => , - enableSorting: false, }), ], [tableState.favoritesFirst], diff --git a/src/lib/features/feature-search/feature-search-store.ts b/src/lib/features/feature-search/feature-search-store.ts index df49a8660e..4b0e32fd20 100644 --- a/src/lib/features/feature-search/feature-search-store.ts +++ b/src/lib/features/feature-search/feature-search-store.ts @@ -228,6 +228,7 @@ class FeatureSearchStore implements IFeatureSearchStore { name: 'features.name', type: 'features.type', lastSeenAt: lastSeenQuery, + stale: 'features.stale', }; let rankingSql = 'order by ';