-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Cleanup Swagger Transforms and Customizations in Metrics Advisor #33874
Conversation
API change check APIView has identified API level changes in this PR and created following API reviews. |
...e-ai-metricsadvisor/src/main/java/com/azure/ai/metricsadvisor/MetricsAdvisorAsyncClient.java
Show resolved
Hide resolved
DataFeedIngestionStatus dataFeedIngestionStatus = new DataFeedIngestionStatus(); | ||
DataFeedIngestionStatusHelper.setMessage(dataFeedIngestionStatus, ingestionStatus.getMessage()); | ||
DataFeedIngestionStatusHelper.setIngestionStatusType(dataFeedIngestionStatus, IngestionStatusType.fromString(toStringOrNull(ingestionStatus.getStatus()))); | ||
DataFeedIngestionStatusHelper.setTimestamp(dataFeedIngestionStatus, ingestionStatus.getTimestamp()); | ||
return dataFeedIngestionStatus; |
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.
Is this needed? The DataFeedIngestionStatus should be correctly serialized and we don't need accessors to make it public. What's the difference between the DataFeedIngestionStatus in implementation package and the one in public package?
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 think the issue is we need the DataFeedIngestionStatus
in admin.models
and not models
. I believe earlier it was manually moved. But to make the swagger work as is without manual modifications we needed this transform.
are there any other options we can do?
This PR makes sure Metrics advisor swagger is updated with the public rest-api specs and also removes outdated customizations that are not applicable anymore.;