-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration of document expiry #301
Labels
enhancement
New/updated feature
Comments
OldSneerJaw
changed the title
Configuration for documente expiry
Configuration for document expiry
Apr 15, 2018
OldSneerJaw
changed the title
Configuration for document expiry
Configuration of document expiry
Apr 16, 2018
OldSneerJaw
added a commit
that referenced
this issue
Apr 21, 2018
A document definition may now specify when documents of that type will expire, either as an absolute Unix timestamp, ISO 8601 date string, Date object or as a relative time offset in seconds. Includes a new custom action that occurs immediately after document expiry is set: `onExpiryAssignmentSucceeded`.
OldSneerJaw
added a commit
that referenced
this issue
Apr 21, 2018
OldSneerJaw
added a commit
that referenced
this issue
Apr 21, 2018
OldSneerJaw
added a commit
that referenced
this issue
Apr 21, 2018
The date string format for the Sync Gateway `expiry` function does not consider any element optional. The document definition schema validator now respects the expected format.
OldSneerJaw
added a commit
that referenced
this issue
Apr 22, 2018
The Sync Gateway issue is described in detail here: couchbase/sync_gateway#3489
OldSneerJaw
added a commit
that referenced
this issue
Apr 22, 2018
OldSneerJaw
added a commit
that referenced
this issue
Apr 22, 2018
OldSneerJaw
added a commit
that referenced
this issue
Apr 22, 2018
OldSneerJaw
added a commit
that referenced
this issue
Apr 22, 2018
OldSneerJaw
added a commit
that referenced
this issue
Apr 22, 2018
The bug in question was first reported as issue [#3452](couchbase/sync_gateway#3452). The duplicate issue ([#3489](couchbase/sync_gateway#3489)) has since been closed.
Addressed by #304 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature Request
Description
Sync Gateway 2.0 introduced a new function to the sync function API:
expiry
. This function sets either the absolute date/time at which the document will expire or the relative number of seconds until it expires. Provide a declarative configuration option to specify when documents of a specific type should expire.See Expiration Overview for more information on how document expiration behaves in Couchbase Server.
Examples
Specified as an absolute ISO 8601 date string:
Specified as an absolute Unix time (i.e. number of seconds since 1970-01-01 at midnight UTC):
Specified as the relative number of seconds after the most recent add or replace operation (e.g. 14 days):
Specified as an absolute JavaScript
Date
object:The text was updated successfully, but these errors were encountered: