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

Unfinished line or area lost when accidentally pressing save #10593

Open
Nekzuris opened this issue Dec 11, 2024 · 11 comments · May be fixed by #10118
Open

Unfinished line or area lost when accidentally pressing save #10593

Nekzuris opened this issue Dec 11, 2024 · 11 comments · May be fixed by #10118
Labels
bug A bug - let's fix this! usability An issue with ease-of-use or design

Comments

@Nekzuris
Copy link
Contributor

URL

https://www.openstreetmap.org/edit

How to reproduce the issue?

Start drawing a line but don’t finish it, then click save, the line gets deleted.

Screenshot(s) or anything else?

I understand we don’t want to save unfinished line to the OSM database, but I encountered this issue while drawing a long river;
I made a mistake on the last point and wanted to hit Ctrl + Z to undo but miss clicked Ctrl + S and lost the entire line.

Which deployed environments do you see the issue in?

Released version at openstreetmap.org/edit, Development version at ideditor.netlify.app

What version numbers does this issue effect?

2.30.4

Which browsers are you seeing this problem on?

Chrome, Firefox

@Suvendu-UI
Copy link

Suvendu-UI commented Dec 12, 2024

hey @Nekzuris can you send some pics related to this issue

@Nekzuris
Copy link
Contributor Author

Nekzuris commented Dec 12, 2024

Pics won't help to show the issue, I should make a screen recording but I thought the issue was easy enough to reproduce @Suvendu-UI

@Adarsh-Dhar
Copy link

@Nekzuris would it make sense to save every unfinished line as draft, only push the finished line into the database

@Suvendu-UI
Copy link

@Nekzuris screen recording would be nice

@Nekzuris
Copy link
Contributor Author

would it make sense to save every unfinished line as draft

@Adarsh-Dhar No sure what you mean by draft, they should just be terminated to stay on the map. Objects with no tag already prevent push.

The issue is that the line gets deleted if I accidentally press Ctrl + S instead of Ctrl + Z while drawing it.

2024-12-12.19-44-07_1.mp4

@Suvendu-UI

@k-yle
Copy link
Collaborator

k-yle commented Dec 13, 2024

Hi, this has already been fixed in #10118

@Ravish990
Copy link

Is this issue has been closed ?? If not then I would love to fix it. Will you please assign the issue?? If yes then is there any other issue that I can solve . I love to contribute to the organization.

@Nekzuris
Copy link
Contributor Author

Hi, this has already been fixed in #10118

Actually no.

@tyrasd tyrasd added bug A bug - let's fix this! usability An issue with ease-of-use or design labels Dec 17, 2024
@Darshit42
Copy link

i think the best way to fix this is to add an end point to the line and end it where the last point was , or else we can show a message that there are still unfinished lines in the map and highlight it when saved

@Nekzuris
Copy link
Contributor Author

Yeah that's also what I was thinking at first but the solution in #10118 to disable the shortcut could also work great. I don't think we need to show a message.

Are you updating your PR @k-yle ?

@Darshit42
Copy link

to disable the shortcut might be one way but i think many people are accustomed to ctrl + s , but we can also apply that too , ill try doing both of them , we can select which one's best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug - let's fix this! usability An issue with ease-of-use or design
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants