Verified Commit fd60da16 authored by Jakob Moser's avatar Jakob Moser
Browse files

Add version field to taiga user story reference

parent 74e6f9a2
Loading
Loading
Loading
Loading
+1 −0
Changes for portal/model/TaigaUserStoryReference.py: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -4,3 +4,4 @@ from typing import TypedDict
class TaigaUserStoryReference(TypedDict):
    id: int
    status: int
    version: int
+11 −0
Changes for portal/static/docs/api/v0/openapi-spec.yaml: 11 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@ paths:
                                    taiga:
                                        id: 213
                                        status: 41
                                        version: 1
                            usual_patch:
                                value:
                                    - name: "Tagesordnung"
@@ -80,10 +81,12 @@ paths:
                                      taiga:
                                          id: 235
                                          status: 42
                                          version: 4
                                    - name: "Sommer-Coliwochenende: Veranstalten"
                                      taiga:
                                          id: 213
                                          status: 41
                                          version: 1
                                    - name: "Sonstiges"
            responses:
                "200":
@@ -215,6 +218,7 @@ components:
                    required:
                        - id
                        - status
                        - version
                    properties:
                        id:
                            description: Numerical id of the user story in Taiga
@@ -222,11 +226,15 @@ components:
                        status:
                            description: Numerical id of the status (e.g. 42 means “for next meeting”, 41 means “to do”)
                            type: integer
                        version:
                            description: Version of the user story in Taiga, for optimistic locking
                            type: integer
            example:
                name: "Sommer-Coliwochendende: Veranstalten"
                taiga:
                    id: 213
                    status: 42
                    version: 1
        ApplicationVersion:
            title: ApplicationVersion
            description: Version details about the application
@@ -319,10 +327,12 @@ components:
                  taiga:
                      id: 235
                      status: 42
                      version: 1
                - name: "Sommer-Coliwochenende: Veranstalten"
                  taiga:
                      id: 213
                      status: 42
                      version: 4
                - name: "Sonstiges"
        a_shorter_agenda:
            value:
@@ -333,6 +343,7 @@ components:
                  taiga:
                      id: 235
                      status: 42
                      version: 1
                - name: "Sonstiges"
    responses:
        UnauthorizedError: