Skip to content

Release v2.13.0

Latest

Choose a tag to compare

@github-actions github-actions released this 17 Jun 16:32
0eb4615
feat: add synchronizer API (#217)

Wraps the synchronizer API, adds examples, fixes some linter complaints
along the way.

# Test

```
$ poetry run python -m compass_sdk_examples.synchronizer --index-name hello list
  two: origin=onedrive auth=authenticated
  mysynchronizer: origin=onedrive auth=authenticated
  filesystemchronizer: origin=filesystem auth=not_authenticated

$ poetry run python -m compass_sdk_examples.synchronizer --index-name hello --name sdktest create --data-origin-id sharepoint 
Created synchronizer 'sdktest' (auth_status=not_authenticated).
Next: run 'auth-url' to authorize, then 'sync' to start syncing.

$ poetry run python -m compass_sdk_examples.synchronizer --index-name hello --name sdktest auth-url
Open this URL in a browser to authorize the data origin:
<REDACTED>

$ poetry run python -m compass_sdk_examples.synchronizer --index-name hello --name sdktest sync
Sync job started.

$ poetry run python -m compass_sdk_examples.synchronizer --index-name hello --name sdktest status
Progress: 0/78 (state=ACTIVE)

$ poetry run python -m compass_sdk_examples.synchronizer --index-name hello --name sdktest status
Progress: 7/1631 (state=ACTIVE)
```