* feat(suite): Implement Suites Fixes #1230 * Update docs * Fix variable alignment * Prevent always-run endpoint from running if a context placeholder fails to resolve in the URL * Return errors when a context placeholder path fails to resolve * Add a couple of unit tests * Add a couple of unit tests * fix(ui): Update group count properly Fixes #1233 * refactor: Pass down entire config instead of several sub-configs * fix: Change default suite interval and timeout * fix: Deprecate disable-monitoring-lock in favor of concurrency * fix: Make sure there are no duplicate keys * Refactor some code * Update watchdog/watchdog.go * Update web/app/src/components/StepDetailsModal.vue Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * chore: Remove useless log * fix: Set default concurrency to 3 instead of 5 --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
22 lines
565 B
Go
22 lines
565 B
Go
package paging
|
|
|
|
// SuiteStatusParams represents the parameters for suite status queries
|
|
type SuiteStatusParams struct {
|
|
Page int // Page number
|
|
PageSize int // Number of results per page
|
|
}
|
|
|
|
// NewSuiteStatusParams creates a new SuiteStatusParams
|
|
func NewSuiteStatusParams() *SuiteStatusParams {
|
|
return &SuiteStatusParams{
|
|
Page: 1,
|
|
PageSize: 20,
|
|
}
|
|
}
|
|
|
|
// WithPagination sets the page and page size
|
|
func (params *SuiteStatusParams) WithPagination(page, pageSize int) *SuiteStatusParams {
|
|
params.Page = page
|
|
params.PageSize = pageSize
|
|
return params
|
|
} |