Configure Duplicate Detection Sensitivity Thresholds
Different chapters have different activity patterns. A chapter running daily drop-in sessions may legitimately register multiple activities for the same peer mentor on the same day, while another chapter where each peer mentor meets each contact only once per week should flag any same-day duplicate. The coordinator should be able to configure the detection window (e.g., same day, within 4 hours, exact time overlap) and optionally exclude specific activity types from duplicate checks.
User Story
Acceptance Criteria
- Given the coordinator accesses duplicate detection settings, When they view the configuration screen, Then they can set the time-overlap threshold: 'exact time overlap', 'within same hour', 'within same day'
- Given the coordinator sets a threshold, When a new activity is submitted, Then duplicate detection uses the configured window to determine if a match exists
- Given the coordinator wishes to exclude an activity type from duplicate detection (e.g., 'group informational session'), When they toggle that type off in settings, Then submissions of that activity type bypass duplicate checks
- Given the coordinator saves a configuration change, When another coordinator in the same chapter submits an activity, Then the new threshold applies to their submission as well
- Given default settings are in place, When a new coordinator logs in for the first time, Then the default threshold is 'within same day' with all activity types included
Business Value
A one-size-fits-all duplicate detection rule will either miss real duplicates for strict operational chapters or generate so many false positives for high-frequency chapters that coordinators learn to dismiss warnings reflexively. Configurable thresholds ensure the detection system remains actionable rather than becoming noise, which is critical to sustaining coordinator trust in the tool over time.
Components
- Duplicate Detection Service service
- Duplicate Activity Detection Service service
- Duplicate Check Repository data
- Duplicate Activity Detector infrastructure