Fix `undefined method `related_feature_flags' for nil:NilClass`
Overview
While investigating the drop in error budget, we identified the following error in Projects::IssueFeatureFlagsController
:
undefined method `related_feature_flags' for nil:NilClass
The error seem to have surfaced quite recently (about two weeks ago, at the time of writing this). We want to investigate and fix this error.
Logs: https://log.gprd.gitlab.net/goto/1145d6f0-a24b-11ed-9f43-e3784d7fe3ca
Sentry:
- https://new-sentry.gitlab.net/organizations/gitlab/issues/493041/events/fce39be54e9643c1a560bfff284d9d53/
- https://new-sentry.gitlab.net/organizations/gitlab/issues/437363/events/f8eacffa0e8c4426a343926b2b634805/
Proposal
- Find out why
issuable
isnil
. - Provide a fix that ensures
.related_feature_flags
is not called onnil
.
Edited by Michael Becker