mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04:00
Add doc comments to exported functions for docstring coverage
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
dfe73b14c6
commit
9a302b698f
2 changed files with 4 additions and 0 deletions
|
|
@ -247,6 +247,7 @@ func (a *App) SaveConfig(newCfg *model.Config, sendConfigChangeClusterMessage bo
|
|||
return a.Srv().platform.SaveConfig(newCfg, sendConfigChangeClusterMessage)
|
||||
}
|
||||
|
||||
// ListConfigurations returns metadata for stored configuration entries with optional diffs.
|
||||
func (a *App) ListConfigurations(limit int, includeDiffs string) ([]*model.ConfigListItem, *model.AppError) {
|
||||
items, err := a.Srv().platform.ListConfigurations(limit, includeDiffs)
|
||||
if err != nil {
|
||||
|
|
@ -255,6 +256,7 @@ func (a *App) ListConfigurations(limit int, includeDiffs string) ([]*model.Confi
|
|||
return items, nil
|
||||
}
|
||||
|
||||
// RollbackConfig restores a historical configuration identified by its ID.
|
||||
func (a *App) RollbackConfig(id string) (*model.Config, *model.Config, *model.AppError) {
|
||||
historicalCfg, err := a.Srv().platform.GetConfigByID(id)
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -151,10 +151,12 @@ func (ps *PlatformService) CleanUpConfig() error {
|
|||
return ps.configStore.CleanUp()
|
||||
}
|
||||
|
||||
// ListConfigurations delegates to the config store to retrieve configuration history.
|
||||
func (ps *PlatformService) ListConfigurations(limit int, includeDiffs string) ([]*model.ConfigListItem, error) {
|
||||
return ps.configStore.ListConfigurations(limit, includeDiffs)
|
||||
}
|
||||
|
||||
// GetConfigByID delegates to the config store to retrieve a configuration by its ID.
|
||||
func (ps *PlatformService) GetConfigByID(id string) (*model.Config, error) {
|
||||
return ps.configStore.GetConfigByID(id)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue