• Patrick Bajao's avatar
    Sort merge request diff files directory first · f61c6587
    Patrick Bajao authored
    Each file browser and the diffs we show under the "Changes"
    tab need to be consistent to prevent confusion.
    
    Whenever we create a merge request diff, we create and store
    `MergeRequestDiffFile` records and we keep the `relative_order`
    of each file.
    
    In order for the new sorting order to persist, we will sort the
    diff files on:
    
    - when a `MergeRequestDiff` is created
    - when we load merge request diffs
    
    Then we persist/update the `relative_order` of each file.
    f61c6587
26552-sort-diff-files.yml 100 Bytes