You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing Road ID validation causes duplicate entries #660
Currently, the dashboard allows users to submit new road entries without validating if the Road ID already exists. This can result in duplicate road IDs, breaking the uniqueness expected in downstream infra tagging.
Steps to Reproduce
Go to the "Add New Road" form
Enter a Road ID that already exists in the registry
Submit the form
Expected Behavior
The form should validate and alert the user if the Road ID already exists in the system before submission.
Actual Behavior
The form allows submission, and the duplicate Road ID is added, potentially causing data conflicts.
Proposed Fix
Add backend validation to check for uniqueness of Road ID
Add frontend warning or toast alert if duplicate is detected
Tech Stack
Frontend: React
Backend: Firebase or PostgreSQL
Tags
Bug, Validation, Road Registry, Infra Tracker
Additional Context
This was observed while testing the sample mock setup as per the DMP #493 mid-point milestone.
From the description, the problem seems to be missing uniqueness validation for the Road ID, which allows duplicate entries and can lead to downstream data inconsistencies.
My approach:
Add backend validation to enforce uniqueness (DB-level + API check)
Return a proper error response if a duplicate Road ID is submitted
Add frontend handling (toast/alert) to inform the user immediately
Ensure edge cases are handled (race conditions / concurrent submissions)
I’ll also test the flow end-to-end to confirm duplicates are fully prevented.
Please let me know if there are any existing constraints or preferred validation patterns to follow.
Activity
SurbhiAgarwal1 commentedon Mar 21, 2026
Hi @naiduyaswanthreddy , I’d like to work on this issue.
From the description, the problem seems to be missing uniqueness validation for the Road ID, which allows duplicate entries and can lead to downstream data inconsistencies.
My approach:
I’ll also test the flow end-to-end to confirm duplicates are fully prevented.
Please let me know if there are any existing constraints or preferred validation patterns to follow.