Of course I realized something just after the PR #243 was merged... (following on from #191)
The catalog builder is going to have issues the first time we run it, because there is an existing catalog in the live directory, but it doesn't match the new catalog.yaml structure. Specifically, there isn't a min or max version in the old catalog, so cli::build will throw a KeyError when it tries to read them.
To Reproduce
Will only occur if a live build process is triggered (not recommended right now).
Additional context
We could, of course, solve this outside code by simply deleting the existing catalog.yaml before we do our first new catalog build. However, this would leave users inexplicably unable to access intake.cat.access_nri for a few hours while that happens.
My solution will be to effectively treat this situation as if there is no existing catalog.yaml, but without having to cripple the system while the new catalog builds.
Describe the bug
Of course I realized something just after the PR #243 was merged... (following on from #191)
The catalog builder is going to have issues the first time we run it, because there is an existing catalog in the live directory, but it doesn't match the new
catalog.yaml
structure. Specifically, there isn't amin
ormax
version in the old catalog, socli::build
will throw aKeyError
when it tries to read them.To Reproduce
Will only occur if a live build process is triggered (not recommended right now).
Additional context
We could, of course, solve this outside code by simply deleting the existing
catalog.yaml
before we do our first new catalog build. However, this would leave users inexplicably unable to accessintake.cat.access_nri
for a few hours while that happens.My solution will be to effectively treat this situation as if there is no existing
catalog.yaml
, but without having to cripple the system while the new catalog builds.