summaryrefslogtreecommitdiff
path: root/app/services/suggestions
Commit message (Collapse)AuthorAgeFilesLines
* Prepare suggestion implementation for multi-lineOswaldo Ferreira2019-03-273-39/+30
| | | | | | Adds the groundwork needed in order to persist multi-line suggestions, while providing the parsing strategy which will be reused for the **Preview** as well.
* Always fetch MR latest version when creating suggestionsOswaldo Ferreira2019-02-262-6/+16
| | | | | | | | This is an issue that can only be seen through EE. Further details can be seen on https://gitlab.com/gitlab-org/gitlab-ee/issues/9876. In general we should always use the latest diff version of a file in order to both create and apply suggestions.
* Adjusts suggestions unable to be appliedOswaldo Ferreira2019-01-251-7/+8
| | | | | | | | | | 1. Presents the system error message when available, when applying suggestions 2. Adjusts target branch updates affecting MRs pointing to it when there are previously created suggestions in the MR. We just need to compare the HEAD shas from position and MR source branch.
* Adjust applied suggestion reverting previous changesOswaldo Ferreira2019-01-111-8/+26
| | | | | | | | | 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)
* Allow suggesting single line changes in diffsOswaldo Ferreira2018-12-132-0/+110