aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmclaugh...@apache.org
Subject aurora git commit: Revert role searching in UI to old behavior
Date Fri, 27 Oct 2017 20:07:37 GMT
Repository: aurora
Updated Branches:
  refs/heads/master 5a26c8b4b -> 35e29b8e7


Revert role searching in UI to old behavior

Move from prefix search to full-text matching.

Reviewed at https://reviews.apache.org/r/63364/


Project: http://git-wip-us.apache.org/repos/asf/aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/aurora/commit/35e29b8e
Tree: http://git-wip-us.apache.org/repos/asf/aurora/tree/35e29b8e
Diff: http://git-wip-us.apache.org/repos/asf/aurora/diff/35e29b8e

Branch: refs/heads/master
Commit: 35e29b8e77faab66ad34336a49e54f495e967250
Parents: 5a26c8b
Author: David McLaughlin <david@dmclaughlin.com>
Authored: Fri Oct 27 13:03:38 2017 -0700
Committer: David McLaughlin <david@dmclaughlin.com>
Committed: Fri Oct 27 13:03:38 2017 -0700

----------------------------------------------------------------------
 ui/src/main/js/components/RoleList.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora/blob/35e29b8e/ui/src/main/js/components/RoleList.js
----------------------------------------------------------------------
diff --git a/ui/src/main/js/components/RoleList.js b/ui/src/main/js/components/RoleList.js
index 2bdae8e..9d01822 100644
--- a/ui/src/main/js/components/RoleList.js
+++ b/ui/src/main/js/components/RoleList.js
@@ -52,7 +52,7 @@ export default class RoleList extends React.Component {
         </thead>
         <Pagination
           data={this.props.roles}
-          filter={(r) => (this.state.filter) ? r.role.startsWith(this.state.filter) :
true}
+          filter={(r) => (this.state.filter) ? r.role.includes(this.state.filter) : true}
           hideIfSinglePage
           isTable
           numberPerPage={25}


Mime
View raw message