GitHub user dosubot[bot] added a comment to the discussion: Migration from 1.X to 4.X
<!-- Answer --> The issue you're experiencing with charts appearing empty after migrating from Superset 1.4 to 4.1 might be related to changes in the chart data model and how chart parameters are handled in the newer version. Superset 4.1 includes significant refactoring and restructuring of the chart data model, which could affect how existing charts are displayed and edited. To address this issue, you can try the following steps: 1. **Check Migration Scripts**: Ensure that any migration scripts provided by Superset have been executed. These scripts are designed to update chart parameters to be compatible with the new version. Specifically, look for scripts that handle time comparison parameters, as these have been updated in version 4.1 <sup>[[1]](https://github.com/apache/superset/blob/master/tests/integration_tests/migrations/f84fde59123a_update_charts_with_old_time_comparison__test.py)</sup><sup>[[2]](https://github.com/apache/superset/blob/master/superset/migrations/versions/2024-05-10_18-02_f84fde59123a_update_charts_with_old_time_comparison.py)</sup>. 2. **Review Chart Parameters**: Manually inspect the parameters of the affected charts. There might be discrepancies in how parameters like `time_comparison` are now handled as `time_compare`, along with other changes in parameter names and structures. 3. **Recreate Charts**: If the above steps do not resolve the issue, you may need to recreate the charts. This can ensure that all parameters are correctly set according to the new data model. Unfortunately, there isn't a specific script mentioned in the available information that directly addresses this issue. However, ensuring that all migration steps are followed and parameters are correctly updated should help in resolving the problem. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/103732ce-016a-4141-b664-aa695695af8e?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/103732ce-016a-4141-b664-aa695695af8e?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/103732ce-016a-4141-b664-aa695695af8e?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/103732ce-016a-4141-b664-aa695695af8e?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/103732ce-016a-4141-b664-aa695695af8e?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/103732ce-016a-4141-b664-aa695695af8e?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/103732ce-016a-4141-b664-aa695695af8e?feedback_type=other)</sup> GitHub link: https://github.com/apache/superset/discussions/32725#discussioncomment-12541783 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
