mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #3594] [bug]: Duplication should work correctly for non-saved requests #1237
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1237
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vekien on GitHub (Nov 25, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3594
Is there an existing issue for this?
Current behavior
If you create a request, then try duplicate it. You will get a duplication of it's last saved state instead of it's current state. this is really confusing. For example say you have:
Request: "Get from Twitter"
then you duplicate that and name it like "Post from twitter"
but you haven't saved so then you duplicate the "Post from twitter" you'll actually get the data and configuration from "Get from Twitter" because that is the last saved state.
If you make big changes to a request, then try duplicate, it will not have any of those changes until you Save then duplicate.
Steps to reproduce
Environment
Production
Version
Local
@liyasthomas commented on GitHub (Nov 25, 2023):
This is an intended behavior.
Duplicating the request from the collection level will only preserve the last saved changes, if you want to duplicate the request setup with unsaved changes you can right-click on the Tab Head and select "Duplicate Tab" as shown in the below screenshot; this will create a copy of the unsaved request in another Tab.
Hope this resolves your question, hence I'm closing this ticket.
@vekien commented on GitHub (Nov 25, 2023):
I think that is extremely bad design choose, because other clients don’t have this problem (I suppose they auto save)
this is just confusing in my opinion.