Require has_internal_id to pass a init block.
Require has_internal_id to pass a init block.

This is useful since the current scheme allows us to freely delete any
records in internal_ids. If the record is not there, it will get rebuild
using the init block.

We require passing in 'init for the time being and as long as its
not expensive to do so. This makes the scheme a bit more robust.

If at some point, this is expensive - we may choose to make this
optional while losing the ability to recalculate the value on the fly.

Closes #49609.

dreampet/gitlab,jirutka/gitlabhq,stoplightio/gitlabhq,dreampet/gitlab,axilleas/gitlabhq,jirutka/gitlabhq,mmkassem/gitlabhq,jirutka/gitlabhq,iiet/iiet-git,iiet/iiet-git,dreampet/gitlab,axilleas/gitlabhq,axilleas/gitlabhq,iiet/iiet-git,iiet/iiet-git,mmkassem/gitlabhq,axilleas/gitlabhq,stoplightio/gitlabhq,mmkassem/gitlabhq,stoplightio/gitlabhq,stoplightio/gitlabhq,mmkassem/gitlabhq,jirutka/gitlabhq,dreampet/gitlab