From 483f0cc57fdf6f8591247a4c70c1a19fdc8951a8 Mon Sep 17 00:00:00 2001 From: Aramis Sennyey Date: Tue, 28 Mar 2023 16:51:29 -0400 Subject: [PATCH] Update changeset. Signed-off-by: Aramis Sennyey --- .changeset/plenty-eels-listen.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.changeset/plenty-eels-listen.md b/.changeset/plenty-eels-listen.md index 6a14d8be2a..ebffd1084b 100644 --- a/.changeset/plenty-eels-listen.md +++ b/.changeset/plenty-eels-listen.md @@ -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))){ + ... +} +```