-
Notifications
You must be signed in to change notification settings - Fork 7
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
Google FS API New #234
base: main
Are you sure you want to change the base?
Google FS API New #234
Conversation
… API modified: apps/web/app/api/debug/route.ts modified: connectors/connector-google/server.ts modified: kits/sdk/openapi.json modified: kits/sdk/openapi.types.d.ts modified: packages/api/createRouterHandler.ts modified: packages/api/package.json modified: packages/api/proxyHandler.ts modified: packages/engine-backend/context.ts modified: packages/trpc/package.json modified: pnpm-lock.yaml modified: unified/unified-file-storage/adapters/index.ts modified: unified/unified-file-storage/adapters/sharepoint-adapter/index.ts modified: unified/unified-file-storage/adapters/sharepoint-adapter/mappers.ts new file: unified/unified-file-storage/generate.cjs modified: unified/unified-file-storage/package.json modified: unified/unified-file-storage/router.spec.ts modified: unified/unified-file-storage/router.ts modified: unified/unified-file-storage/unifiedModels.ts
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
❌ Changes requested. Reviewed everything up to bb215af in 2 minutes and 30 seconds
More details
- Looked at
2125
lines of code in23
files - Skipped
1
files when reviewing. - Skipped posting
4
drafted comments based on config settings.
1. unified/unified-file-storage/adapters/google-adapter/index.ts:91
- Draft comment:
ThelistDriveGroups
function is returning an empty list of items. It should map the response data to the unified DriveGroup model using the mappers, similar to how it's done inlistFiles
. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable:
The fact that listDrives also returns an empty list suggests this may be intentional behavior. Without seeing the requirements or understanding the Google Drive API capabilities around drive groups, I can't be certain if this is a bug or intended behavior. The comment makes assumptions about how it should work without clear evidence.
I could be wrong about the intentionality - maybe both functions are incorrectly implemented. Also, the similarity to listDrives might not be relevant if they serve different purposes.
While both functions could be wrong, without clear requirements or API documentation showing that drive groups should exist and be mappable, keeping a speculative comment would violate the rule about needing strong evidence.
Delete the comment since we don't have strong evidence that returning an empty list is incorrect behavior for drive groups.
2. unified/unified-file-storage/adapters/sharepoint-adapter/index.ts:284
- Draft comment:
ThelistFiles
function throws an error ifinput.cursor
is provided without adrive_id
. Consider allowing pagination without adrive_id
. - Reason this comment was not posted:
Confidence changes required:50%
ThelistFiles
function in the SharePoint adapter has a potential issue with pagination. It throws an error ifinput.cursor
is provided without adrive_id
, which might not be necessary. Consider allowing pagination without adrive_id
.
3. unified/unified-file-storage/adapters/sharepoint-adapter/index.ts:125
- Draft comment:
ThedownloadFileById
function does not handle the case wheredownloadResponse.body
is null. Ensure to handle this case to avoid unexpected behavior. - Reason this comment was not posted:
Comment did not seem useful.
4. unified/unified-file-storage/adapters/google-adapter/index.ts:70
- Draft comment:
ThedownloadFileById
function does not handle the case whereres.response.body
is null. Ensure to handle this case to avoid unexpected behavior. - Reason this comment was not posted:
Comment did not seem useful.
Workflow ID: wflow_7auvKDXx0m7B6Vjq
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
throw new TRPCError({code: 'NOT_FOUND', message: 'No drives found'}) | ||
} | ||
|
||
return { |
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.
The listDrives
function is returning an empty list of items. It should map the response data to the unified Drive model using the mappers, similar to how it's done in listFiles
.
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 high level, left some non blocking comments though.
@@ -147,3 +148,11 @@ jobs: | |||
git fetch origin main | |||
git checkout main | |||
git push origin main:production -f | |||
- name: Wait for 5 minutes for any remaining Vercel Main Branch Deployment that's in flight |
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.
Our deployment is not guaranteed to take 5 mins. Could be longer sometimes
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.
ack
@@ -1,123 +1,8 @@ | |||
// import {clerkClient} from '@clerk/nextjs/server' |
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.
Why is this related?
@@ -6,7 +6,8 @@ | |||
"dependencies": { | |||
"@openint/cdk": "workspace:*", | |||
"@openint/util": "workspace:*", | |||
"@opensdks/runtime": "^0.0.19" | |||
"@opensdks/runtime": "^0.0.19", | |||
"@opensdks/sdk-google": "*" |
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.
hmm we should probably version this at least with ^...
Important
Introduces Google File Storage API integration with listing, downloading, and exporting capabilities, enhances SharePoint adapter, and adds comprehensive tests.
googleAdapter
ingoogle-adapter/index.ts
for listing, downloading, and exporting files.downloadFileById
for Google Drive ingoogle-adapter/index.ts
.google-adapter/mapper.ts
.sharepoint-adapter/index.ts
to improve file retrieval and downloading.downloadFileById
for SharePoint insharepoint-adapter/index.ts
.sharepoint-adapter/mappers.ts
.fileStorageRouter
inrouter.ts
to include new endpoints for Google and SharePoint.createRouterHandler.ts
to handle new API routes.proxyHandler.ts
to support new proxy logic.router.spec.ts
for Google and SharePoint functionalities.package.json
files for new SDKs and tools.This description was created by
for bb215af. It will automatically update as commits are pushed.