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: Remove old style 'filterable' searching #9356

Merged
merged 6 commits into from
Dec 9, 2020

Conversation

johncowen
Copy link
Contributor

Our old style searching was based on an asynchronous based component (ChangeableSet) where you would pass a 'filterable/searchable' to it and it would use that filterable/searchable to perform the searching. This has now been entirely replaced with DataCollection component that follows a similar approach but can perform all types of 'Collection' type tasks on a collection/array of data - so searching, filtering and sorting.

The final things to be replaced were searching/filtering/sorting of upstream-instances and also searching/sorting of our 'ChildSelector' component which is used for selecting Roles and Policies whilst creating tokens and namespaces, which we switch out here.

There is still a tiny bit of work to go on the DataCollection component, but I started adding a README file here for it in order to document out its properties a little, and I'll probably fill it out a little more once its complete.

@johncowen johncowen added theme/ui Anything related to the UI backport/1.9 labels Dec 9, 2020
Copy link
Contributor

@kaxcode kaxcode left a comment

Choose a reason for hiding this comment

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

🔥 Very nice cleanup. LGTM

@johncowen johncowen merged commit 2c3b6ae into master Dec 9, 2020
@johncowen johncowen deleted the ui/chore/remove-filterable branch December 9, 2020 19:12
@hashicorp-ci
Copy link
Contributor

🍒 If backport labels were added before merging, cherry-picking will start automatically.

To retroactively trigger a backport after merging, add backport labels and re-run https://circleci.com/gh/hashicorp/consul/294734.

@hashicorp-ci
Copy link
Contributor

🍒✅ Cherry pick of commit 2c3b6ae onto release/1.9.x succeeded!

hashicorp-ci pushed a commit that referenced this pull request Dec 9, 2020
* Switch upstream-instances to use new style of searchable

* Add search action to DataCollection plus basic README

* Use DataCollection for PowerSelect searching in child-selectors

* Remove old style filterable search for role/policies and instances

* Remove old helpers/components related to search/sort/filter
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

3 participants