compliance.go
TLDR
This file contains three methods that are part of the App
struct in the compliance.go
file. These methods are responsible for retrieving boards and blocks compliant information from the store.
Methods
GetBoardsForCompliance
This method retrieves the boards for compliance based on the provided query options. It returns a list of boards, a boolean value indicating if there are more boards to be fetched, and an error if any occurred.
GetBoardsComplianceHistory
This method retrieves the compliance history of boards based on the provided query options. It returns a list of board histories, a boolean value indicating if there are more histories to be fetched, and an error if any occurred.
GetBlocksComplianceHistory
This method retrieves the compliance history of blocks based on the provided query options. It returns a list of block histories, a boolean value indicating if there are more histories to be fetched, and an error if any occurred.
package app
import "github.com/mattermost/focalboard/server/model"
func (a *App) GetBoardsForCompliance(opts model.QueryBoardsForComplianceOptions) ([]*model.Board, bool, error) {
return a.store.GetBoardsForCompliance(opts)
}
func (a *App) GetBoardsComplianceHistory(opts model.QueryBoardsComplianceHistoryOptions) ([]*model.BoardHistory, bool, error) {
return a.store.GetBoardsComplianceHistory(opts)
}
func (a *App) GetBlocksComplianceHistory(opts model.QueryBlocksComplianceHistoryOptions) ([]*model.BlockHistory, bool, error) {
return a.store.GetBlocksComplianceHistory(opts)
}