feat(limits): limit the monitors shown on one status page
Platform admins set a default for how many monitors a status page may show, and an override per organization, like the other limits. Saving a page with more gives 422 page_monitor_limit; a page beyond a lowered limit keeps its monitors but cannot grow. The page editor names the limit and the organization's usage lists it. 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
4cde0f7e56
commit
ca852c8299
17 files changed
+611
-416
No files matched your search
@@ -0,0 +1,7 @@
|
||||
-- +goose Up
|
||||
-- How many monitors one status page of the organization may show; NULL
|
||||
-- follows the platform default, 0 means unlimited.
|
||||
ALTER TABLE orgs ADD COLUMN limit_monitors_per_page integer CHECK (limit_monitors_per_page >= 0);
|
||||
|
||||
-- +goose Down
|
||||
ALTER TABLE orgs DROP COLUMN limit_monitors_per_page;
|
||||
Reference in new issue
Block a user