When any node with a query is updated, we should revalidate the node's dimension links, as some of them may have become invalidated due to the updated query. For example, if a transform's query gets updated to remove a column that has a dimension link defined on it, we should also remove the dimension link.
To fix it for existing nodes, I've added some changes to the POST /nodes/{node}/validate endpoint so that it does the same logic of cleaning up unneeded dimension links.
Summary
When any node with a query is updated, we should revalidate the node's dimension links, as some of them may have become invalidated due to the updated query. For example, if a transform's query gets updated to remove a column that has a dimension link defined on it, we should also remove the dimension link.
To fix it for existing nodes, I've added some changes to the
POST /nodes/{node}/validate
endpoint so that it does the same logic of cleaning up unneeded dimension links.Test Plan
make check
passesmake test
shows 100% unit test coverageDeployment Plan