chore: enable coder inbox by default (#17077)

Add a flag to enable Coder Inbox by default, as well as supporting disabling the feature.
This commit is contained in:
Danielle Maywood
2025-03-25 12:51:26 +00:00
committed by GitHub
parent 5f3a53f01b
commit cd19e79d9b
15 changed files with 260 additions and 42 deletions
+3
View File
@@ -293,6 +293,9 @@ curl -X GET http://coder-server:8080/api/v2/deployment/config \
}
},
"fetch_interval": 0,
"inbox": {
"enabled": true
},
"lease_count": 0,
"lease_period": 0,
"max_send_attempts": 0,
+24
View File
@@ -1943,6 +1943,9 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
}
},
"fetch_interval": 0,
"inbox": {
"enabled": true
},
"lease_count": 0,
"lease_period": 0,
"max_send_attempts": 0,
@@ -2416,6 +2419,9 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
}
},
"fetch_interval": 0,
"inbox": {
"enabled": true
},
"lease_count": 0,
"lease_period": 0,
"max_send_attempts": 0,
@@ -3757,6 +3763,9 @@ Git clone makes use of this by parsing the URL from: 'Username for "https://gith
}
},
"fetch_interval": 0,
"inbox": {
"enabled": true
},
"lease_count": 0,
"lease_period": 0,
"max_send_attempts": 0,
@@ -3789,6 +3798,7 @@ Git clone makes use of this by parsing the URL from: 'Username for "https://gith
| `dispatch_timeout` | integer | false | | How long to wait while a notification is being sent before giving up. |
| `email` | [codersdk.NotificationsEmailConfig](#codersdknotificationsemailconfig) | false | | Email settings. |
| `fetch_interval` | integer | false | | How often to query the database for queued notifications. |
| `inbox` | [codersdk.NotificationsInboxConfig](#codersdknotificationsinboxconfig) | false | | Inbox settings. |
| `lease_count` | integer | false | | How many notifications a notifier should lease per fetch interval. |
| `lease_period` | integer | false | | How long a notifier should lease a message. This is effectively how long a notification is 'owned' by a notifier, and once this period expires it will be available for lease by another notifier. Leasing is important in order for multiple running notifiers to not pick the same messages to deliver concurrently. This lease period will only expire if a notifier shuts down ungracefully; a dispatch of the notification releases the lease. |
| `max_send_attempts` | integer | false | | The upper limit of attempts to send a notification. |
@@ -3878,6 +3888,20 @@ Git clone makes use of this by parsing the URL from: 'Username for "https://gith
| `server_name` | string | false | | Server name to verify the hostname for the targets. |
| `start_tls` | boolean | false | | Start tls attempts to upgrade plain connections to TLS. |
## codersdk.NotificationsInboxConfig
```json
{
"enabled": true
}
```
### Properties
| Name | Type | Required | Restrictions | Description |
|-----------|---------|----------|--------------|-------------|
| `enabled` | boolean | false | | |
## codersdk.NotificationsSettings
```json
+11
View File
@@ -1560,6 +1560,17 @@ Certificate key file to use.
The endpoint to which to send webhooks.
### --notifications-inbox-enabled
| | |
|-------------|-------------------------------------------------|
| Type | <code>bool</code> |
| Environment | <code>$CODER_NOTIFICATIONS_INBOX_ENABLED</code> |
| YAML | <code>notifications.inbox.enabled</code> |
| Default | <code>true</code> |
Enable Coder Inbox.
### --notifications-max-send-attempts
| | |