Skip to content

Commit a09cdec

Browse files
committed
chore(APP): default ONLY_CADT_SUBSCRIPTIONS to true
New installs and merged defaults enable orglist subscription reconcile unless explicitly set to false in config.yaml.
1 parent b35bf3b commit a09cdec

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ In the `CHIA_ROOT` directory (usually `~/.chia/mainnet` on Linux), CADT will add
277277
* **DATALAYER_FILE_SERVER_URL**: Publicly available URL and port where Chia Datalayer [files are served](#datalayer-http-file-serving), including schema (http:// or https://). If serving DataLayer files from S3, this would be the public URL of the S3 bucket. Port can be omitted if using standard ports for http or https requests.
278278
* **AUTO_SUBSCRIBE_FILESTORE**: Subscribing to the filestore for any organization is optional. To automatically subscribe and sync the filestore to every organization you subscribe to, set this to `true`.
279279
* **AUTO_MIRROR_EXTERNAL_STORES**: When set to true (the default), CADT will automatically create mirrors for each store you are subscribed to. Mirroring all subscriptions using the `DATALAYER_FILE_SERVER_URL` will make the entire CADT network more resilient and distributed. Note: `DATALAYER_FILE_SERVER_URL` must also be set to a valid URL or IP address for mirrors to be created. Both settings are required for external store mirroring to function.
280-
* **ONLY_CADT_SUBSCRIPTIONS**: When set to `true`, CADT keeps DataLayer subscriptions aligned with the governance **orgList** in both directions. Organizations removed from the orgList are unsubscribed from DataLayer (`subscribed: false`); already-synced registry data on this node is **not** deleted. Organizations on the orgList that are not subscribed are subscribed (including orgs re-added after a prior removal, including orgs previously removed via the API delete flow). The home organization and governance body store are never auto-unsubscribed. Reconciliation runs only when a **non-empty** orgList is present locally (after a successful governance sync); an empty orgList is treated as “not ready” and does not trigger unsubscribes. Default `false`. While enabled, a manual unsubscribe of an org still listed on the orgList will be reverted on the next sync cycle.
280+
* **ONLY_CADT_SUBSCRIPTIONS**: When `true` (the default), CADT keeps DataLayer subscriptions aligned with the governance **orgList** in both directions. Organizations removed from the orgList are unsubscribed from DataLayer (`subscribed: false`); already-synced registry data on this node is **not** deleted. Organizations on the orgList that are not subscribed are subscribed (including orgs re-added after a prior removal, including orgs previously removed via the API delete flow). The home organization and governance body store are never auto-unsubscribed. Reconciliation runs only when a **non-empty** orgList is present locally (after a successful governance sync); an empty orgList is treated as “not ready” and does not trigger unsubscribes. Set to `false` to disable orglist-driven subscribe/unsubscribe reconciliation. While enabled, a manual unsubscribe of an org still listed on the orgList will be reverted on the next sync cycle.
281281
* **LOG_LEVEL**: Controls verbosity of logging. Common settings are `info` and `debug`. Setting to `silly` will log all queries.
282282
* **TASKS**: Section for configuring sync intervals.
283283
* **GOVERNANCE_SYNC_TASK_INTERVAL**: Syncs picklist, orgList, and glossary from the governance node. Default 30 seconds.

src/utils/defaultConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const defaultConfig = {
3535
* orgs on the list with subscribed=false are re-subscribed. Requires a
3636
* non-empty orgList from a successful governance sync before any removal.
3737
*/
38-
ONLY_CADT_SUBSCRIPTIONS: false,
38+
ONLY_CADT_SUBSCRIPTIONS: true,
3939
LOG_LEVEL: 'info',
4040
TASKS: {
4141
GOVERNANCE_SYNC_TASK_INTERVAL: 30,

tests/integration/orglist-subscription-reconcile-v1.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ describe('orglist-subscription-reconcile (V1)', function () {
6262
expect(Boolean(orgC.subscribed)).to.equal(false);
6363
});
6464

65-
it('should default ONLY_CADT_SUBSCRIPTIONS to false in shared APP config', function () {
66-
expect(defaultConfig.APP.ONLY_CADT_SUBSCRIPTIONS).to.equal(false);
65+
it('should default ONLY_CADT_SUBSCRIPTIONS to true in shared APP config', function () {
66+
expect(defaultConfig.APP.ONLY_CADT_SUBSCRIPTIONS).to.equal(true);
6767
});
6868
});

tests/v2/integration/orglist-subscription-reconcile.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ describe('orglist-subscription-reconcile (V2)', function () {
218218
});
219219

220220
describe('defaultConfig', function () {
221-
it('should default ONLY_CADT_SUBSCRIPTIONS to false', function () {
222-
expect(defaultConfig.APP.ONLY_CADT_SUBSCRIPTIONS).to.equal(false);
221+
it('should default ONLY_CADT_SUBSCRIPTIONS to true', function () {
222+
expect(defaultConfig.APP.ONLY_CADT_SUBSCRIPTIONS).to.equal(true);
223223
});
224224
});
225225
});

0 commit comments

Comments
 (0)