mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-23 02:35:31 -04:00
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:
parent
a899530155
commit
6298e15e86
1 changed files with 4 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue