Skip to content

Conversation

@luancazarine
Copy link
Collaborator

@luancazarine luancazarine commented Jun 17, 2025

Resolves #17051.

Summary by CodeRabbit

  • New Features

    • Added actions to retrieve bucket details, list all buckets, retrieve tables in a bucket, and get table details in Keboola.
    • Introduced actions to update bucket display names (and optional color) and update table names.
    • Enhanced Keboola integration with comprehensive API support for managing buckets and tables.
  • Chores

    • Updated package version and added a dependency on @pipedream/platform.

@luancazarine luancazarine added the ai-assisted Content generated by AI, with human refinement and modification label Jun 17, 2025
@vercel
Copy link

vercel bot commented Jun 17, 2025

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

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Ignored (Inspect) Visit Preview Jun 17, 2025 8:19pm
pipedream-docs ⬜️ Ignored (Inspect) Jun 17, 2025 8:19pm
pipedream-docs-redirect-do-not-edit ⬜️ Ignored (Inspect) Jun 17, 2025 8:19pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 17, 2025

Walkthrough

This update introduces a comprehensive Keboola integration with six new action modules for bucket and table management, including listing, retrieving details, and updating names. The Keboola app component is expanded to provide API client methods and dynamic property definitions. Package metadata is updated to reflect new dependencies and versioning.

Changes

File(s) Change Summary
components/keboola/keboola.app.mjs Expanded from stub to full API client: added propDefinitions, API methods for buckets/tables, helpers.
components/keboola/actions/get-bucket-detail/get-bucket-detail.mjs Added new action: get details of a specific bucket.
components/keboola/actions/get-table-detail/get-table-detail.mjs Added new action: get details of a specific table.
components/keboola/actions/retrieve-bucket-tables/retrieve-bucket-tables.mjs Added new action: list all tables in a specific bucket.
components/keboola/actions/retrieve-buckets/retrieve-buckets.mjs Added new action: list all buckets in the project.
components/keboola/actions/update-bucket/update-bucket.mjs Added new action: update a bucket's display name and color.
components/keboola/actions/update-table-name/update-table-name.mjs Added new action: update a table's display name.
components/keboola/package.json Updated version to 0.1.0; added dependency on @pipedream/platform.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Action
    participant KeboolaApp
    participant KeboolaAPI

    User->>Action: Trigger action (e.g., get bucket detail)
    Action->>KeboolaApp: Call method (e.g., getBucketDetails)
    KeboolaApp->>KeboolaAPI: Make HTTP request
    KeboolaAPI-->>KeboolaApp: Return API response
    KeboolaApp-->>Action: Return data
    Action-->>User: Output response
Loading

Assessment against linked issues

Objective Addressed Explanation
Implement "retrieve-buckets" action to list all buckets (#17051)
Implement "get-bucket-detail" action to get bucket details (#17051)
Implement "retrieve-bucket-tables" action to list tables in a bucket (#17051)
Implement "get-table-detail" action to get table details (#17051)
Implement "update-bucket" and "update-table-name" actions for updating names (#17051)

Poem

In the warren of code, new features abound,
Buckets and tables are easily found!
With actions and updates, the integration shines,
Keboola’s secrets revealed in neat lines.
The rabbits rejoice—so much to unveil,
As data hops swiftly down the Keboola trail!
🐇✨

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

components/keboola/actions/get-bucket-detail/get-bucket-detail.mjs

Oops! Something went wrong! :(

ESLint: 8.57.1

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs
at Object.getPackageJSONURL (node:internal/modules/package_json_reader:255:9)
at packageResolve (node:internal/modules/esm/resolve:767:81)
at moduleResolve (node:internal/modules/esm/resolve:853:18)
at defaultResolve (node:internal/modules/esm/resolve:983:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:801:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:725:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:708:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:309:38)
at #link (node:internal/modules/esm/module_job:201:49)

components/keboola/actions/update-bucket/update-bucket.mjs

Oops! Something went wrong! :(

ESLint: 8.57.1

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs
at Object.getPackageJSONURL (node:internal/modules/package_json_reader:255:9)
at packageResolve (node:internal/modules/esm/resolve:767:81)
at moduleResolve (node:internal/modules/esm/resolve:853:18)
at defaultResolve (node:internal/modules/esm/resolve:983:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:801:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:725:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:708:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:309:38)
at #link (node:internal/modules/esm/module_job:201:49)

components/keboola/actions/retrieve-bucket-tables/retrieve-bucket-tables.mjs

Oops! Something went wrong! :(

ESLint: 8.57.1

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs
at Object.getPackageJSONURL (node:internal/modules/package_json_reader:255:9)
at packageResolve (node:internal/modules/esm/resolve:767:81)
at moduleResolve (node:internal/modules/esm/resolve:853:18)
at defaultResolve (node:internal/modules/esm/resolve:983:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:801:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:725:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:708:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:309:38)
at #link (node:internal/modules/esm/module_job:201:49)

  • 4 others
✨ Finishing Touches
  • 📝 Generate Docstrings

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.

Actions
 - Get Bucket Detail
 - Get Table Detail
 - Retrieve Bucket Tables
 - Retrieve Buckets
 - Update Bucket
 - Update Table Name
@luancazarine luancazarine marked this pull request as ready for review June 17, 2025 20:56
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: 6

🧹 Nitpick comments (5)
components/keboola/keboola.app.mjs (1)

6-36: Large option lists may degrade UX – consider pagination or search.

bucketId and tableId option loaders return every item.
For projects with hundreds of buckets / tables the drop-down becomes slow and may exceed Pipedream’s 30-sec option-load window. Consider supporting:

  • sync + search arguments to filter server-side,
  • limit + offset parameters with pagination.

This keeps the UI responsive for large workspaces.

components/keboola/actions/get-table-detail/get-table-detail.mjs (1)

7-9: Bump action version to match component minor release.

The package is now 0.1.0; keeping the action at 0.0.1 is confusing for users tracking changes.

-  version: "0.0.1",
+  version: "0.1.0",
components/keboola/actions/retrieve-buckets/retrieve-buckets.mjs (1)

12-18: Handle potential pagination from the API.

listBuckets returns the first page only; large projects require pagination (offset, limit). Expose optional props or iterate until all pages are fetched so users aren’t surprised by missing buckets.

components/keboola/actions/update-bucket/update-bucket.mjs (1)

42-49: Send color only when provided to avoid clobbering existing value

Passing an empty string will overwrite an existing bucket color. Build the payload conditionally:

-      data: {
-        displayName: this.displayName,
-        color: this.color,
-      },
+      data: {
+        displayName: this.displayName,
+        ...(this.color ? { color: this.color } : {}),
+      },
components/keboola/actions/update-table-name/update-table-name.mjs (1)

50-51: Include the table ID in the summary for better traceability

-    $.export("$summary", `Successfully updated table name to ${this.displayName}`);
+    $.export("$summary", `Successfully updated table ${this.tableId} to name "${this.displayName}"`);
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between feac320 and f05bc08.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (8)
  • components/keboola/actions/get-bucket-detail/get-bucket-detail.mjs (1 hunks)
  • components/keboola/actions/get-table-detail/get-table-detail.mjs (1 hunks)
  • components/keboola/actions/retrieve-bucket-tables/retrieve-bucket-tables.mjs (1 hunks)
  • components/keboola/actions/retrieve-buckets/retrieve-buckets.mjs (1 hunks)
  • components/keboola/actions/update-bucket/update-bucket.mjs (1 hunks)
  • components/keboola/actions/update-table-name/update-table-name.mjs (1 hunks)
  • components/keboola/keboola.app.mjs (1 hunks)
  • components/keboola/package.json (2 hunks)
🔇 Additional comments (4)
components/keboola/keboola.app.mjs (1)

88-98: Confirm correct field name for bucket update payload.

Keboola Storage API expects the JSON field name when renaming a bucket, not displayName (docs § Buckets / Update). Sending the wrong key will result in a 400.

-        data: {
-          displayName,
-        },
+        data: {
+          name: displayName,
+        },

Please cross-check the API spec and adjust accordingly.

components/keboola/actions/retrieve-bucket-tables/retrieve-bucket-tables.mjs (1)

18-24: Same pagination concern as for buckets.

If a bucket contains >100 tables the action will silently return a partial list. Provide pagination support or document the limitation.

components/keboola/actions/get-bucket-detail/get-bucket-detail.mjs (1)

1-27: LGTM – action is concise and follows Pipedream conventions
Imports, prop-definitions, API call, and summary export all look correct.

components/keboola/actions/update-table-name/update-table-name.mjs (1)

33-40: I’ll verify how additionalProps is implemented in the “Update Bucket” action to confirm the non-mutating return pattern.

#!/bin/bash
set -e

# Locate the Update Bucket action file
echo "Searching for the Update Bucket action file..."
BUCKET_FILE=$(rg -l "class UpdateBucket" -g "*.mjs")

if [ -z "$BUCKET_FILE" ]; then
  echo "❌ Unable to find Update Bucket action."
  exit 1
fi

echo "Found: $BUCKET_FILE"
echo

# Show the additionalProps implementation
echo "=== additionalProps in Update Bucket ==="
rg -n "async additionalProps" -A5 "$BUCKET_FILE"

Copy link
Collaborator

@michelle0927 michelle0927 left a comment

Choose a reason for hiding this comment

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

LGTM!

@luancazarine luancazarine merged commit b80bd24 into master Jun 18, 2025
11 checks passed
@luancazarine luancazarine deleted the issue-17051 branch June 18, 2025 11:17
joy-chanboop pushed a commit to joy-chanboop/pipedream that referenced this pull request Jun 21, 2025
* keboola init

* [Components] keboola PipedreamHQ#17051
Actions
 - Get Bucket Detail
 - Get Table Detail
 - Retrieve Bucket Tables
 - Retrieve Buckets
 - Update Bucket
 - Update Table Name

* pnpm update

* pnpm update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-assisted Content generated by AI, with human refinement and modification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Components] keboola

3 participants