Skip to content

2.25.2.0-b178

@gargsans-yb gargsans-yb tagged this 18 Mar 05:52
Summary:
##### Changes to `/api/migration_assessment_v2` API.

* Removing fields `unsupported_data_types`, `unsupported_functions` and `unsupported_features`
* Adding a generic aggregated field `assessment_issues`.
* All types of issues are now aggregated into the 1 field.
* Each assessment issue has field `Category`. And each issue `Category` has a list of `IssuesTypes`.
```
type AssessmentCategoryInfo struct {

    Category string `json:"category"`

    CategoryDescription string `json:"category_description"`

    Issues []AssessmentIssueInfo `json:"issues"`
}

type AssessmentIssueInfo struct {

    Type string `json:"type"`

    Name string `json:"name"`

    Description string `json:"description"`

    Count int32 `json:"count"`

    Impact string `json:"impact"`

    Objects []UnsupportedSqlObjectData `json:"objects"`

    DocsLink string `json:"docs_link"`

    MinimumVersionsFixedIn []string `json:"minimum_versions_fixed_in"`
}
```

##### Changes to `/api/migrate_chema` API

* Removed fields: `SuggestionsErrors` and `SqlObjects`
* Reformatted the field `CurrentAnalysisReport`.
* `CurrentAnalysisReport` now has 2 fields: `SqlObjects` and `RecommendedRefactoring`
* `SqlObjects` in `CurrentAnalysisReport` contains list of DB Objects along with any issues associated to them.
* `RecommendedRefactoring`  is now a list of `RefactoringCount` instead of a single object `RecommendedRefactoringGraph` (which in turn was a list of  `RefactoringCount`

##### Deprecated the `/api/migration_assessment` API as we don't use it now.
Jira: DB-14454

Test Plan: ./yb_build.sh --java-test 'org.yb.yugabyted.*'

Reviewers: nikhil

Reviewed By: nikhil

Subscribers: krishna.tripathi, yugabyted-dev, sgarg-yb

Differential Revision: https://phorge.dev.yugabyte.com/D40824
Assets 2
Loading