Repository navigation
Refresh expiration - #2733
Refresh expiration#2733
Conversation
|
Looks good. Please just remove the |
|
@LielNagar (Java pages):
@M4xymm (Node.js & PHP pages):
|
|
@poissoncorp thanks, leftovers removed, label added |
| Set the `@expires` property to a `java.util.Date` value (e.g., `new Date(System.currentTimeMillis() + 60 * 60 * 1000)`). | ||
| The client sends a `Date` value in UTC with a `Z` suffix, which marks the time as UTC, so the server reads the intended time | ||
| correctly. | ||
| e.g., `"@expires": "2026-12-01T08:00:00.000Z"` |
There was a problem hiding this comment.
contradicts with earlier format (line 63). The correct format in Java should be 7 fractional digits
There was a problem hiding this comment.
done (on both the document-refresh and document-expiration Java pages)
| class ExpirationConfiguration | ||
| { | ||
| boolean disabled | ||
| Long deleteFrequencyInSec | ||
| } |
There was a problem hiding this comment.
done (changed all class blocks so classes are shown as declared by the client)
| Set the `@refresh` property to a `java.util.Date` value (e.g., `new Date(System.currentTimeMillis() + 60 * 60 * 1000)`). | ||
| The client sends a `Date` value in UTC with a `Z` suffix, which marks the time as UTC, so the server reads the intended time | ||
| correctly. | ||
| e.g., `"@refresh": "2026-12-01T08:00:00.000Z"` |
|
|
||
| | Return value | | | ||
| |--------------|-| | ||
| | `IMetadataDictionary` | The entity's metadata.<br />If the session does not track the entity, the method throws an exception. | |
There was a problem hiding this comment.
throws:
IllegalArgumentException - for a null instance/untracked entity.
IllegalStateException - when entity has no id
also for versioned files.
There was a problem hiding this comment.
done (in 6.2-7.2)
added NonUniqueObjectException as well, thrown when the session tracks a different entity with the same document ID.
…and `Document Expiration` client API and Studio pages (7.2) to /documents.
… its Java, Python, PHP, and Node.js versions.
…enshots, added license limit, defaults, processing order, document-view refresh scheduling.
…ke its images (7.2)
…tadata Python version and update the page's texts and layout (6.2-7.2)
…resh pages after rebasing on main
2d0963a to
2bddfca
Compare
…s and getMetadataFor exceptions per review
| * **Document expires via the expiration feature**: | ||
| * Create a document using a cluster-wide session (an associated atomic guard is created). | ||
| * Add the `@expires` metadata property the document, as described in [Document expiration](../../studio/database/settings/document-expiration.mdx). | ||
| * Add the `@expires` metadata property the document, as described in [Document expiration](../../documents/document-expiration/document-expiration-view.mdx). |
There was a problem hiding this comment.
This sentence is about adding @expires from code, so I think it should point to the client API page rather than the Studio view, e.g. ../../documents/document-expiration/client-api.mdx#scheduling-a-document-s-expiration.
Also small typo carried over: "metadata property the document" -> "metadata property to the document".
| * **Document expires via the expiration feature**: | ||
| * Create a document using a cluster-wide session (an associated atomic guard is created). | ||
| * Add the `@expires` metadata property the document, as described in [Document expiration](../../studio/database/settings/document-expiration.mdx). | ||
| * Add the `@expires` metadata property the document, as described in [Document expiration](../../documents/document-expiration/document-expiration-view.mdx). |
There was a problem hiding this comment.
Same as in the PHP page: link to client-api.mdx#scheduling-a-document-s-expiration instead of the Studio view, and "property the document" -> "property to the document".
| * **Document expires via the expiration feature**: | ||
| * Create a document using a cluster-wide session (an associated atomic guard is created). | ||
| * Add the `@expires` metadata property the document, as described in [Document expiration](../../studio/database/settings/document-expiration.mdx). | ||
| * Add the `@expires` metadata property the document, as described in [Document expiration](../../documents/document-expiration/document-expiration-view.mdx). |
| import Admonition from '@theme/Admonition'; | ||
| import Tabs from '@theme/Tabs'; | ||
| import TabItem from '@theme/TabItem'; | ||
| import CodeBlock from '@theme/CodeBlock'; |
There was a problem hiding this comment.
CodeBlock isn't used anywhere in this file, can be removed.
There was a problem hiding this comment.
removed unused imports
| import Admonition from '@theme/Admonition'; | ||
| import Tabs from '@theme/Tabs'; | ||
| import TabItem from '@theme/TabItem'; | ||
| import CodeBlock from '@theme/CodeBlock'; |
There was a problem hiding this comment.
Same here, unused CodeBlock import.
|
|
||
| * In the feature's first run after a document's expiration time, the document is deleted. | ||
| * The document may be deleted in a later run if the number of documents due for deletion exceeds the maximum set for | ||
| a single run using the Studio option |
There was a problem hiding this comment.
FYI: maxItemsToProcess was added to ExpirationConfiguration / RefreshConfiguration in the Node client on v7.2, it'll ship in 7.2.9 (7.2.8 doesn't have it). So pointing to the Studio option is right for now, but once 7.2.9 is out we can document it like in C#. Same applies to the refresh page. Fine to leave for a follow-up.
There was a problem hiding this comment.
opened RDoc-4186, will apply it when the new client is released
Issue link
RDoc-4134 /documents/document-refresh/client-api (Refresh API page) - move, update, add languages
RDoc-4160 /documents/document-refresh/document-refresh-view (Refresh Studio page) - move, update
RDoc-4159 /documents/document-expiration/client-api (Expiration API page) - move, update, add languages
RDoc-4161 /documents/document-expiration/document-expiration-view (Expiration Studio page) - move, update
RDoc-4169 Refresh + Expiration - explain that reverting to a revision removes metadata property
RDoc-4135 add /client-api/session/how-to/get-and-modify-entity-metadata Python page
RDoc-4184 atomic-guards Node.js page: remove duplicate bullet, restore missing bullet
Type of change
/templatesor readme)Changes in docs URLs
/scripts/redirects.jsonfile, setDocuments MovedPR label)Changes in UX/UI