- 
                Notifications
    You must be signed in to change notification settings 
- Fork 5.5k
[BUG] Timeout listing folders on Microsoft Excel Account #14068
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
[BUG] Timeout listing folders on Microsoft Excel Account #14068
Conversation
| The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
 | 
| @jcortes is attempting to deploy a commit to the Pipedreamers Team on Vercel. A member of the Team first needs to authorize it. | 
| WalkthroughThe pull request includes updates to several components of the Microsoft Excel integration. Key changes involve incrementing version numbers for multiple actions and the restructuring of the  Changes
 Assessment against linked issues
 Poem
 📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
 📒 Files selected for processing (5)
 🚧 Files skipped from review as they are similar to previous changes (5)
 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit: 
 Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
 Other keywords and placeholders
 CodeRabbit Configuration File ( | 
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.
Actionable comments posted: 2
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
- pnpm-lock.yamlis excluded by- !**/pnpm-lock.yaml
Files selected for processing (5)
- components/microsoft_excel/actions/add-a-worksheet-tablerow/add-a-worksheet-tablerow.mjs (1 hunks)
- components/microsoft_excel/actions/update-worksheet-tablerow/update-worksheet-tablerow.mjs (1 hunks)
- components/microsoft_excel/microsoft_excel.app.mjs (1 hunks)
- components/microsoft_excel/package.json (2 hunks)
- components/microsoft_excel/sources/new-item-updated/new-item-updated.mjs (1 hunks)
Files skipped from review due to trivial changes (3)
- components/microsoft_excel/actions/add-a-worksheet-tablerow/add-a-worksheet-tablerow.mjs
- components/microsoft_excel/actions/update-worksheet-tablerow/update-worksheet-tablerow.mjs
- components/microsoft_excel/sources/new-item-updated/new-item-updated.mjs
Additional comments not posted (2)
components/microsoft_excel/package.json (2)
3-3: Version update aligns with bug fix.The version bump from 0.1.1 to 0.1.2 is appropriate for the bug fix described in the PR objectives. This minor version increment correctly reflects the nature of the changes being made to address the timeout issue when listing folder IDs in Microsoft Excel accounts.
16-16: Verify impact of major @pipedream/platform update.The @pipedream/platform dependency has been updated from ^1.5.1 to ^3.0.1, which is a significant version jump. While this update might be necessary to address the timeout issue, it's important to consider the following:
- Are there any breaking changes introduced in this major version update?
- Have all necessary adjustments been made in the codebase to accommodate potential breaking changes?
- Has this update been tested thoroughly to ensure it resolves the timeout issue without introducing new problems?
Please provide more information about why this major update was necessary and confirm that it has been properly tested with the Microsoft Excel component.
feeaaa4    to
    6d7b258      
    Compare
  
    | /approve | 
6d7b258    to
    82a25a8      
    Compare
  
    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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
components/microsoft_excel/microsoft_excel.app.mjs (1)
174-248: LGTM: ImprovedlistFolderOptionsmethod addresses PR objectivesThe new
listFolderOptionsmethod is a significant improvement that directly addresses the timeout issue mentioned in the PR objectives. Key improvements include:
- Use of batch requests for efficient retrieval of folder information.
- Stack-based approach for iterative traversal, avoiding potential stack overflow issues with deep folder structures.
- Proper error handling within a try-catch block.
These changes should resolve the timeout problems when listing folder IDs, improving the user experience when using the "Add A Worksheet Tablerow" action.
Consider enhancing the error handling by rethrowing the error after logging it:
} catch (error) { console.error("Error listing folders:", error); + throw error; }This would allow calling functions to handle the error appropriately, maintaining consistency with error handling practices.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
🔇 Files ignored due to path filters (1)
- pnpm-lock.yamlis excluded by- !**/pnpm-lock.yaml
📒 Files selected for processing (5)
- components/microsoft_excel/actions/add-a-worksheet-tablerow/add-a-worksheet-tablerow.mjs (1 hunks)
- components/microsoft_excel/actions/update-worksheet-tablerow/update-worksheet-tablerow.mjs (1 hunks)
- components/microsoft_excel/microsoft_excel.app.mjs (2 hunks)
- components/microsoft_excel/package.json (2 hunks)
- components/microsoft_excel/sources/new-item-updated/new-item-updated.mjs (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (4)
- components/microsoft_excel/actions/add-a-worksheet-tablerow/add-a-worksheet-tablerow.mjs
- components/microsoft_excel/actions/update-worksheet-tablerow/update-worksheet-tablerow.mjs
- components/microsoft_excel/package.json
- components/microsoft_excel/sources/new-item-updated/new-item-updated.mjs
🔇 Additional comments not posted (4)
components/microsoft_excel/microsoft_excel.app.mjs (4)
12-12: LGTM: Change aligns with PR objectivesThe replacement of
listFolderswithlistFolderOptionsis in line with the PR's goal of resolving the timeout issue when listing folder IDs. This change should improve the efficiency of folder listing operations.
167-173: LGTM: Addition ofbatchmethod enhances efficiencyThe new
batchmethod is a key component in improving the efficiency of folder listing operations. By allowing batch processing of requests, it should help mitigate the timeout issues mentioned in the PR objectives.
Line range hint
1-248: LGTM: Removal oflistFoldersmethodThe removal of the
listFoldersmethod, as mentioned in the AI summary, is appropriate given the implementation of the newlistFolderOptionsmethod. This change is consistent with the PR objectives of resolving the timeout issue.
Line range hint
1-248: Summary: PR successfully addresses timeout issueThis PR effectively resolves the timeout issue when listing folder IDs in a Microsoft Excel account, as outlined in the PR objectives. The implementation of the new
listFolderOptionsmethod, along with the supportingbatchmethod, provides a more efficient approach to folder traversal and listing.Key improvements:
- Batch processing of requests to reduce API calls
- Stack-based iterative traversal to handle deep folder structures
- Improved error handling
These changes should significantly enhance the user experience when using the "Add A Worksheet Tablerow" action in workflows.
82a25a8    to
    c483e92      
    Compare
  
    
WHY
Resolves #13963
Summary by CodeRabbit
New Features
Improvements
listFoldersmethod intolistFolderOptionsfor improved folder retrieval efficiency and error handling.Dependencies
@pipedream/platformto a newer version for better performance and compatibility.