backstage icon indicating copy to clipboard operation
backstage copied to clipboard

Ensure `getCompoundEntityRef` in `@backstage/catalog-model` normalizes its values to lowercase

Open dotboris opened this issue 9 months ago • 1 comments

Hey, I just made a Pull Request!

This PR changes getCompoundEntityRef so that it returns the parts of the compound ref as lowercase. This fixes an issue I've been facing in the MyGroupsSidebarItem. This component would like to /catalog/default/Group/my-group instead of /catalog/default/group/my-group (uppercase G vs lowercase g). This ends up being a problem for us because our analytics treat those two paths as different when in reality they are not.

:heavy_check_mark: Checklist

  • [x] A changeset describing the change and affected packages. (more info)
  • [ ] Added or updated documentation
  • [x] Tests for new functionality and regression tests for bug fixes
  • [ ] Screenshots attached (for UI changes)
  • [x] All your commits have a Signed-off-by line in the message. (more info)

dotboris avatar May 23 '24 19:05 dotboris