Skip to content

APPZ-3053: fix the casing of snapSearchRetentionDays in the API spec - #73

Open
sergiimeleshko wants to merge 1 commit into
masterfrom
APPZ-3053-fix-snap-search-retention-days-casing
Open

APPZ-3053: fix the casing of snapSearchRetentionDays in the API spec#73
sergiimeleshko wants to merge 1 commit into
masterfrom
APPZ-3053-fix-snap-search-retention-days-casing

Conversation

@sergiimeleshko

Copy link
Copy Markdown

What

The warm tier retention field is documented as snapsearchRetentionDays (lowercase s in
"search"). The backend field is snapSearchRetentionDays — see snapSearchRetentionDays on
TimeBasedAccountUpdateRequest.java in platform/accounts/model, and
TimeBasedAccountsService.validateSnapSearchRetentionDays.

Why it matters

A customer copying the field name straight from api-docs sends a key the backend does not
recognise. The request still returns 200 and the warm tier is simply not changed — so from the
outside it looks like the API does not support warm tier at all.

That is what APPZ-3053 reports ("ability to adjust warm Tier via API and terraform"). The
capability already exists; the documented field name is what is wrong.

Terraform was never affected. logzio_terraform_client hardcodes
json:"snapSearchRetentionDays", so snap_search_retention_days on logzio_subaccount has always
worked. Only the raw API path was broken.

Changes

Four occurrences renamed in examples/logzio-public-api.yml:

# location kind
1 TimeBasedAccountUpdateRequest.snapsearchRetentionDays property
2 DetailedTimeBasedAccount.snapsearchRetentionDays property
3 TimeBasedAccount.snapsearchRetentionDays property
4 top-level snapsearchRetentionDays definition unreferenced

Occurrence 4 is a standalone definition under definitions: that nothing $refs — unlike its
siblings Accessible and DocSizeSetting. It is renamed for consistency, but it is dead and could
reasonably be deleted instead. Happy to drop it if a reviewer prefers.

Affected doc pages

The three properties resolve into five pages, all regenerated:

  • update-time-based-account
  • get
  • get-all
  • get-detailed-time-based-account
  • get-all-detailed-time-based-account

Why the diff is small

Only the five pages that embed the affected schemas were deleted and regenerated. A full
yarn gen-api-docs logz rewrites the base64 api: blob in all 198 pages with no content change, so
the rest are left untouched. docs/logz/sidebar.js is unchanged.

Heads-up: do not run yarn clean-api-docs logz — it deletes the 8 unified-alerts pages plus
their tag page, which are not generated from this spec.

Verification

  • Spec parses; all three schemas expose snapSearchRetentionDays.
  • Decoded the base64 api: blob of every generated page: 0 still contain the misspelling, and the
    5 expected pages contain the corrected name.
  • Case-sensitive grep for snapsearchRetentionDays across the repo returns nothing.
  • docs/logz/sidebar.js untouched; all 9 unified-alerts files intact.

The warm tier retention field was documented as `snapsearchRetentionDays`
(lowercase s in "search"), but the backend field is `snapSearchRetentionDays` -
see TimeBasedAccountUpdateRequest.java in platform/accounts/model.

A customer copying the field name from the docs sends a key the backend does not
recognise. The request still returns 200 and the warm tier is simply not
changed, so it reads as "the API does not support warm tier" - which is what the
feature request reports.

Terraform is unaffected: logzio_terraform_client hardcodes
`json:"snapSearchRetentionDays"`, so `snap_search_retention_days` on
logzio_subaccount has always worked. Only the raw API path was affected.

Renames all four occurrences: the properties on TimeBasedAccountUpdateRequest,
DetailedTimeBasedAccount and TimeBasedAccount, plus a standalone definition of
the same name that is not referenced by anything.

Only the five pages that embed the affected schemas are regenerated. A full
`gen-api-docs` run rewrites the base64 api blob in all 198 pages with no content
change, so the rest are left untouched.
@netlify

netlify Bot commented Sep 10, 2026

Copy link
Copy Markdown

Deploy Preview for famous-rabanadas-f56237 ready!

Name Link
🔨 Latest commit 7d293ae
🔍 Latest deploy log https://app.netlify.com/projects/famous-rabanadas-f56237/deploys/6aa28d803d5d530008e1618e
😎 Deploy Preview https://deploy-preview-73--famous-rabanadas-f56237.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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