Skip to content

Implement conflict handling in APIΒ #335

@edudppaz

Description

@edudppaz

Plugin Version

0.7.1

Proposed functionality

Right now, the handling of conflicts on branches and the preventing of merge/sync is done directly via forms/views, so the API is not protected against this (a sync or merge dry-run gives no indication of any conflicts)

#3

This functionality should also be ported to the API, so, as shown on the GUI (via forms/views) if there is a conflict on the branch, it should at least give an error message as response on the job instead of just a completed with no errros.
Right now, the API does not mirror the GUI functionality when conflicts are present. This should be a fairly trivial implementation, by checking the conflicts table and bring back an error if the table has rows, just as is done on the form:

class BranchActionForm(forms.Form):

Use case

Merging or Synching branches with conflicts via RestAPI

External dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions