MR check: defect-services !356: feat(defect-extraction): enhance card warnings logic for missing report values and implement duplicate detection for defects created outside extraction https://trello.com/c/JlA7WyLZ
- MR defect-services!356, from
cherry-autest/feedback-defect-extractionintoautest, by Faiz, updated 2026-11-11, checked at commit7d3642e1. - Verdict: Safe. Of 50 certified dashboards: Broken 0, Affected 0, Needs review 0, Safe 50.
- Post the comment? Not needed (Safe). Post only if the team wants a comment on every MR.
- Changed: 0 migration(s), 0 model file(s), 3 code file(s) naming report data, 3 other file(s).
Drafted comment (not posted)
The comment a developer would see, between the two lines. Nothing is posted by the tool; whether comments are ever posted, and by whom, is not decided.
Report impact check: Safe. No certified Superset dashboard is affected by this MR (50 checked).
Read and cleared: 3 files that name report data (they don't change what gets stored).
Checked at 7d3642e1 against the 50 published and certified Superset dashboards (map built 2026-11-16) by the Report Impact Checker AI Tool (read-only). Questions: Lucas (BI).
Details for Lucas
Reviewed: Safe
src/defect-extraction/defect-extraction.service.ts: Defect extraction now also checks imported rows against defects already in the project (by code, uuid or title and area) and marks matches as duplicates that cannot be created, and adds missing-field warnings to the draft cards. This is validation on the import screen; existing defects are only read and the defects that do get created keep their meaning.src/defect-extraction/duplicates.ts: Pure matching helpers (title key, area compatibility, matchExistingDefect) used by the duplicate check. No database writes; area_name and area_levels are only compared.src/defect.service.ts: Adds findDuplicateCandidates, a read-only query of a project's defects by code, uuid or normalised title. Nothing is written.