-
-
Notifications
You must be signed in to change notification settings - Fork 255
feat: vector buckets #774
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
feat: vector buckets #774
Conversation
⛔ Snyk checks have failed. 8 issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
01797cc to
a2715e7
Compare
Pull Request Test Coverage Report for Build 19099986462Details
💛 - Coveralls |
a2715e7 to
6bf5f59
Compare
6bf5f59 to
f2ae953
Compare
2059ee5 to
2e888a1
Compare
b7a491e to
528b466
Compare
528b466 to
cf989fd
Compare
cf989fd to
a879634
Compare
| }, | ||
| // allow arbitrary additional args specific to the requirement | ||
| ref: { type: 'string' }, | ||
| // 'snapshot-id': { type: 'number', format: 'int64', bigint: true }, |
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.
Will this be added/uncommented in the future? Otherwise remove this line.
| // format: 'int64', | ||
| // bigint: true, | ||
| // nullable: true, | ||
| // }, |
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.
remove?
| try { | ||
| if (typeof payload === 'string') return done(null, JSONBigint.parse(payload)) | ||
| if (Buffer.isBuffer(payload)) return done(null, JSONBigint.parse(payload.toString('utf8'))) | ||
| if (payload && typeof (payload as any).on === 'function') { |
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.
This check is kinda icky... maybe replace with a type guard
function isReadableStream(obj: unknown): obj is NodeJS.ReadableStream {
return (
obj != null &&
typeof obj === 'object' &&
typeof (obj as NodeJS.ReadableStream).on === 'function'
)
}Then you can do this and remove the as NodeJS.ReadableStream
if (isReadableStream(payload)) {
// ...
}| getConfig() | ||
|
|
||
| // Sharding for special buckets (vectors, analytics) | ||
| const sharding = new ShardCatalog(new KnexShardStoreFactory(multitenantKnex)) |
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.
should this be inside the isMultitenant if block?
| // headers: response.request.headers, | ||
| // }) | ||
| return response.data | ||
| }) |
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.
revert debug code
| // req.data ? ` \\\n -d '${JSON.stringify(req.data)}'` : '' | ||
| // } | ||
| // `.trim() | ||
| // ) |
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.
remove debug code
What kind of change does this PR introduce?
Feature
What is the new behaviour?
Implement Vector Bucket data source
Supported Operations:
Authentication mechanisms:
Sharding
Analytics Buckets