Skip to content

Google Drive: Download File action bug fix #17055

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

Merged
merged 6 commits into from
Jun 12, 2025
Merged

Google Drive: Download File action bug fix #17055

merged 6 commits into from
Jun 12, 2025

Conversation

michelle0927
Copy link
Collaborator

@michelle0927 michelle0927 commented Jun 10, 2025

Resolves #17019

Summary by CodeRabbit

  • New Features

    • Expanded the list of available export formats for Google Drive files, including OpenDocument formats, MP4, and Markdown options.
  • Chores

    • Updated action and package version numbers to reflect recent changes.

Copy link

vercel bot commented Jun 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 12, 2025 2:45pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
pipedream-docs ⬜️ Ignored (Inspect) Jun 12, 2025 2:45pm
pipedream-docs-redirect-do-not-edit ⬜️ Ignored (Inspect) Jun 12, 2025 2:45pm

Copy link
Contributor

coderabbitai bot commented Jun 10, 2025

Walkthrough

The changes update the Google Drive download file action to fix the export format options mapping, ensuring all options are returned as objects with value and label properties. Additional export formats are added, and version numbers for both the action and package are incremented. No other logic is modified.

Changes

File(s) Change Summary
components/google_drive/actions/common/google-workspace-export-formats.mjs Added new export format entries (OpenDocument, MP4, Markdown) to the export formats array.
components/google_drive/actions/download-file/download-file.mjs Fixed export format options mapping to always return objects; updated import path; bumped action version.
components/google_drive/package.json Bumped package version from 0.10.0 to 0.10.1.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant DownloadFileAction
    participant ExportFormats

    User->>DownloadFileAction: Selects Conversion Format
    DownloadFileAction->>ExportFormats: Requests available formats
    ExportFormats-->>DownloadFileAction: Returns array of {value, label} objects
    DownloadFileAction-->>User: Presents consistent format options
Loading

Assessment against linked issues

Objective Addressed Explanation
Ensure Conversion Format prop returns consistent array of {value, label} objects (#17019)
Fix error when loading more options for Conversion Format prop in Download File action (#17019)

Assessment against linked issues: Out-of-scope changes

No out-of-scope changes found.

Poem

A bunny hopped through Google Drive,
With export formats newly alive.
No more errors, just a list so neat,
With labels and values, a bug’s defeat!
Version numbers rise, the code’s in style,
This rabbit’s work will make you smile! 🐇✨


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 95b4817 and 8a2727e.

📒 Files selected for processing (1)
  • components/google_drive/package.json (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • components/google_drive/package.json
⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: pnpm publish
  • GitHub Check: Lint Code Base
  • GitHub Check: Publish TypeScript components
  • GitHub Check: Verify TypeScript components

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@michelle0927 michelle0927 marked this pull request as ready for review June 10, 2025 18:05
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
components/google_drive/actions/download-file/download-file.mjs (1)

82-88: Ensure consistent object return for MIME type options
Switching the fallback to always return { value, label } objects solves the bifurcation between strings and objects. Consider enhancing the fallback label—for example, derive a human-friendly name from the MIME type string—so end users see clearer option labels.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0359787 and 46c3f77.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (3)
  • components/google_drive/actions/download-file/download-file.mjs (2 hunks)
  • components/google_drive/actions/google-workspace-export-formats.mjs (2 hunks)
  • components/google_drive/package.json (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: pnpm publish
  • GitHub Check: Lint Code Base
  • GitHub Check: Publish TypeScript components
  • GitHub Check: Verify TypeScript components
🔇 Additional comments (3)
components/google_drive/actions/google-workspace-export-formats.mjs (1)

90-97: Add Markdown Export Formats
You’ve correctly expanded support by adding both text/markdown and its deprecated variant with value/label pairs. This aligns with the export-formats list pattern and ensures downstream components can handle Markdown consistently.

components/google_drive/actions/download-file/download-file.mjs (1)

21-21: Increment action version to reflect bug fix
Updating from 0.1.9 to 0.1.10 properly signals the downstream change in export-format handling.

components/google_drive/package.json (1)

3-3: Package version bump to 0.9.3
Bumping the component version aligns with the export-formats and Download File action updates.

lcaresia
lcaresia previously approved these changes Jun 11, 2025
@michelle0927
Copy link
Collaborator Author

/approve

@michelle0927 michelle0927 merged commit e15ccad into master Jun 12, 2025
11 checks passed
@michelle0927 michelle0927 deleted the issue-17019 branch June 12, 2025 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Google Drive: Download File action: Conversion Format prop throws error
2 participants