我要评分
获取效率
正确性
完整性
易理解

Viewing the Migration Result

You can view a migration report and perform necessary operations as instructed to verify or complete the migration.

Prerequisites

  • You have logged in to the Kunpeng DevKit.
  • You have created a system migration project and completed the migration.

Migration Report

  1. Go to the Migration Result page and view the migration report. If SQL statements exist, the Download Non-Source-Code SQL File button is displayed. You can click this button to download the file.
    Figure 1 Migration Report
    Table 1 Parameters in the migration report

    Parameter

    Description

    Source Component Name

    Name of the migrated source component.

    Owning Node

    Node to which the component belongs. Filtering is supported.

    Component Belonging

    Ownership of a component. Filtering is supported.

    Origin of Source Component

    Where the component comes.

    Target Component Name

    Name of the target component.

    Status

    Migration status of the component, which is Migrated, To be migrated, or Masked.

    Guidance

    Click View Details to view the guidance details.

    Status Source

    Source of the component, which defaults to a migration by the tool. If you want to modify the component status, the status source will change to Customized.

    Remarks

    Supplementary information.

    Updated

    Time when the migration status is updated.

    Operation

    You can modify the migration status and add remarks.

  2. Click View Details in the Guidance column, and you will see the guidance details on the right.
    • If the migration is successful, verify system functions based on the verification method provided in Guidance Suggestion. The following uses a migration from Tomcat to TongWeb as an example.
      Figure 2 Guidance Suggestion
    • If the migration fails, perform a manual migration and verify system functions based on Guidance Suggestion. The following uses a Nginx migration as an example.
      Figure 3 Guidance Suggestion
  3. After the migration is complete, you can close the right sliding frame. Click Edit in the Operation column, select a state from the drop-down list, and click Save.

    You can select multiple components and click Batch Edit to edit the selected components at the same time. Click OK to save the modification.

Source Code Migration Guidance

If you upload the source package when creating a project, source code migration guidance is generated. You can also click Upload Source File in the upper part of the page to upload and analyze the source package.

If no database is selected in the migration content, SQL statements in the source file will not be parsed.

Table 2 Source code migration guidance

Parameter

Description

File Name

Name of the file to which the source code SQL statements belong.

Source Path

Source path of the file.

Source Package Name

Name of the source package.

SQL Count

Total number of SQL statements in the file.

Non-SM Algorithms

Total number of non-SM algorithms in the file.

Suggestions

Total number of suggestions in the file.

Guidance

Click View Details to view the guidance details.

Status

Migration status of the file, which is Migrated, To be migrated, or Masked.

Status Source

Source of the component, which defaults to a migration by the tool. If you want to modify the component status, the status source will change to Customized.

Remarks

Supplementary information.

Updated

Time when the migration status is updated.

Operation

You can modify the migration status and add remarks.

  • Source Code SQL
    Figure 4 Source Code SQL
    1. Click View Details in the Guidance column. The source code SQL migration guidance is displayed on the right. You can download the SQL summary file.
    2. You can move the cursor to the code with a wavy line and perform compatibility analysis and conversion as prompted.
    3. After the migration is complete, you can close the sliding frame. Click Edit in the Operation column, select a state from the drop-down list, and click Save.

      You can select multiple files and click Batch Edit in the left upper corner to edit the source files at the same time. Click OK to save the modification.

  • Non-SM Algorithms
    Figure 5 Non-SM Algorithms
    1. Click Non-SM Algorithms to switch to the Non-SM Algorithms tab page. Download the summary file of non-SM algorithms.
    2. Click View Details in the Guidance column. The guidance for non-SM algorithms is displayed on the right.
    3. You can move the cursor over to the code with wavy lines. If the code does not comply with the SM algorithms, modify it based on Non-SM Algorithm Migration Guide.
    4. After the modification is complete, you can close the sliding frame. Click Edit in the Operation column, select a state from the drop-down list, and click Save.

      You can select multiple files and click Batch Edit in the left upper corner to edit the source files at the same time. Click OK to save the modification.

  • Other
    Figure 6 Other
    1. Click the Other tab and you can download the modification suggestion file on this tab page.
    2. Click View Details in the Guidance column. The guidance for other types of source code is displayed on the right.
    3. You can move the mouse pointer to the code with a red wavy line and click Quick Fix to replace the code with the recommended code. (You can choose Batch Apply This Suggestion to batch fix similar issues.) Alternatively, you can modify the configuration as prompted, for example, modify the IP address and port number.
      • You can modify the source file. After the modification is complete, click Save, Roll Back, or Cancel in the upper right corner as needed.
      • You can click the arrow keys in the upper right corner of the source file module to go up and down.
      • Click in the file list on the left to download the required source file.
    4. After the modification is complete, you can close the sliding frame. Click Edit in the Operation column, select a state from the drop-down list, and click Save.

      You can select multiple files and click Batch Edit in the left upper corner to edit the source files at the same time. Click OK to save the modification.