Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to make sure that clusters center is never null. (#1942)
And/or that at least clusters without a center are never returned. We don't know exactly in which cases this crash happens. So this commit approaches it in two different ways: * For a given feed, only return clusters that have a center, by adding a `INNER JOIN project_medias` clause to the feed clusters query. * For the `ClusterType` GraphQL endpoint, fallback to the cluster model `center` method, which already falls back to the first item of the cluster if the center is not present anymore. Fixes CV2-4850.
- Loading branch information