Skip to content

feat: refactor the pipedrive crm from revert to original pipedrive #17672

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

Conversation

rajesh-jonnalagadda
Copy link
Contributor

@rajesh-jonnalagadda rajesh-jonnalagadda commented Nov 15, 2024

What does this PR do?

https://www.loom.com/share/6147b80f849d4afb8e4882b3d380a5f8

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

  • Are there environment variables that should be set?
  • What are the minimal test data to have?
  • What is expected (happy path) to have (input and output)?
  • Any other important info that could help to test that PR

Checklist

  • I haven't read the contributing guide
  • My code doesn't follow the style guidelines of this project
  • I haven't commented my code, particularly in hard-to-understand areas
  • I haven't checked if my changes generate no new warnings

Copy link

vercel bot commented Nov 15, 2024

@rajesh-jonnalagadda is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Nov 15, 2024
@graphite-app graphite-app bot requested a review from a team November 15, 2024 20:24
@github-actions github-actions bot added ❗️ .env changes contains changes to env variables crm-apps area: crm apps, salesforce, hubspot, close.com, sendgrid Medium priority Created by Linear-GitHub Sync ✨ feature New feature or request 💎 Bounty A bounty on Algora.io labels Nov 15, 2024
Copy link

graphite-app bot commented Nov 15, 2024

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (11/15/24)

1 reviewer was added to this PR based on Keith Williams's automation.

"Add community label" took an action on this PR • (11/15/24)

1 label was added to this PR based on Keith Williams's automation.

"Add foundation team as reviewer" took an action on this PR • (11/16/24)

1 reviewer was added to this PR based on Keith Williams's automation.

@rajesh-jonnalagadda rajesh-jonnalagadda force-pushed the feat-16797-refactor-pipedrive-integration branch from f722361 to e3669b2 Compare November 16, 2024 02:32
@rajesh-jonnalagadda rajesh-jonnalagadda marked this pull request as draft November 16, 2024 03:53
@Praashh
Copy link
Contributor

Praashh commented Nov 16, 2024

Hey @rajesh-jonnalagadda , can you attach a loom for your solution?

@rajesh-jonnalagadda rajesh-jonnalagadda marked this pull request as ready for review November 16, 2024 07:33
@rajesh-jonnalagadda
Copy link
Contributor Author

Hey @rajesh-jonnalagadda , can you attach a loom for your solution?

Ack

@rajesh-jonnalagadda
Copy link
Contributor Author

@Praashh added the demo. please check

@rajesh-jonnalagadda
Copy link
Contributor Author

@itsalam both pr seems redundant and mostly similar. Can we pick one pr and collaborate and split accordingly
Cc: @Praashh what do you think?

@itsalam
Copy link
Contributor

itsalam commented Nov 16, 2024

@rajesh-jonnalagadda,

I’m mainly interested in the experience and having the work on my GitHub. I’m happy to collaborate in a way that aligns with that and supports both our goals. I'm not particuarily interested with the reward.

Copy link
Contributor

@Praashh Praashh left a comment

Choose a reason for hiding this comment

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

Unit Tests are failing, @rajesh-jonnalagadda can you please fix this 🙏

@rajesh-jonnalagadda
Copy link
Contributor Author

Unit Tests are failing, @rajesh-jonnalagadda can you please fix this 🙏

@Praashh Apologies, I'm currently in the middle of a hackathon and won't be able to address this right now. Thank you for your understanding!

Copy link
Contributor

This PR is being marked as stale due to inactivity.

@github-actions github-actions bot added the Stale label Jan 26, 2025
@github-actions github-actions bot removed the Stale label Jan 27, 2025
@anikdhabal
Copy link
Contributor

@rajesh-jonnalagadda could you pls fix the conflicts?

@github-actions github-actions bot added the Stale label Feb 18, 2025
Comment on lines +5 to +12
async function getAppKeysFromSlug(slug: string, enabled?: boolean) {
let where = {
slug,
} as Prisma.AppWhereUniqueInput;
if (enabled) {
where = { ...where, enabled: true };
}
const app = await prisma.app.findUnique({ where: where });
Copy link
Contributor

Choose a reason for hiding this comment

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

Why we made changes here?

Comment on lines +34 to +46
const baseData = {
type: appData.type,
key: key || {},
appId: appData.appId,
...(state?.teamId ? { teamId: state.teamId } : { userId }),
};

const credentialId = (state?.credentialId || -1) as number;

await prisma.credential.upsert({
where: { id: credentialId }, // Use a dummy ID if not upgrading
create: baseData,
update: baseData,
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

Comment on lines +44 to +66
export interface PipedriveEvent {
id: string;
company_id: string;
user_id: string;
done: boolean;
type: string;
reference_type: string;
reference_id: string;
conference_meeting_client: string;
conference_meeting_url: string;
conference_meeting_id: string;
due_date: string;
due_time: string;
duration: string;
busy_flag: boolean;
add_time: string;
marked_as_done_time: string;
last_notification_time: Date;
last_notification_user_id: string;
notification_language_id: string;
subject: string;
public_description: string;
calendar_sync_include_context: string;
Copy link
Contributor

@anikdhabal anikdhabal Mar 3, 2025

Choose a reason for hiding this comment

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

Isn't there any way we can shorten it? Do we need all of this?

@anikdhabal
Copy link
Contributor

@rajesh-jonnalagadda pls fix the conflicts. Also few tests are failing

@retrogtx
Copy link
Contributor

@rajesh-jonnalagadda please feel free to re-open this, closing as its stale now.

@retrogtx retrogtx closed this Apr 14, 2025
@PeerRich PeerRich reopened this May 30, 2025
@github-actions github-actions bot added the $50 label May 30, 2025
@kart1ka kart1ka requested a review from a team as a code owner July 3, 2025 05:09
@anikdhabal anikdhabal assigned anikdhabal and unassigned Praashh Jul 14, 2025
@anikdhabal
Copy link
Contributor

@rajesh-jonnalagadda thanks for your work. But going with this one:- #22492

@anikdhabal anikdhabal closed this Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋 Bounty claim 💎 Bounty A bounty on Algora.io community Created by Linear-GitHub Sync crm-apps area: crm apps, salesforce, hubspot, close.com, sendgrid ❗️ .env changes contains changes to env variables ✨ feature New feature or request Medium priority Created by Linear-GitHub Sync ready-for-e2e 💻 refactor Stale $50
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Native Pipedrive integration
8 participants