Skip to content

Group Address and Group Attribute fixes and enhancements#118

Open
guymaness2 wants to merge 11 commits into
masterfrom
feature/gem-BulldozerEnhancements
Open

Group Address and Group Attribute fixes and enhancements#118
guymaness2 wants to merge 11 commits into
masterfrom
feature/gem-BulldozerEnhancements

Conversation

@guymaness2

@guymaness2 guymaness2 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Description

What does the change add or fix?

Various bug fixes and enhancements to importing of group addresses, group attributes, and group attribute values.


Release Notes

What does the change add or fix in a succinct statement that will be read by clients?
  • Fixed bug with group attribute foreign key handling that resulted in group attributes and group attribute values not being properly created and connected.
  • Fixed bug allowing duplicate locations to be created during group address import with same address.
  • Added support for importing group addresses that should be tied to a group member's address.

Requested By

Who reported, requested, or paid for the change?

Warranty


Screenshots

Does this update or add options to the block UI?

no


Change Log

What files does it affect?
  • Bulldozer.CSV/Maps/Business.cs
  • Bulldozer.CSV/Maps/Group.cs‎
  • Bulldozer.CSV/Maps/Person.cs‎
  • Bulldozer.CSV/Model/BusinessAddressCsv.cs
  • Bulldozer.CSV/Model/GroupAddress.cs‎
  • Bulldozer.CSV/Model/PersonAddressCsv.cs
  • Bulldozer.CSV/CSVComponent.cs‎
  • Bulldozer/Model/AddressImport.cs‎

Migrations/External Impacts

Is it a breaking change for other versions/clients?

no

@guymaness2 guymaness2 requested a review from nateh777 July 2, 2026 15:30
Comment thread Bulldozer.CSV/CSVComponent.cs Outdated
Comment thread Bulldozer.CSV/CSVComponent.cs
Comment thread Bulldozer.CSV/CSVComponent.cs Outdated
Comment thread Bulldozer.CSV/Maps/Group.cs
Comment thread Bulldozer.CSV/Maps/Group.cs Outdated
var person = this.PersonDict.GetValueOrNull( string.Format( "{0}^{1}", this.ImportInstanceFKPrefix, groupAddressCsv.GroupMemberPersonId ) );
if ( person != null )
{
var groupMemberAddressTypeEnum = groupAddressCsv.IsValidGroupMemberAddressType ? groupAddressCsv.GroupMemberAddressTypeEnum : groupAddressCsv.AddressTypeEnum;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var groupMemberAddressTypeEnum = groupAddressCsv.IsValidGroupMemberAddressType ? groupAddressCsv.GroupMemberAddressTypeEnum : groupAddressCsv.AddressTypeEnum;
var groupMemberAddressTypeEnum = groupAddressCsv.GroupMemberAddressTypeEnum;

}
if ( missingGroupTypeLocationTypes.Count > 0 )
{
rockContext.GroupTypeLocationTypes.AddRange( missingGroupTypeLocationTypes );

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we be doing addrange/savechanges for this or a bulkinsert?

Comment on lines +97 to +98
}
public bool IsValidGroupMemberAddressType

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
public bool IsValidGroupMemberAddressType
}
public bool IsValidGroupMemberAddressType

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants