Skip to content

fix(Duplicate): Ensure id's match the request ids in the unit tests - #8833

Merged
gatzjames merged 2 commits into
Kong:developfrom
gatzjames:feature/ins-5236-link-from-test-to-request-broken-when-importing-to-project
Jul 7, 2025
Merged

fix(Duplicate): Ensure id's match the request ids in the unit tests#8833
gatzjames merged 2 commits into
Kong:developfrom
gatzjames:feature/ins-5236-link-from-test-to-request-broken-when-importing-to-project

Conversation

@gatzjames

Copy link
Copy Markdown
Contributor

Overview

Currently when duplicating a workspace unit tests that point to a specific request end up with empty pointers since we don't map the new request ids to the new unit-tests being created.

This PR uses the same core functions that we use to import data to a new workspace that ensure the appropriate mapping is created along with other things that need to be setup.
Since we now use the same underlying functionality it also keeps the logic consistent and removes duplicate work.

@gatzjames
gatzjames requested a review from a team July 3, 2025 12:26
@gatzjames gatzjames self-assigned this Jul 3, 2025
gatzjames added 2 commits July 7, 2025 11:32
When duplicating a workspace we now use the same functionality as import/export to have consistency on matching request ids and resources needed to be created
@gatzjames
gatzjames force-pushed the feature/ins-5236-link-from-test-to-request-broken-when-importing-to-project branch from 9346273 to 057d9e5 Compare July 7, 2025 09:32
@gatzjames
gatzjames merged commit c01f8a0 into Kong:develop Jul 7, 2025
@gatzjames
gatzjames deleted the feature/ins-5236-link-from-test-to-request-broken-when-importing-to-project branch July 7, 2025 10:01
RoamingLost pushed a commit to RoamingLost/insomnia that referenced this pull request Aug 6, 2025
…ong#8833)

* fix issue of request id matching when duplicating a workspace.

When duplicating a workspace we now use the same functionality as import/export to have consistency on matching request ids and resources needed to be created

* remove unused import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants