Skip to content

Commit

Permalink
Enable cache invalidation for administrations, bases and control unit…
Browse files Browse the repository at this point in the history
…s query search
  • Loading branch information
ivangabriele committed Oct 30, 2023
1 parent abbd69f commit fe4009e
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
10 changes: 5 additions & 5 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"test:unit:watch": "npm run test:unit -- --watch"
},
"dependencies": {
"@mtes-mct/monitor-ui": "10.6.0",
"@mtes-mct/monitor-ui": "10.9.3",
"@reduxjs/toolkit": "1.9.5",
"@rsuite/responsive-nav": "5.0.1",
"@sentry/browser": "7.73.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ export function getFilters(
): Filter<Administration.Administration>[] {
const customSearch = new CustomSearch(data, ['name'], {
cacheKey: 'BACK_OFFICE_ADMINISTRATION_LIST',
isStrict: true
isStrict: true,
withCacheInvalidation: true
})
const filters: Array<Filter<Administration.Administration>> = []

Expand Down
3 changes: 2 additions & 1 deletion frontend/src/features/Base/components/BaseTable/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export function getBaseTableColumns(
export function getFilters(data: Base.Base[], filtersState: FiltersState): Filter<Base.Base>[] {
const customSearch = new CustomSearch(data, ['name'], {
cacheKey: 'BACK_OFFICE_BASE_LIST',
isStrict: true
isStrict: true,
withCacheInvalidation: true
})
const filters: Array<Filter<Base.Base>> = []

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export function getFilters(
],
{
cacheKey: 'MAP_CONTROL_UNIT_LIST',
isStrict: true
isStrict: true,
withCacheInvalidation: true
}
)
const filters: Array<Filter<ControlUnit.ControlUnit>> = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ export function getFilters(
): Filter<ControlUnit.ControlUnit>[] {
const customSearch = new CustomSearch(data, ['administration.name', 'name'], {
cacheKey: 'BACK_OFFICE_CONTROL_UNIT_LIST',
isStrict: true
isStrict: true,
withCacheInvalidation: true
})
const filters: Array<Filter<ControlUnit.ControlUnit>> = []

Expand Down

0 comments on commit fe4009e

Please sign in to comment.