Kong / Kong/insomnia

Update Request reference in Template tags after duplication if applicable.

Open
#5,298 2 comments 1 reaction 0 assignees View on GitHub
B-bug S-verified
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](https://user-images.githubusercontent.com/44782482/196348071-77e689e3-fc12-40e0-8d8f-09082c829df8.png)
_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](https://user-images.githubusercontent.com/44782482/196347562-a6325a5c-5ef3-4695-93dc-1e748208b883.png)
_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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.