Added new function MigrateAttachmentMetadata that will move any defined attachments from sync data into the new global sync xattr and remove it from sync data
Two new tests that test on demand import moving the attachment metadata and the import feed moving it
Test for import feed tests a doc that needs importing moving the metadata and a doc that is deemed as not needing to be imported migrating metadata
Define a new function for test purposes that moved global sync data attachment metadata to sync data attachment metadata
CBG-4207
MigrateAttachmentMetadata
that will move any defined attachments from sync data into the new global sync xattr and remove it from sync dataPre-review checklist
fmt.Print
,log.Print
, ...)base.UD(docID)
,base.MD(dbName)
)docs/api
Integration Tests
GSI=true,xattrs=true
https://jenkins.sgwdev.com/job/SyncGateway-Integration/2691/