Editing EMS default_group_types

I’m looking to add an additional group type to the 1 group type that our LWC is currently pulling from in EMS. The current customization is

$_LW->REGISTERED_APPS[‘ems’][‘custom’][‘default_group_types’]=[6]; // only support Departments

I have tried adding the additional group type Student Organization (id:1) to this but haven’t had success in getting it to work. Here is what I’ve been trying:

$_LW->REGISTERED_APPS[‘ems’][‘custom’][‘default_group_types’] = [1, 6] // Departments and Student Organizations only

Any advice on why this isn’t working? I’ve tried many similar versions

Hi Caroline,

Sorry to hear this is giving you trouble – since the EMS module is currently client-specific (in /livewhale/client/modules) we may have trouble digging too deeply into it here in the forum, but let’s see if we can shed some light here.

When the EMS module requests the group list (getGroups) from EMS, it filters by the default_group_types list. So, if you’re updating that to include a new group type, the places I’d expect to see that reflected are in the ?livewhale=ems-debug list of groups, and also in the Edit Group page when you’re associating a LWC group with an EMS group.

One useful thing to note: for performance reasons, the LWC list of EMS groups is cached for 1 hour to avoid re-processing. So, if you just made the config change, you may need to wait up to 60min for the getGroups request to re-load. Try that and see if it makes a difference? Hope this helps!

Karl

Karl, thanks for the tip on the 1hr cache. That was the issue… I’ll be more patient next time :slight_smile:

1 Like