Configure Duplicate Detection Matching Thresholds
Different organizations have different activity patterns — some run daily recurring sessions where date variance of one day is significant, while others have activities spread across weeks where a three-day window is appropriate. The Duplicate Report Prevention Service exposes configurable matching parameters: minimum date proximity (in days), duration tolerance (as a percentage), whether contact ID matching is required or optional, and whether activity type alone is sufficient for a low-confidence warning. Organization Administrators must be able to tune these per-organization through the admin portal without requiring a code deployment. Changes to thresholds take effect immediately for new submissions but do not retroactively re-evaluate historical data.
User Story
Acceptance Criteria
- Given an Organization Administrator accesses the duplicate detection configuration, when they view the settings, then current threshold values for date window, duration tolerance, and required match fields are displayed with their current values
- Given an Organization Administrator updates the date proximity threshold from 1 day to 3 days, when the change is saved, then subsequent duplicate checks use the new threshold and a confirmation message is shown
- Given the threshold configuration is saved, when a peer mentor registers a new activity, then the Duplicate Report Prevention Service applies the updated thresholds in real time
- Given an Organization Administrator sets the date window to zero (exact date match only), when a peer mentor registers an activity on a different date with the same contact and type, then no duplicate warning is raised
- Given an Organization Administrator attempts to save an invalid threshold value such as a negative date window, when the form is submitted, then validation rejects the value with a descriptive error message
Business Value
Miscalibrated duplicate detection creates operational friction: overly sensitive settings block legitimate registrations, while permissive settings allow genuine duplicates to slip through. Configurable thresholds allow Organization Administrators to balance compliance accuracy with workflow efficiency, ensuring the system serves each organization's specific needs without requiring platform engineering involvement.
Components
- Duplicate Report Prevention Service service
- Membership Repository data