Merge branch 'backstage:master' into Vity01-patch-1
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-catalog-backend-module-github': patch
|
||||
---
|
||||
|
||||
Fixed a bug where the visibility filter was case sensitive and casting was inconsistent.
|
||||
@@ -107,5 +107,10 @@ export function satisfiesVisibilityFilter(
|
||||
if (!visibilities.length) {
|
||||
return true;
|
||||
}
|
||||
return visibilities.includes(visibility);
|
||||
const lowerCaseVisibilities = visibilities.map(v =>
|
||||
v.toLocaleLowerCase('en-US'),
|
||||
);
|
||||
const lowerCaseVisibility = visibility.toLocaleLowerCase('en-US');
|
||||
|
||||
return lowerCaseVisibilities.includes(lowerCaseVisibility);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user