perf(statuspages): page the monitor list and batch the group import
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 10m59s
ci / test (pull_request) Successful in 12m44s
ci / build (pull_request) Successful in 18m14s
ci / image (pull_request) Canceled after 1m1s
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 10m59s
ci / test (pull_request) Successful in 12m44s
ci / build (pull_request) Successful in 18m14s
ci / image (pull_request) Canceled after 1m1s
With thousands of monitors on a status page the editor was tens of megabytes, as every row carried the options of all groups, and importing the monitor groups updated each monitor in its own statement. - The monitors of the editor are shown 50 at a time. All rows stay in the form, as saving replaces the page's monitors. - Rows carry their own group only and get the other options from the row template once shown or focused. - The filter matches a monitor's name and group path only, no longer the names of the groups in its select. - The import creates the groups one nesting level at a time and files all monitors in one statement. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
383b63bc0e
commit
52d2ce25c9
10 files changed
+707
-340
No files matched your search
@@ -90,6 +90,10 @@ type Querier interface {
|
||||
CreateSSOProvider(ctx context.Context, arg CreateSSOProviderParams) (SsoProvider, error)
|
||||
CreateStatusPage(ctx context.Context, arg CreateStatusPageParams) (StatusPage, error)
|
||||
CreateStatusPageGroup(ctx context.Context, arg CreateStatusPageGroupParams) (StatusPageGroup, error)
|
||||
// Creates many groups of a page at once, with ids the caller chose. Parents
|
||||
// must exist before their children are created; a nil parent id (all
|
||||
// zeros) means none.
|
||||
CreateStatusPageGroups(ctx context.Context, arg CreateStatusPageGroupsParams) error
|
||||
CreateSupportTicket(ctx context.Context, arg CreateSupportTicketParams) (SupportTicket, error)
|
||||
CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
|
||||
DailyBuckets(ctx context.Context, arg DailyBucketsParams) ([]DailyBucketsRow, error)
|
||||
@@ -395,7 +399,9 @@ type Querier interface {
|
||||
SetPlatformSetting(ctx context.Context, arg SetPlatformSettingParams) error
|
||||
// Changing the domain drops a previous verification and its checks.
|
||||
SetStatusPageDomain(ctx context.Context, arg SetStatusPageDomainParams) (StatusPage, error)
|
||||
SetStatusPageMonitorGroup(ctx context.Context, arg SetStatusPageMonitorGroupParams) error
|
||||
// Files many monitors of a page at once; a nil group id (all zeros) files
|
||||
// a monitor under none.
|
||||
SetStatusPageMonitorGroups(ctx context.Context, arg SetStatusPageMonitorGroupsParams) error
|
||||
SetSupportTicketStatus(ctx context.Context, arg SetSupportTicketStatusParams) (int64, error)
|
||||
SetUserAdmin(ctx context.Context, arg SetUserAdminParams) (int64, error)
|
||||
SetUserLocale(ctx context.Context, arg SetUserLocaleParams) error
|
||||
|
||||
Reference in new issue
Block a user