Skip to content

Commit

Permalink
Merge result summary deprecation (#5119)
Browse files Browse the repository at this point in the history
* merge result summary deprecation

Step before we depreate the merge summary result.
This version will always return the summary fields and define the field
as optional. It will enable users to switch to a version which will not
break when the field is gone.

* Deprecated each field
  • Loading branch information
nopcoder authored Jan 29, 2023
1 parent 5383e2e commit 2acb5b8
Show file tree
Hide file tree
Showing 15 changed files with 143 additions and 122 deletions.
41 changes: 24 additions & 17 deletions api/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,28 +176,33 @@ components:
items:
$ref: "#/components/schemas/Repository"

MergeResultSummary:
type: object
properties:
added:
type: integer
deprecated: true
description: "Deprecated: inaccurate and will be removed."
removed:
type: integer
deprecated: true
description: "Deprecated: inaccurate and will be removed."
changed:
type: integer
deprecated: true
description: "Deprecated: inaccurate and will be removed."
conflict:
type: integer
deprecated: true
description: "Deprecated: inaccurate and will be removed."

MergeResult:
type: object
required:
- summary
- reference
properties:
summary:
type: object
required:
- added
- removed
- changed
- conflict
properties:
added:
type: integer
removed:
type: integer
changed:
type: integer
conflict:
type: integer
$ref: "#/components/schemas/MergeResultSummary"
reference:
type: string

Expand Down Expand Up @@ -2635,7 +2640,9 @@ paths:
404:
$ref: "#/components/responses/NotFound"
409:
description: conflict
description: |
Conflict
Deprecated: content schema will return Error format and not an empty MergeResult
content:
application/json:
schema:
Expand Down
52 changes: 28 additions & 24 deletions clients/java/api/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/java/docs/MergeResult.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions clients/java/docs/MergeResultSummary.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/java/docs/RefsApi.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions clients/java/src/main/java/io/lakefs/clients/api/RefsApi.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/python/docs/MergeResult.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions clients/python/docs/MergeResultSummary.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/python/docs/RefsApi.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2acb5b8

Please sign in to comment.