Update Request reference in Template tags after duplication if applicable.
- Dominant language
- TypeScript
- Stars
- 40k
- Forks
- 2.4k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 61
Description
### Expected Behavior
Template tag's request of 'Request1' In 'Folder1_copy' references to 'Request2' of 'Folder1_copy'

_Image of tag in 'Request1' of 'Folder1_copy'._ (Expected Behavior after manual fix)
### Actual Behavior
Template tag's request of 'Request1' In 'Folder1_copy' references to 'Request2' of 'Folder1'

_Image of tag in 'Request1' of 'Folder1_copy'._ (Actual Behavior)
### Reproduction Steps
Preconditions:
To have 2 requests under Folder1: Request1, Request2
In Request1 using Template tag referencing Request2
Steps to reproduce:
1. Duplicate Folder1 (lets name it 'Folder1_copy')
### Is there an existing issue for this?
- [X] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for this problem.
### Additional Information
_No response_
### Insomnia Version
2022.6.0
### What operating system are you using?
Windows
### Operating System Version
Windows 10 Pro 20H2
### Installation method
download from insomnia.rest
### Last Known Working Insomnia version
_No response_
Contributor guide
Research direction
Reproduce the issue in Insomnia by creating two requests under a folder, adding a template tag from Request1 to Request2, and duplicating the folder. Trace the folder-duplication and template-tag reference handling entry points; done means the duplicated Request1 points to Request2 in the duplicated folder, with coverage for this reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100