grouper-users - RE: [grouper-users] Saving Group ID for new groups (UI) when auto-filled with a different value than the Group name
Subject: Grouper Users - Open Discussion List
List archive
RE: [grouper-users] Saving Group ID for new groups (UI) when auto-filled with a different value than the Group name
Chronological Thread
- From: "Hyzer, Chris" <>
- To: Kumi Hagimoto <>, "" <>
- Subject: RE: [grouper-users] Saving Group ID for new groups (UI) when auto-filled with a different value than the Group name
- Date: Tue, 14 Mar 2017 21:58:20 +0000
- Accept-language: en-US
- Authentication-results: oregonstate.edu; dkim=none (message not signed) header.d=none;oregonstate.edu; dmarc=none action=none header.from=isc.upenn.edu;
- Ironport-phdr: 9a23:6r8d0Bbr8rtReRa6mNUBMKL/LSx+4OfEezUN459isYplN5qZrsi/bnLW6fgltlLVR4KTs6sC0LuL9f2/EjRfqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjSwbLdyIRmsrQjctMYajZdgJ60s1hbHv3xEdvhMy2h1P1yThRH85smx/J5n7Stdvu8q+tBDX6vnYak2VKRUAzs6PW874s3rrgTDQhCU5nQASGUWkwFHDBbD4RrnQ5r+qCr6tu562CmHIc37SK0/VDq+46t3ThLjlTwKPCAl/m7JlsNwjbpboBO/qBx5347Ue5yeOP5ncq/AYd8WWW9NU8BMXCJDH4y8dZMCAeofM+hFs4nzqVgArRW8CgmtGOzhxTBHi2Tq3a0jz+gtDR3K0BA+E98IrX/arM/1NKAXUe2twqXGzzXCbvJI1jfn8ITDbw4sofGWXbJxasrdx1QkGgTAjlqMqYzkPzKU2foXs2WA7upgTv6gh3Q6qwFpvDevwMEshpPXiY0I11DJ7CN0y5s2K92gUEN3f8OoHZpKuyyUKYd6WN4uTmJ0tCog1LEKpYa3cDUExZg73RLSb+GLf5KW7h7+UOudOyp0iXBkdb+5mh2861KvyvfmWcmxyFtKrjRKkt3Ltn0VzxLe9s+JRudj8ku4xDiBzx3f5vhDIU8vi6XXMZkhwqMslpUItkTDAyn2l1jsgK+ObEUk/fSo5Pr7bbX6p5+cMIl0hhv5MqQzhsy/BeM4Mg8NX2SB5eu807jj8VX4QLVMkPI2jrHUvI7HKckavKK0DRFZ3pw+5xu8EzuqysoUkWUfIFJAYh2HjozpO1/UIPD/CPeym1Gsnytrx/HGP7zuHI/NI2PCkLf6Yblx8VNcyBItwtBZ4ZJYEK8OL+/uWkPprtzXEgc5MxCow+bgENh92ZkeWWWSAq+BLqzSq0aE5v80I+aSfo8Voy3wK/wk5/71kX85gkERcbOo3ZsRdHC3AO5mI0OHbnrwnNsNC3kFsRcjTL+itFrXciNWZj6SVq094zYnD8ryDprGR8atibOA2SCnGbVRfG1JDVaXDX70esOJV+paLGrYLdVmjyQJT/28UII7zjmvshP30bxqMrCS9yEF/9q328Jy+vXej1Qv7jFuFOyc1X2AVWd5gjlOSjMrivNRu0t4nx2jwLp1mbgQPtxJ5ugDGlM/Pp7N3eFgI9HpUUTcZtqPThCrTsjwUmJ5dc4439JbOxU1IN6llB2WmnPyW7I=
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
I guess so. Especially if you submit your enhancement as a pull request
(i.e. have a config option to enable what you do, but default to what Grouper
used to do.)
Think it might be possible?
Thanks
Chris
-----Original Message-----
From:
[mailto:]
On Behalf Of Kumi Hagimoto
Sent: Tuesday, March 14, 2017 5:53 PM
To:
Subject: [grouper-users] Saving Group ID for new groups (UI) when auto-filled
with a different value than the Group name
Hi,
I noticed that the method UiV2Group.newGroupSubmit(..) only gets Group ID
(extension) from request if "Edit the ID" was checked. Otherwise, it's set
to the Group name (displayExtension). I was testing with an update to the js
(function syncNameAndId in grouperExternal/public/assets/js/grouperUi.js) so
that the Group ID field is auto-filled when Group name is being entered but
with some characters removed and spaces converted to hyphen via regex. Since
this is auto-filled, "Edit the ID" is never checked and Group ID is set back
to Group name when saved. (I do also use the validator regex in
grouper.properties, just in case user edited the auto-filled ID and added
invalid chars back in. So in some cases, I never get to save, if there was a
character in Group name that did not satisfy the regex rule.) I've gotten
around this by adding $('#nameDifferentThanIdId').prop('checked',true); before
the ajax call in "onclick" in the grouperUi2/group/newGroup.jsp -- but is
there any chance the method UiV2Group.newGroupSubmit(..) could be updated to
always get group ID value from request?
Thanks,
Kumi
- [grouper-users] Saving Group ID for new groups (UI) when auto-filled with a different value than the Group name, Kumi Hagimoto, 03/14/2017
- RE: [grouper-users] Saving Group ID for new groups (UI) when auto-filled with a different value than the Group name, Hyzer, Chris, 03/14/2017
Archive powered by MHonArc 2.6.19.