Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove temporary fix for GRP-4024
credman committed Aug 22, 2022
1 parent 586a8b6 commit 5718429
Showing 3 changed files with 1 addition and 21 deletions.
2 changes: 1 addition & 1 deletion TODO.md
@@ -7,7 +7,7 @@ TODO

202205
-------
- Once upgrading to 2.6.9, can remove gsh code marked "Temporary fix for GRP-4024" from bootstrap.gsh files
- (DONE) Once upgrading to 2.6.9, can remove gsh code marked "Temporary fix for GRP-4024" from bootstrap.gsh files
- Bug in 2.6.8, attr_read isn't enough to see attributes; need admin privileges on the object to see the option in the menu
- Somehow add docker-compose to the vms so we don't have to download it

9 changes: 0 additions & 9 deletions ex201/ex201.end/container_files/seed-data/bootstrap.gsh
@@ -21,9 +21,6 @@ java.util.Date RECENT_GRAD_END_DATE = cal.time
/***** END Defaults that may need to be changed for each class *****/


/***** Temporary fix for GRP-4024 *****/
import edu.internet2.middleware.grouper.cfg.text.GrouperTextContainer

/***** Start of script *****/
GrouperSession gs = GrouperSession.start(SubjectFinder.findByIdentifierAndSource("banderson", "eduLDAP", true))

@@ -72,9 +69,6 @@ class HelperMethods {
templateLogic.stemId = parentStem.uuid
templateLogic.stemTemplateContainer = stemTemplateContainer

/***** Temporary fix for GRP-4024 *****/
GrouperTextContainer.assignThreadLocalVariable("groupStemTemplateContainer", stemTemplateContainer)

List<ServiceAction> selectedServiceActions = []
if (myServiceActionIds == null || myServiceActionIds.isEmpty()) {
selectedServiceActions = templateLogic.getServiceActions()
@@ -104,9 +98,6 @@ class HelperMethods {
policyTemplateLogic.stemId = parentStem.uuid
policyTemplateLogic.stemTemplateContainer = policyStemTemplateContainer

/***** Temporary fix for GRP-4024 *****/
GrouperTextContainer.assignThreadLocalVariable("groupStemTemplateContainer", policyStemTemplateContainer)

// simulate checking certain boxes in the ui
List<ServiceAction> selectedServiceActions = []
if (myServiceActionIds == null || myServiceActionIds.isEmpty()) {
11 changes: 0 additions & 11 deletions ex401/ex401.end/container_files/seed-data/bootstrap.gsh
@@ -13,11 +13,6 @@ import java.text.SimpleDateFormat;

GrouperSession gs = GrouperSession.start(SubjectFinder.findByIdentifierAndSource("banderson", "eduLDAP", true))


/***** Temporary fix for GRP-4024 *****/
import edu.internet2.middleware.grouper.cfg.text.GrouperTextContainer


/* Creating a class for methods helps with gsh from the command line, which can't do functions called from other functions */
class HelperMethods {
static void assignObjectTypeForGroup(Group g, String type, String owner=null, String description=null) {
@@ -63,9 +58,6 @@ class HelperMethods {
templateLogic.stemId = parentStem.uuid
templateLogic.stemTemplateContainer = stemTemplateContainer

/***** Temporary fix for GRP-4024 *****/
GrouperTextContainer.assignThreadLocalVariable("groupStemTemplateContainer", stemTemplateContainer)

List<ServiceAction> selectedServiceActions = []
if (myServiceActionIds == null || myServiceActionIds.isEmpty()) {
selectedServiceActions = templateLogic.getServiceActions()
@@ -95,9 +87,6 @@ class HelperMethods {
policyTemplateLogic.stemId = parentStem.uuid
policyTemplateLogic.stemTemplateContainer = policyStemTemplateContainer

/***** Temporary fix for GRP-4024 *****/
GrouperTextContainer.assignThreadLocalVariable("groupStemTemplateContainer", policyStemTemplateContainer)

// simulate checking certain boxes in the ui
List<ServiceAction> selectedServiceActions = []
if (myServiceActionIds == null || myServiceActionIds.isEmpty()) {

0 comments on commit 5718429

Please sign in to comment.