Update changeset.

Signed-off-by: Aramis Sennyey <sennyeya@amazon.com>
This commit is contained in:
Aramis Sennyey
2023-03-28 16:51:29 -04:00
committed by Fredrik Adelöw
parent bba158e7ed
commit 483f0cc57f
+20
View File
@@ -3,3 +3,23 @@
---
Attempt to load entity owner names in the EntityOwnerPicker through the `by-refs` endpoint. If `spec.profile.displayName` or `metadata.title` are populated, we now attempt to show those before showing the `humanizeEntityRef`'d version.
**BREAKING**: This updates the `EntityOwnerFilter` to use the full entity ref instead of the `humanizeEntityRef`. If you rely on `EntityOwnerFilter.values` or the `owners` query parameter of the catalog page, you will need to adjust your code to use
```tsx
const {queryParameters: {owners: oldEntityOwnerFilterRef}} = useEntityList();
// or
const {filter: {owners}} = useEntityList();
// Instead of,
...
if(owners.some(ref=>ref === humanizeEntityRef(myEntity))){
...
}
// You'll need to use,
...
if(owners.some(ref=>ref === stringifyEntityRef(myEntity))){
...
}
```