You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix edge case in metrics collector
For some reason, the default/fallback value returned by `get_collection_stats` is an empty list, not an empty object. This can trigger an edge case if Prometheus metrics are scraped after a collection has been created, but the stats for the new collection haven’t been computed yet.
To prevent unintended side effects, I haven’t changed the default/fallback value (as other parts of the code base might rely on it) and have instead explicitly handled empty values.
* Use Airplane instead of Person entities in tests
This shouldn’t make a difference, but unfortunately our test suite contains a bunch of tests that have side effects (e.g. they create entities that aren’t properly rolled back after the tests). In this particular case, other tests create Person entities, but not Airplane entities, so that’s a workaround for now.
0 commit comments