13/08/2024 Data uploader unit and group mapping
patch version 1.2.0
🎉 Unit and group mapping
Units and Groups frontend
Add
Use Uploaded Locationoption to the Unit selection dropdown list onSelectUnitpageSelecting this value restricts the Group selection to
Use Uploaded GroupandUse Default GroupSelecting this also removes the option of inserting a group name
Add
Use Uploaded Groupto the group selection, this value is always available, even if a unit is selected(07/08) Selecting this also removes the option of inserting a group name
Add
Location ID,Location Name,Group ID,Group Nameto the field selector on theMatchHeaderspageIf
Use Uploaded Locationis selected in the unit field, all options will be availableIf a unit is chosen and
Use Uploaded Groupis selected in the group field, only theGroup ID,Group Namewill be availableIf neither option is chosen, these fields will not be available for mapping.
If
Use Uploaded Location/Groupis selected on unit and or group, but no headers are mapped, the mapping page will return an error.
A couple of wording changes, as requested on the linked Linear issue.
Units and Groups backend
Instead of setting a unit & group for the full data upload, these are now mapped per contact.
A new
customUnitcustomGroupanddefaultGroupsession variable is being kept to keep track of the custom options throughout the functions.A
contactSourceIDssession var array keeps track of the sources corresponding to each unitWe set these values on both load and confirmation of the
SelectUnitpage, because the load only gets called on unit change, not on group change.
An
allowedUnitsandallowedGroupsarray are being kept to validate the groups and unitsthis reduces the number of database calls for each contact
this is not kept in session to prevent any wrongful unit and group mapping if these values are altered somehow
If
Use Default Groupis selected on the group field, and the selected unit has multiple default groups, the contact will be added to all default groups.
Source ID backend
If
Use Uploaded Locationis selected in the unit field, the source id will be mapped to the correct unit on a per-contact basis from a stored source id array.Fixed a bug in the contact class that led to contacts not being saved on root units
When a single unit and source are passed in, they will now be used (after validation)
(for SOAP) when a single group and source id are passed in, they will also now be used
Singlestore Functionality fix
Retrieved data is ordered by
UploadedDataValue.UploadedDataValueIDto guarantee columns are rows are being returned consistently. The bug caused contact data to be mixed across contacts, and columns to appear unsorted. These used to change on page refreshes.
Unrelated small fix
There was a typo in the first name and surname validator that should have prevented urls to be passed in but was not functional.
👨💻 Iris
Last updated