Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1300 : Handling request name conflicts while importing postman V2 collections #1298

Merged
merged 1 commit into from
Sep 15, 2024

Conversation

aniltallam
Copy link
Contributor

@aniltallam aniltallam commented Dec 29, 2023

Description

Issue:

Fix for #1300
In Postman, multiple requests in same folder can have same name. Current importer code is creating bruneRequestItems with same name and bruno doesn't allow multiple requests with same name in a given folder. Which is causing only one of the original requests to be actually created and other requests with the same name are missing in imported collection in bruno.

Fix:

Appending "_<duplicate_count>" to conflicting request names within same folder.

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Issue: In Postman, multiple requests in same folder can have same name. current import code is creating bruneRequestItems with same name which is causing only one of the original requests to be actaully created. 
Looks like bruno doesn't allow multiple requests with same name in a given folder.

Fix:
Append _<duplicate_count> to conflicting request names within same folder.
@aniltallam aniltallam changed the title Handling request name conflicts while importing postman V2 collections #1300 : Handling request name conflicts while importing postman V2 collections Dec 29, 2023
@aniltallam aniltallam changed the title #1300 : Handling request name conflicts while importing postman V2 collections Fix #1300 : Handling request name conflicts while importing postman V2 collections Dec 29, 2023
@helloanoop helloanoop merged commit 0d3fde5 into usebruno:main Sep 15, 2024
Its-treason pushed a commit to Its-treason/bruno that referenced this pull request Sep 15, 2024
usebruno#1298)

Issue: In Postman, multiple requests in same folder can have same name. current import code is creating bruneRequestItems with same name which is causing only one of the original requests to be actaully created.
Looks like bruno doesn't allow multiple requests with same name in a given folder.

Fix:
Append _<duplicate_count> to conflicting request names within same folder.
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.

3 participants