Create tenant / import PAGS group returns false in tests for 3 minutes (cache time)

Description

When creating a tenant (and I believe when importing a PAGS group) the version of the PAGS group that is cached has no testers. This means the PAGS groups always returns false until the PAGS group is no longer cached.

One impact of this is that when you create a tenant, you cannot log in as the tenant administrator or a tenant user for 3 minutes or you won't get the skin applied.

The issue is the entry is cached in org.jasig.portal.groups.pags.dao.EntityPersonAttributesGroupStore and that cached entry has no testers.

I believe the issue is that the data-import in import-pags-group_v4-1.crn occurs in 3 steps; creating the group, then adding the tests, then adding the group members. I think the issue is the group gets created without tests and it is cached that way. I think either

  1. Create and return the group, add the tests, perhaps also add the members (not sure if that's needed before the first persist or if it can be done after the group + testers), then persist the whole thing as one entity.

  2. At the end of the import process for a group remove that group's entry in org.jasig.portal.groups.pags.dao.EntityPersonAttributesGroupStore

Environment

None

Assignee

Unassigned

Reporter

James Wennmacher

Labels

None

Estimated End Date

None

Fix versions

Priority

Major
Configure