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

Changed descriptions are silently overwritten #146

Open
chaoflow opened this issue May 10, 2019 · 4 comments
Open

Changed descriptions are silently overwritten #146

chaoflow opened this issue May 10, 2019 · 4 comments
Labels
bug upstream An upstream bug we have to live with wont fix This will not be worked on

Comments

@chaoflow
Copy link

If I edit a description (of an issue in GitLab) which is out-of-date
it will be silently overwritten with my version. The in-browser editor
of GitLab issues a warning in this case.

I think forge should:

  • refetch the description right before updating it
  • consider my change a patch to the original description to be applied to the now up-to-date description
  • display a version with merge headers in case of conflict to be resolved manually

While there is still room for data loss between the refetch and the update, it is a lot less likely than currently.

PS: Thank you very much for this tool! This is my first issues created using it.

@tarsius tarsius added the enhancement New feature or request label May 26, 2019
@tarsius
Copy link
Member

tarsius commented Jan 20, 2020

That's quite unfortunate indeed.

refetch the description right before updating it

While that would of course reduce the risk considerably that still wouldn't be 100% safe. This really should be implemented on the server side. (Similar to git update-ref ref new old.)

display a version with merge headers in case of conflict to be resolved manually

Maybe. But as long as the above isn't implemented we don't really need to think about this part.

@tarsius tarsius added wont fix This will not be worked on bug upstream An upstream bug we have to live with and removed enhancement New feature or request labels Dec 9, 2023
@tarsius tarsius closed this as not planned Won't fix, can't repro, duplicate, stale Dec 9, 2023
@chaoflow
Copy link
Author

chaoflow commented Jun 2, 2024

@tarsius This issue prevented me from using forge and I'd like to change that now.

I created an upstream issue to get API support from gitlab https://gitlab.com/gitlab-org/gitlab/-/issues/465150.

@chaoflow
Copy link
Author

chaoflow commented Jun 2, 2024

@tarsius Meanwhile, I'd like to add a workaround locally so that forge re-fetches the issue right before PUT and aborts and informs me, if the newly fetched description differs from the description it knows about. Any handling of the situation would be manual. An alternative to tracking the description could be the updated_at.

I understand that you don't want such functionality in mainline forge.

Do you have any hints on where and how to add this in forge?

@tarsius
Copy link
Member

tarsius commented Jun 2, 2024

I'm working on getting a release out. I'll look at this when that is done.

@tarsius tarsius reopened this Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug upstream An upstream bug we have to live with wont fix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants