Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui: upgrade ember composable helper #13394

Conversation

LevelbossMike
Copy link
Contributor

@LevelbossMike LevelbossMike commented Jun 8, 2022

Description

Upgrade ember-composable-helpers to version 5.x. This version contains the pick-helper which makes composition in the template layer easier with Octane.

{{!-- this is usually hard to do with Octane --}}
<input {{on "input" (pick "target.value" this.updateText)}} .../>

Version 5.x also fixes a regression with sort-by that according to @johncowen was the reason why the version was pinned to 4.0.0 at the moment.

Version 5 of ember-composable-helpers removes the contains-helper in favor of includes which I changed all occurences for.

Testing & Reproduction steps

Tests are passing locally.

Links

Fix for slow sort-by - PR

* Fixes `sort-by` performance regression
* Includes `pick`-helper for easier composition with Octane
`contains` is removed in ember-composable-helpers@5.x
@github-actions github-actions bot added the theme/ui Anything related to the UI label Jun 8, 2022
Copy link
Contributor

@johncowen johncowen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh amazing, so excited for this to go in. There are a few helpers I've been wanting to use that are only "in later than 4" versions 🎉

I spotted a couple more references to contains in the packages/consul-* folders (nspaces, lock-sessions, partitions). If we can fix those up also and we can get this in!

Oh, did you manage to check the performance of sorting on 10s of thousands of rows to make sure its as quick as the 4.0.0 sort-by?

@LevelbossMike LevelbossMike changed the title UI/chore/upgrade ember composable helper ui: upgrade ember composable helper Jun 8, 2022
Copy link
Contributor

@johncowen johncowen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit: thanks again for doing this

@johncowen johncowen merged commit 4d36e2b into hashicorp:main Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/ui Anything related to the UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants