Repository navigation
Conversation
…), retake its Studio screenshot (7.2) Fix wrong claims, sample errors and broken anchors in the 6.2-7.0 atomic guards pages
|
@LielNagar |
M4xymm
left a comment
There was a problem hiding this comment.
Looks good, one PHP behavior fix and a few small things inline.
| * **If an atomic guard exists**, | ||
| the client constructs a change vector for the document using the atomic guard’s Raft index, and the document will be saved with this change vector. |
There was a problem hiding this comment.
The PHP client doesn't have this logic. It never looks up rvn-atomic/<id> when a load comes back empty, so it can't build a change vector from the guard. That part exists in the Node and C# clients only. As written, PHP users who load before storing will still fail to re-create a document that was deleted outside a cluster-wide session.
I'd drop the "If an atomic guard exists" bullet from the PHP page, or replace it with a note that the PHP client doesn't handle this case yet. The same goes for the "Best practice when storing a document" panel at L223-235: "load before store" doesn't help PHP here.
Same text in:
version-7.1/.../_atomic-guards-php.mdxL217-228 and L282-285version-7.0andversion-6.2.../_atomic-guards-php.mdxL207-218 and L272-275
There was a problem hiding this comment.
done (also true for Python, so corrected for both languages, 6.2 - 7.2)
| * RavenDB checks whether the Raft index of the atomic guard associated with the document matches the version tracked by the current session. | ||
| If another session has already updated the document (and incremented the atomic guard’s Raft index), the save will fail with a `ClusterTransactionConcurrencyException`. | ||
|
|
||
| * **If no document is found**, RavenDB will check whether a matching atomic guard exists (as in the case when the document was deleted outside of a cluster-wide session): | ||
| * **If no document is found**: | ||
| RavenDB will check whether a matching atomic guard exists (as in the case when the document was deleted outside of a cluster-wide session). | ||
| * **If an atomic guard exists**, | ||
| the client constructs a change vector for the document using the atomic guard’s Raft index, and the document will be saved with this change vector. | ||
| * **If no atomic guard exists**, |
There was a problem hiding this comment.
The nested bullets mix 2-space and 4-space indents. Both render fine, but 2 spaces would match docs/7.1. Same in 7.0 and in both PHP files.
| </Panel> | ||
|
|
||
| ## When are atomic guards removed | ||
| <Panel heading="Atomic guard removal"> |
There was a problem hiding this comment.
fyi: the rename changes the anchor from #when-are-atomic-guards-removed to #atomic-guard-removal. Nothing in the repo links to the old anchor, but links from outside the docs will break. Fine if that's intended.
There was a problem hiding this comment.
yeah, in this case I think we can take the risk
|
btw @reebhub the link to issue is incomplete in PR description |
|
@M4xymm thx, fixed |
Issue link
RDoc-4185 Fix the atomic guards page and update its layout
RDoc-4189 Add an atomic guards page Java version
Type of change
/templatesor readme)Changes in docs URLs
/scripts/redirects.jsonfile, setDocuments MovedPR label)Changes in UX/UI