-
Notifications
You must be signed in to change notification settings - Fork 115
fix: revert changes to MlEvaluateDataFrameResponse from #5622 #5648
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
Conversation
* removes duplicated `ResponseBody` * moves body back to `Response` * removes `@variants: container` from Response
|
Following you can find the validation changes against the target branch for the APIs. No changes detected. You can validate these APIs yourself by using the |
flobernd
left a comment
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 didn't completely follow this, but are we reverting to avoid a breaking change or what is the intention here?
|
The intention is to avoid having two classes with the same name, which breaks the Go client generator. That said, we don't want to revert; we want to change the name of the new class. |
Ok good! That would have been my suggestion as well. |
|
@flobernd we reviewed this today with @pquentin and @l-trotta . - /** @variants container */
- export class Response {
- body: {
- /**
- * Evaluation results for a classification analysis.
- * It outputs a prediction that identifies to which of the classes each document belongs.
- */
- classification?: DataframeClassificationSummary
- /**
- * Evaluation results for an outlier detection analysis.
- * It outputs the probability that each document is an outlier.
- */
- outlier_detection?: DataframeOutlierDetectionSummary
- /**
- * Evaluation results for a regression analysis which outputs a prediction of values.
- */
- regression?: DataframeRegressionSummary
- }
+ /** @codegen_name result */
+ body: ResponseBody
+ }
+
+ /** @variants container */
+ export class ResponseBody {
+ /**
+ * Evaluation results for a classification analysis.
+ * It outputs a prediction that identifies to which of the classes each document belongs.
+ */
+ classification?: DataframeClassificationSummary
+ /**
+ * Evaluation results for an outlier detection analysis.
+ * It outputs the probability that each document is an outlier.
+ */
+ outlier_detection?: DataframeOutlierDetectionSummary
+ /**
+ * Evaluation results for a regression analysis which outputs a prediction of values.
+ */
+ regression?: DataframeRegressionSummaryIt makes sense to simply remove the - /** @variants container */
export class Response { |
|
The backport to To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-9.1 9.1
# Navigate to the new working tree
cd .worktrees/backport-9.1
# Create a new branch
git switch --create backport-5648-to-9.1
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 2fdf04924f2c2b2ffa6822155333261919be6a0c
# Push it to GitHub
git push --set-upstream origin backport-5648-to-9.1
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-9.1Then, create a pull request where the |
|
The backport to To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-9.2 9.2
# Navigate to the new working tree
cd .worktrees/backport-9.2
# Create a new branch
git switch --create backport-5648-to-9.2
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 2fdf04924f2c2b2ffa6822155333261919be6a0c
# Push it to GitHub
git push --set-upstream origin backport-5648-to-9.2
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-9.2Then, create a pull request where the |
ResponseBodyResponse@variants: containerfrom ResponseSplit from #5647