Skip to content

Commit d933c80

Browse files
committed
[Uptime] Rename Whitelist to Allowlist in parse_filter_map
Fixes #71583
1 parent 835c13d commit d933c80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugins/uptime/public/components/overview/filter_group/parse_filter_map.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface FilterField {
1414
* If your code needs to support custom fields, introduce a second parameter to
1515
* `parseFiltersMap` to take a list of FilterField objects.
1616
*/
17-
const filterWhitelist: FilterField[] = [
17+
const filterAllowList: FilterField[] = [
1818
{ name: 'ports', fieldName: 'url.port' },
1919
{ name: 'locations', fieldName: 'observer.geo.name' },
2020
{ name: 'tags', fieldName: 'tags' },
@@ -28,7 +28,7 @@ export const parseFiltersMap = (filterMapString: string) => {
2828
const filterSlices: { [key: string]: any } = {};
2929
try {
3030
const map = new Map<string, string[]>(JSON.parse(filterMapString));
31-
filterWhitelist.forEach(({ name, fieldName }) => {
31+
filterAllowList.forEach(({ name, fieldName }) => {
3232
filterSlices[name] = map.get(fieldName) ?? [];
3333
});
3434
return filterSlices;

0 commit comments

Comments
 (0)