-
Notifications
You must be signed in to change notification settings - Fork 138
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
CBG-4206: read/write attachments to global sync xattr #7107
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a question about the new test
hi := globalXattr.GlobalAttachments["hi.txt"].(map[string]interface{}) | ||
|
||
assert.Len(t, globalXattr.GlobalAttachments, 1) | ||
assert.Equal(t, float64(2), hi["length"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth extending this test to include a document update as well, to ensure we move the persisted xattrs over as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good shout! Extended this test but also added new test for update to doc with attachment meta in sync data.
CBG-4206
Pre-review checklist
fmt.Print
,log.Print
, ...)base.UD(docID)
,base.MD(dbName)
)docs/api
Dependencies (if applicable)
Integration Tests
GSI=true,xattrs=true
https://jenkins.sgwdev.com/job/SyncGateway-Integration/2675/GSI=true,xattrs=true
https://jenkins.sgwdev.com/job/SyncGateway-Integration/2683/