-
- Downloads
Adjust applied suggestion reverting previous changes
1. Avoid suggestions being applied on the same file from reverting previous changes 2. Gracefully use and handle file changes error when updating the file (though, it does not totally solves the sync problem for multiple suggestion applications at once)
Showing
- app/models/merge_request.rb 13 additions, 9 deletionsapp/models/merge_request.rb
- app/models/suggestion.rb 10 additions, 2 deletionsapp/models/suggestion.rb
- app/services/suggestions/apply_service.rb 26 additions, 8 deletionsapp/services/suggestions/apply_service.rb
- changelogs/unreleased/osw-fix-quick-suggestion-application-being-reverted.yml 5 additions, 0 deletions...d/osw-fix-quick-suggestion-application-being-reverted.yml
- spec/services/suggestions/apply_service_spec.rb 172 additions, 1 deletionspec/services/suggestions/apply_service_spec.rb
Please register or sign in to comment