Gate boards properties setup on the IntegratedBoards feature flag

doSetupBoardsProperties registered the boards property group and
fields at every server boot regardless of the IntegratedBoards
feature flag. Skip the migration when the flag is disabled so the
property metadata only appears once boards are actually enabled.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Julien Tant 2026-04-30 12:20:19 -07:00
parent a899530155
commit 6298e15e86

View file

@ -759,6 +759,10 @@ func (s *Server) doSetupContentFlaggingProperties() error {
}
func (s *Server) doSetupBoardsProperties() error {
if !s.platform.Config().FeatureFlags.IntegratedBoards {
return nil
}
var nfErr *store.ErrNotFound
data, err := s.Store().System().GetByName(boardsPropertySetupDoneKey)
if err != nil && !errors.As(err, &nfErr) {