-
Hi, Is it possible to obtain the final defaults tree in code (as dict/object), instead of executing In addition, when using the compose API instead of the Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
There is no public API for it. The exposure of the defaults tree is for debugging purposes. Can you explain the motivation for this? |
Beta Was this translation helpful? Give feedback.
-
Yes, we want to implement hierarchical configurations for our applications and started using Hydra for this purpose. We need to compute the defaults tree for two main reasons:
I took a look at the code and accessing the internal methods used by Thanks for you help. |
Beta Was this translation helpful? Give feedback.
-
An alternative is to generate the configs using the Compose API, and compare the resulting config to the known tested config. There are no plans to expose this as an API. You are the first user expressing need for it. |
Beta Was this translation helpful? Give feedback.
An alternative is to generate the configs using the Compose API, and compare the resulting config to the known tested config.
If a config has changed, you need to re-test the tests using it.
There are no plans to expose this as an API. You are the first user expressing need for it.
For now use the internal API for it.