Previously, update_model_id would replace the id with the based_on field, which was actually a relative path rather than a model id. In other words, this function did not support child models created in sub-directories (or otherwise a different directory than the parent model). This PR addresses that by capturing the id of the parent model instead of the path. See referenced issue for more details.
Previously,
update_model_id
would replace the id with thebased_on
field, which was actually a relative path rather than a model id. In other words, this function did not support child models created in sub-directories (or otherwise a different directory than the parent model). This PR addresses that by capturing the id of the parent model instead of the path. See referenced issue for more details.closes https://github.com/metrumresearchgroup/bbr/issues/611