Skip to content

[ENG-4159] Config/nest quota optimization in provider options - #386

Merged
AmandaYao00 merged 2 commits into
mainfrom
config/nest-quota-optimization-in-provider-options
Aug 5, 2026
Merged

[ENG-4159] Config/nest quota optimization in provider options#386
AmandaYao00 merged 2 commits into
mainfrom
config/nest-quota-optimization-in-provider-options

Conversation

@AmandaYao00

Copy link
Copy Markdown
Contributor

No description provided.

AmandaYao00 and others added 2 commits August 5, 2026 15:18
Replaces the object-level `salesforceQuotaOptimization` property (added in #381,
unreleased) with `providerOptions.quotaOptimization`.

Two reasons for the move:

- Quota optimization is Salesforce-only, so at the top level of a subscribe
  config object it sits beside properties every provider honors and reads as
  generally available. `providerOptions` names the category, so the next
  provider-specific option is an addition rather than another outlier.
- Dropping the `salesforce` prefix leaves room for other providers to support
  the same feature without a second schema. The Salesforce-only constraint is
  documented on the property and enforced by server validation, which is where
  it belongs — it can be relaxed without a schema revision.

`SubscribeProviderOptions` is a named schema with declared properties rather
than a free-form map, so each option is typed in generated clients and a
misspelled option is a spec error instead of config the server silently drops.
It is subscribe-scoped rather than shared, so read/write config objects can
later declare their own options without advertising subscribe's.

No migration: the property is not yet read by the server (the feature is still
gated behind the hardcoded (projectId, groupRef) maps) and no backfill has run.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@AmandaYao00 AmandaYao00 changed the title Config/nest quota optimization in provider options [ENG-4159] Config/nest quota optimization in provider options Aug 5, 2026
@linear

linear Bot commented Aug 5, 2026

Copy link
Copy Markdown

ENG-4159

@AmandaYao00
AmandaYao00 merged commit 4f85a0e into main Aug 5, 2026
2 checks passed
@AmandaYao00
AmandaYao00 deleted the config/nest-quota-optimization-in-provider-options branch August 5, 2026 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant