Feat/testcase duplication prevention#4277
Open
veenone wants to merge 2 commits intokiwitcms:masterfrom
Open
Conversation
- Debounced autocomplete dropdown on summary input showing existing test cases matching the typed text (case-insensitive, via summary__icontains), with clickable items that open a detail modal - Block form submission when an exact case-insensitive duplicate exists (synchronous summary__iexact check on submit) - Modal displays full test case details (summary, status, category, priority, author) with markdown-rendered description - "View existing test case" button in modal header links to the duplicate TC detail page - Inline warning below summary field when exact match is detected - Only active on the New Test Case page (not Edit)
Extract shared initDuplicateCheck() utility into utils.js and reusable modal template to avoid code duplication across modules. Refactor test case mutable.js to use the shared utility. Add duplicate name/summary check with autocomplete dropdown and blocking modal to new test run and new test plan creation pages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is implementing additional checking on entry creation for :
the PR implements #4111 , where current TCMS behavior allows testcase, testplan & testrun summary duplication.
this leads to confusion on them if multiple duplication exists in the entries.
this PR will provide the solution that can prevents duplicated entries to be created.
Screenshots
As the user type the entry, any duplicate entries will be displayed in the dropdown box to ensure user not to use them
The existing entry will be displayed if selected