Skip to content

docs: support multiple lifecycle and expiration rules per bucket#449

Open
garrensmith wants to merge 2 commits into
mainfrom
docs/multiple-lifecycle-rules
Open

docs: support multiple lifecycle and expiration rules per bucket#449
garrensmith wants to merge 2 commits into
mainfrom
docs/multiple-lifecycle-rules

Conversation

@garrensmith
Copy link
Copy Markdown
Contributor

@garrensmith garrensmith commented Apr 29, 2026

Summary

  • Updates Object Lifecycle Rules and Object Expiration docs to reflect tigrisdata/tigris-os#4229, which raises the per-bucket rule limit from 1 to 10.
  • Documents the new per-rule ID (max 36 chars; desc and *-desc reserved) and Filter.Prefix for scoping a rule to a subset of objects.
  • Adds multi-rule examples: per-prefix transitions (logs/STANDARD_IA, archive/GLACIER) and per-prefix expirations (tmp/ after 1 day, logs/ after 30 days).

Test plan

  • npm run dev and visually inspect /docs/buckets/object-lifecycle-rules and /docs/buckets/objects-expiration
  • Confirm cross-links between the two pages render
  • npm run lint

Note

Cursor Bugbot is generating a summary for commit 09387b2. Configure here.

Update Object Lifecycle Rules and Object Expiration docs to reflect
tigrisdata/tigris-os#4229, which raises the per-bucket rule limit from 1
to 10 and adds per-rule IDs and prefix filters. Adds multi-rule examples
showing different transitions and expirations per prefix.

Assisted-by: Claude Opus 4.7 via Claude Code
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs-redirect Ready Ready Preview, Comment Apr 29, 2026 5:34am
tigris-os-docs Ready Ready Preview, Comment Apr 29, 2026 5:34am

Request Review

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Apr 29, 2026

Greptile Summary

This PR updates both Object Lifecycle Rules and Object Expiration docs to reflect support for up to 10 rules per bucket, documents the new ID and Filter.Prefix fields, and adds clear multi-rule examples. The new content is accurate and consistent across both pages. Two pre-existing P1 issues remain open from earlier review rounds: the "end of the year 2025" section in each file still has a stale heading, prose, and JSON Date value (2025-12-31T00:00:00Z) that have not been updated, and the reserved desc / *-desc ID-prefix constraint mentioned in the PR description is still absent from both "Things to note" sections.

Confidence Score: 4/5

Safe to merge with caution — no new bugs introduced, but two pre-existing P1 issues (stale 2025 dates on both pages) remain unresolved from prior review rounds.

All newly added content (10-rule limit, ID/Filter.Prefix docs, multi-rule examples) is correct and well-structured. The score ceiling is 4 because of the unresolved P1 stale-date findings from previous reviews that are still present in both files.

Both files still contain the "end of the year 2025" date-based sections whose heading, prose, and JSON Date values all read 2025 — now well in the past.

Important Files Changed

Filename Overview
docs/buckets/object-lifecycle-rules.md Updates lifecycle rules from 1 to 10 per bucket; adds ID/Filter.Prefix documentation and multi-rule examples; stale "end of the year 2025" heading, prose, and JSON date remain unaddressed (flagged in prior review rounds).
docs/buckets/objects-expiration.md Mirrors lifecycle-rules changes for expiration context; adds per-prefix multi-rule example; "end of the year 2025" section (heading, prose, and JSON date) remains in the past (flagged in prior review rounds).

Reviews (2): Last reviewed commit: "docs: fix prose date and apply prettier ..." | Re-trigger Greptile

Comment on lines +172 to +173
- Each rule may include an `ID` (up to 36 characters). If you omit `ID`, Tigris
generates one.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Reserved ID prefixes not documented

The PR description notes that desc and *-desc are reserved ID prefixes, but this constraint isn't captured anywhere in the documentation. Users who accidentally use a reserved prefix will receive an unexpected error. Consider adding a note here.

Comment on lines +132 to +133
- Each rule may include an `ID` (up to 36 characters). If you omit `ID`, Tigris
generates one.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Reserved ID prefixes not documented

Same omission as in object-lifecycle-rules.md — the reserved desc and *-desc ID prefixes mentioned in the PR description are absent from this page's "Things to note" section as well.

- Fix "end of year" example prose in object-lifecycle-rules to match the
  2025 heading and JSON Date.
- Run prettier to satisfy lint:format check.

Assisted-by: Claude Opus 4.7 via Claude Code
@garrensmith
Copy link
Copy Markdown
Contributor Author

@greptileai review

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