Remove unnecessary blank imports (round 2) (#23310)

I mistakenly assumed that those packages are naturally imported.

And also atleast one test would have broken.

None of them are true. :)

So we just import it again at a better place

This reverts commit 30a053314b.

```release-note
NONE
```
This commit is contained in:
Agniva De Sarker 2023-05-05 19:44:02 +05:30 committed by GitHub
parent 2d61ec0b1d
commit 9f1796f98b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 18 deletions

View File

@ -1,9 +0,0 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
package imports
import (
// Needed to ensure the init() method in the FocalBoard product is run.
_ "github.com/mattermost/mattermost-server/server/v8/boards/product"
)

View File

@ -1,9 +0,0 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
package imports
import (
// Needed to ensure the init() method in the Playbooks product is run.
_ "github.com/mattermost/mattermost-server/server/v8/playbooks/product"
)

View File

@ -14,6 +14,10 @@ import (
// Enterprise Imports
_ "github.com/mattermost/mattermost-server/server/v8/channels/imports"
// Blank imports for each product to register themselves
_ "github.com/mattermost/mattermost-server/server/v8/boards/product"
_ "github.com/mattermost/mattermost-server/server/v8/playbooks/product"
)
func main() {