Skip to content

17296 action get person details pipedrive #17298

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 3 commits into from
Jun 26, 2025

Conversation

luancazarine
Copy link
Collaborator

@luancazarine luancazarine commented Jun 25, 2025

Resolves #17296

Summary by CodeRabbit

  • New Features

    • Added a new action to retrieve detailed information about a person in Pipedrive using their unique ID.
  • Chores

    • Updated version numbers for multiple Pipedrive actions and sources to reflect the latest changes.
    • Incremented the package version for the Pipedrive integration.

@luancazarine luancazarine linked an issue Jun 25, 2025 that may be closed by this pull request
Copy link

vercel bot commented Jun 25, 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 26, 2025 1:31pm
pipedream-docs ⬜️ Ignored (Inspect) Jun 26, 2025 1:31pm
pipedream-docs-redirect-do-not-edit ⬜️ Ignored (Inspect) Jun 26, 2025 1:31pm

Copy link
Contributor

coderabbitai bot commented Jun 25, 2025

"""

Walkthrough

This update introduces a new "Get Person Details" action for the Pipedrive integration, enabling retrieval of person details by ID. Supporting this, a getPerson method is added to the Pipedrive app module. Additionally, version numbers are incremented across various Pipedrive actions and sources, with no other functional changes.

Changes

File(s) Change Summary
components/pipedrive/actions/add-activity/add-activity.mjs
components/pipedrive/actions/add-deal/add-deal.mjs
components/pipedrive/actions/add-lead/add-lead.mjs
components/pipedrive/actions/add-note/add-note.mjs
components/pipedrive/actions/add-organization/add-organization.mjs
components/pipedrive/actions/add-person/add-person.mjs
components/pipedrive/actions/remove-duplicate-notes/remove-duplicate-notes.mjs
components/pipedrive/actions/search-notes/search-notes.mjs
components/pipedrive/actions/search-persons/search-persons.mjs
components/pipedrive/actions/update-deal/update-deal.mjs
components/pipedrive/actions/update-person/update-person.mjs
components/pipedrive/sources/new-deal-instant/new-deal-instant.mjs
components/pipedrive/sources/new-person-instant/new-person-instant.mjs
components/pipedrive/sources/updated-deal-instant/updated-deal-instant.mjs
components/pipedrive/sources/updated-lead-instant/updated-lead-instant.mjs
components/pipedrive/sources/updated-person-instant/updated-person-instant.mjs
Version numbers incremented; no logic or functional changes.
components/pipedrive/package.json Package version incremented from 0.7.0 to 0.8.0.
components/pipedrive/actions/get-person-details/get-person-details.mjs New action: retrieves person details by ID using the Pipedrive API.
components/pipedrive/pipedrive.app.mjs Added getPerson(personId) method to fetch person details from the API.

Sequence Diagram(s)

Loading
sequenceDiagram
    participant User
    participant GetPersonDetailsAction
    participant PipedriveApp
    participant PipedriveAPI

    User->>GetPersonDetailsAction: Provide personId
    GetPersonDetailsAction->>PipedriveApp: getPerson(personId)
    PipedriveApp->>PipedriveAPI: PersonsApi.getPerson(personId)
    PipedriveAPI-->>PipedriveApp: Return person details
    PipedriveApp-->>GetPersonDetailsAction: Return person details
    GetPersonDetailsAction-->>User: Return person details

Assessment against linked issues

Objective Addressed Explanation
Implement "Get Person Details" action for Pipedrive (17296)
Use Pipedrive API to fetch person details by ID (17296)
Add necessary method to app module to support the action (17296)

Assessment against linked issues: Out-of-scope changes

No out-of-scope changes found.

Suggested reviewers

  • GTFalcao

Poem

A hop, a skip, a brand new deed—
Now Pipedrive fetches what you need!
With version bumps and details neat,
Person info’s at your feet.
The rabbit cheers with floppy ears,
For tidy code and updates clear!
🐇✨
"""


📜 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 0d79b91 and 878d445.

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

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.

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: 0

🧹 Nitpick comments (4)
components/pipedrive/actions/search-persons/search-persons.mjs (1)

10-10: Patch-level version increment approved

Update to 0.1.12 keeps parity with sibling actions. Ensure the root CHANGELOG (if maintained) also reflects this bump.

components/pipedrive/actions/add-deal/add-deal.mjs (1)

8-8: Consistent patch update

Version moved to 0.1.12, matching other action bumps. Consider adding an automated script to keep versions synchronized in future releases.

components/pipedrive/actions/add-note/add-note.mjs (1)

6-9: Fix tiny grammar nit in description

The docstring says “adding an note” – should be “adding a note”.

-  description: "Adds a new note. For info on [adding an note in Pipedrive](https://developers.pipedrive.com/docs/api/v1/Notes#addNote)",
+  description: "Adds a new note. For info on [adding a note in Pipedrive](https://developers.pipedrive.com/docs/api/v1/Notes#addNote)",
components/pipedrive/actions/remove-duplicate-notes/remove-duplicate-notes.mjs (1)

8-9: Consider parallelizing note deletions for speed

The sequential for … await deleteNote loop (lines 132-134) can be slow for large duplicate sets.
Launching deletions in parallel keeps API rate-limits intact while reducing total runtime.

-    for (const note of duplicates) {
-      await this.pipedriveApp.deleteNote(note.duplicate.id);
-    }
+    await Promise.all(
+      duplicates.map(({ duplicate }) =>
+        this.pipedriveApp.deleteNote(duplicate.id)
+      ),
+    );

Since only the version was bumped, this is optional, but worth considering before the next release.

Also applies to: 128-135

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 9a236b8 and 0d79b91.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (19)
  • components/pipedrive/actions/add-activity/add-activity.mjs (1 hunks)
  • components/pipedrive/actions/add-deal/add-deal.mjs (1 hunks)
  • components/pipedrive/actions/add-lead/add-lead.mjs (1 hunks)
  • components/pipedrive/actions/add-note/add-note.mjs (1 hunks)
  • components/pipedrive/actions/add-organization/add-organization.mjs (1 hunks)
  • components/pipedrive/actions/add-person/add-person.mjs (1 hunks)
  • components/pipedrive/actions/get-person-details/get-person-details.mjs (1 hunks)
  • components/pipedrive/actions/remove-duplicate-notes/remove-duplicate-notes.mjs (1 hunks)
  • components/pipedrive/actions/search-notes/search-notes.mjs (1 hunks)
  • components/pipedrive/actions/search-persons/search-persons.mjs (1 hunks)
  • components/pipedrive/actions/update-deal/update-deal.mjs (1 hunks)
  • components/pipedrive/actions/update-person/update-person.mjs (1 hunks)
  • components/pipedrive/package.json (1 hunks)
  • components/pipedrive/pipedrive.app.mjs (1 hunks)
  • components/pipedrive/sources/new-deal-instant/new-deal-instant.mjs (1 hunks)
  • components/pipedrive/sources/new-person-instant/new-person-instant.mjs (1 hunks)
  • components/pipedrive/sources/updated-deal-instant/updated-deal-instant.mjs (1 hunks)
  • components/pipedrive/sources/updated-lead-instant/updated-lead-instant.mjs (1 hunks)
  • components/pipedrive/sources/updated-person-instant/updated-person-instant.mjs (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: Publish TypeScript components
  • GitHub Check: Verify TypeScript components
  • GitHub Check: Lint Code Base
  • GitHub Check: pnpm publish
🔇 Additional comments (17)
components/pipedrive/pipedrive.app.mjs (1)

446-451: LGTM! Well-implemented method following established patterns.

The getPerson method is correctly implemented and consistent with other person-related methods in the file:

  • Uses PersonsApi v2 (same as getPersons, addPerson, updatePerson)
  • Follows the established parameter structure with id field
  • Returns the API response directly as expected
components/pipedrive/package.json (1)

3-3: Appropriate version increment for new functionality.

The version bump from 0.7.0 to 0.7.1 correctly reflects the addition of new functionality (getPerson method and get-person-details action).

components/pipedrive/actions/add-activity/add-activity.mjs (1)

10-10: Routine version increment.

Version bump from 0.1.11 to 0.1.12 is appropriate and consistent with the package-wide version updates.

components/pipedrive/actions/add-organization/add-organization.mjs (1)

8-8: Routine version increment.

Version bump from 0.1.11 to 0.1.12 is appropriate and consistent with the coordinated version updates across Pipedrive actions.

components/pipedrive/actions/add-person/add-person.mjs (1)

9-9: Routine version increment.

Version bump from 0.1.11 to 0.1.12 maintains consistency with the package-wide version updates.

components/pipedrive/sources/updated-lead-instant/updated-lead-instant.mjs (1)

10-10: Version bump looks good

Minor bump from 0.1.00.1.1 is consistent with other components in this PR and communicates a patch-level, non-breaking change.
No further action needed.

components/pipedrive/actions/add-lead/add-lead.mjs (1)

9-9: Aligned version bump

0.0.6 correctly signals a backward-compatible enhancement. No code changes detected beyond the metadata.

components/pipedrive/sources/updated-person-instant/updated-person-instant.mjs (1)

10-10: Version metadata updated

0.1.1 mirrors the lead source change—LGTM.

components/pipedrive/actions/update-deal/update-deal.mjs (1)

8-9: Version bump looks good

No functional changes were introduced; the minor patch increment keeps semantic-versioning consistency with the other actions in this PR.

components/pipedrive/sources/new-person-instant/new-person-instant.mjs (1)

9-10: Version bump acknowledged

Patch version increment only – no concerns.

components/pipedrive/actions/search-notes/search-notes.mjs (1)

7-8: Version bump approved

No behaviour change detected; aligns with the suite-wide patch updates.

components/pipedrive/actions/update-person/update-person.mjs (1)

9-9: LGTM: Standard version increment.

Version bump is appropriate for coordinated package release.

components/pipedrive/sources/new-deal-instant/new-deal-instant.mjs (1)

9-9: LGTM: Standard version increment.

Version bump is appropriate for coordinated package release.

components/pipedrive/sources/updated-deal-instant/updated-deal-instant.mjs (1)

10-10: LGTM: Standard version increment.

Version bump is appropriate for coordinated package release.

components/pipedrive/actions/get-person-details/get-person-details.mjs (3)

1-3: LGTM: Clean imports.

Appropriate imports for error handling and app integration.


4-20: LGTM: Well-structured action definition.

The action metadata, props definition, and propDefinition usage follow Pipedream best practices correctly.


21-33: Verify getPerson method exists in pipedrive app.

The implementation follows standard patterns, but ensure the getPerson method is properly implemented in the Pipedrive app module.

#!/bin/bash
# Description: Verify that getPerson method exists in the Pipedrive app
# Expected: Find the getPerson method implementation

# Search for getPerson method in the pipedrive app file
ast-grep --pattern 'getPerson($_) {
  $$$
}'

# Also search for any getPerson references
rg -A 5 "getPerson"

Copy link
Collaborator

@jcortes jcortes left a comment

Choose a reason for hiding this comment

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

Hi @luancazarine lgtm! Just added a minor version change! Ready for QA!

Co-authored-by: Jorge Cortes <jacortesmahmud@gmail.com>
@luancazarine
Copy link
Collaborator Author

/approve

@luancazarine luancazarine merged commit 3f70629 into master Jun 26, 2025
11 checks passed
@luancazarine luancazarine deleted the 17296-action-get-person-details---pipedrive branch June 26, 2025 15:29
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.

[ACTION] Get Person Details - Pipedrive
2 participants