-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge result summary deprecation #5119
Conversation
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.
No linked issues found. Please add the corresponding issues in the pull request description. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
I prefer to deprecate the fields rather than the message, because one day we might want to return some value. At the same time, please also mark all these fields as "deprecated", which issues warnings on Python I think, and add a scary "description".
THANKS!
api/swagger.yml
Outdated
@@ -176,28 +176,26 @@ components: | |||
items: | |||
$ref: "#/components/schemas/Repository" | |||
|
|||
MergeResultSummary: | |||
description: "Deprecated: merge summary will be removed" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather only deprecate all the fields and keep a MergeSummary, even empty. That will prevent future backwards-compatibility failures -- otherwise when we will want to add a response type, that's another breaking change :-(
added: | ||
type: integer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added: | |
type: integer | |
added: | |
type: integer | |
deprecated: true | |
description: Deprecated; inaccurate and will be removed. |
(Also on all other properties, of course.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arielshaqed updated the PR with field level deprecation - note that I kept the summary as optional as I don't think we will set an empty structure if we keep it as required.
Merge API change and deprecation waring - step before we can remove the summary fields from merge result.
This version will always return the summary field and define the field as optional.
It will enable users to switch to a version which will not break when the field is gone.
Related to #3978