Skip to content
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

Update bms.json #10030

Merged
merged 3 commits into from
Jul 7, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1302,32 +1302,6 @@
"modelAsString": true
}
},
"healthStatus": {
"description": "Health status of protected item.",
"enum": [
"Passed",
"ActionRequired",
"ActionSuggested",
"Healthy",
"TransientDegraded",
"PersistentDegraded",
"TransientUnhealthy",
"PersistentUnhealthy",
"Invalid"
],
"type": "string",
"x-ms-enum": {
"name": "HealthStatus",
"modelAsString": true
}
},
"healthDetails": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removing property is a breaking change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @changlong-liu and @akning-ms ,

The properties which are being removed had never been enabled for the customer. We had done the Swagger and SDK changes for adding these properties and enums as part of a recent PR (#9711) and the service code to use these fields is not enabled. So no customer can possibly be using these properties. Based on internal feedback we have decided to follow a different approach so we wont be needing these properties anymore. So i would like to remove them. Even the enum "HealthStatus" needs to be removed/updated. If you can agree upon this then i can remove the enum also as part of this PR instead of a separate PR.

Thanks,
Labonya

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed with @akning-ms I have removed the enums.
Will update the SDK for this change along with the changes for a few more Swagger PRs which are currently in our pipeline.

"description": "Health details on this backup item.",
"type": "array",
"items": {
"$ref": "#/definitions/HealthDetails"
}
},
"lastBackupStatus": {
"description": "Last backup operation status. Possible values: Healthy, Unhealthy.",
"type": "string"
Expand Down Expand Up @@ -1630,7 +1604,7 @@
}
}
},
"HealthDetails": {
"ResourceHealthDetails": {
"description": "Health Details for backup items.",
"type": "object",
"properties": {
Expand Down Expand Up @@ -1665,7 +1639,7 @@
"type": "object",
"allOf": [
{
"$ref": "#/definitions/HealthDetails"
"$ref": "#/definitions/ResourceHealthDetails"
}
]
},
Expand Down Expand Up @@ -1842,11 +1816,6 @@
"Passed",
"ActionRequired",
"ActionSuggested",
"Healthy",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove enum value is kind of breaking change. this change is really required ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @akning-ms these enum values were not populated in the service code. So it will not be a breaking change.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree with @akning-ms , removing an enum value is breaking change in SDK.

"TransientDegraded",
"PersistentDegraded",
"TransientUnhealthy",
"PersistentUnhealthy",
"Invalid"
],
"type": "string",
Expand Down Expand Up @@ -2208,32 +2177,6 @@
"modelAsString": true
}
},
"healthStatus": {
"description": "Health status of protected item.",
"enum": [
"Passed",
"ActionRequired",
"ActionSuggested",
"Healthy",
"TransientDegraded",
"PersistentDegraded",
"TransientUnhealthy",
"PersistentUnhealthy",
"Invalid"
],
"type": "string",
"x-ms-enum": {
"name": "HealthStatus",
"modelAsString": true
}
},
"healthDetails": {
"description": "Health details on this backup item.",
"type": "array",
"items": {
"$ref": "#/definitions/HealthDetails"
}
},
"extendedInfo": {
"$ref": "#/definitions/AzureVmWorkloadProtectedItemExtendedInfo",
"description": "Additional information for this backup item."
Expand Down