From e16a50599c34d8b022472018a48856935d697b57 Mon Sep 17 00:00:00 2001 From: Paladox none Date: Wed, 28 Mar 2018 14:39:53 +0000 Subject: [PATCH 01/11] Fix groups to prevent javascript errors with url If you used the singleusergroup plugin, it would create a group for the individual account. It won't include the url in the rest api as you should not be able to view this group from the ui. So when going to /admin/groups/1,members it would hide the group. I am fixing this by doing "return;" which means it won't continue to execute and get the url. As the url will throw an error as it would be undefined. Bug: Issue 8644 Change-Id: I16feae0992e4976c48cc2faa0e471a3123414a9b (cherry picked from commit dd9b6cab2b790b7ae54c70027b99ee5a9a8bd896) --- .../admin/gr-group-members/gr-group-members.html | 11 ++++++++--- .../admin/gr-group-members/gr-group-members.js | 2 ++ .../gr-group-members/gr-group-members_test.html | 15 +++++++++++++++ 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/polygerrit-ui/app/elements/admin/gr-group-members/gr-group-members.html b/polygerrit-ui/app/elements/admin/gr-group-members/gr-group-members.html index a76904e5f4..a1a5e4e493 100644 --- a/polygerrit-ui/app/elements/admin/gr-group-members/gr-group-members.html +++ b/polygerrit-ui/app/elements/admin/gr-group-members/gr-group-members.html @@ -156,10 +156,15 @@ limitations under the License.