You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
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)
```