MEDIUM story-multi-org-membership-handling-organization-administrator-006 5 pts

User Story

As a Organization Administrator
I want to configure the sensitivity thresholds for the duplicate detection algorithm — including the acceptable date window, duration variance, and which fields are required to match — through the admin settings panel
So that So that the duplicate detection system is appropriately calibrated for my organization's specific activity patterns, avoiding both false positives that block legitimate registrations and false negatives that allow genuine duplicates through

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.