def upgrade_v10_metric_filters(manifest: dict):
    """Handles metric filters changes from v10 to v11."""

    metrics = manifest.get("metrics", {})
    for metric in metrics.values():
        _convert_metric(metric)

    disabled_nodes = manifest.get("disabled", {})
    for unique_id, nodes in disabled_nodes.items():
        if unique_id.split(".")[0] == "metric":
            for node in nodes:
                _convert_metric(node)
Handles metric filters changes from v10 to v11.
core/dbt/artifacts/schemas/upgrades/upgrade_manifest.py