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

Tidy up data tab #1034

Merged
merged 5 commits into from
Sep 22, 2019
Merged

Tidy up data tab #1034

merged 5 commits into from
Sep 22, 2019

Conversation

nummi
Copy link
Collaborator

@nummi nummi commented Sep 22, 2019

No description provided.

@@ -1,8 +0,0 @@
import { computed } from '@ember/object';
import Component from '@ember/component';
export default Component.extend({
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Member

@RobbieTheWagner RobbieTheWagner left a comment

Choose a reason for hiding this comment

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

This looks awesome! Just a couple super minor requests, but overall looks very good! 👍

@@ -0,0 +1,8 @@
import { isEmpty } from '@ember/utils';
Copy link
Member

Choose a reason for hiding this comment

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

ember-truth-helpers already has an is-empty helper. Can we use that one instead?

return true;
filteredRecords: computed('searchValue', 'model.@each.{columnValues,filterValues}', 'filterValue', function() {
return this.model.filter((record) => {
return this.passesFilter(record) && this.passesSearch(record);
Copy link
Member

Choose a reason for hiding this comment

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

The logic for passesFilter and passesSearch seems fairly simple. Would you be okay with not pulling out into separate functions and leaving inside the computed?

@RobbieTheWagner RobbieTheWagner merged commit 86c7124 into emberjs:master Sep 22, 2019
patricklx pushed a commit to patricklx/ember-inspector that referenced this pull request Sep 19, 2022
* Add is-empty helper

* explicit this for data tab

* Remove record-filter component

* Tidy up Records controller

* Revert some changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants