Skip to content

feat(akamai-client): OAE rule-tree helpers + updateRuleTree dryRun#1826

Closed
ABHA61 wants to merge 3 commits into
feat/akamai-oae-automationfrom
feat/akamai-oae-tree-helpers
Closed

feat(akamai-client): OAE rule-tree helpers + updateRuleTree dryRun#1826
ABHA61 wants to merge 3 commits into
feat/akamai-oae-automationfrom
feat/akamai-oae-tree-helpers

Conversation

@ABHA61

@ABHA61 ABHA61 commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Squash-collapses the OAE onboarding work onto a fresh feat/akamai-oae-automation branch (cut from main) so the review PR (feat/akamai-oae-automationmain) shows a single commit for senior review.

Squash-merge this PR — that puts one commit on feat/akamai-oae-automation. Full context lives in the automation → main review PR.

ABHA61 and others added 3 commits July 18, 2026 14:18
Support the LLM Optimizer "Optimize at Edge" Akamai onboarding in spacecat-api-service:

- defaultRuleHasCaching(ruleTree): whether the property's default rule already has a
  Caching behavior. Cache ID Modification requires one in scope; the OAE rule must NOT
  add its own when the default provides it (that would override the property's HTML
  no-store and make the optimized path cacheable).
- getDefaultOriginSsl(ruleTree): the default rule's origin SSL verification settings,
  for mirroring onto the OAE origin and gating onboarding on CUSTOM verification.
- updateRuleTree now accepts an optional { dryRun } to validate a full-tree PUT without
  persisting (PAPI still requires an editable version).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Adds a test asserting dryRun=true is appended to the query when
options.dryRun is set, restoring 100% line coverage.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…hout-options

- index.d.ts: add the options?: { dryRun?: boolean } parameter to updateRuleTree
  so typed consumers can pass { dryRun: true } (was 6 args, impl accepts 7).
- test: cover getDefaultOriginSsl when the origin behavior has no options key
  (distinct from no origin) for the 100% branch gate.

Addresses MysticatBot/Codex review.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ABHA61

ABHA61 commented Jul 18, 2026

Copy link
Copy Markdown
Contributor Author

Closing — keeping the original PR #1825 for review instead.

@ABHA61 ABHA61 closed this Jul 18, 2026
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