Skip to content

Adjust applied suggestion reverting previous changes

What does this MR do?

  1. Avoid suggestions being applied on the same file from reverting previous changes (major bug)
  2. Gracefully use and handle Files::UpdateService::FileChangedError when updating the file by passing the latest_commit_sha to the Files::UpdateService. It does not fully solves the sync problem of multiple file update requests coming at once. This requires further discussion and will be handled in a separate MR.

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/56017

Does this MR meet the acceptance criteria?

Edited by 🤖 GitLab Bot 🤖

Merge request reports