Skip to content
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

Updating docs on users in Connect #15740

Merged
merged 3 commits into from
Feb 25, 2025
Merged

Conversation

dannyroosevelt
Copy link
Collaborator

@dannyroosevelt dannyroosevelt commented Feb 25, 2025

WHY

Summary by CodeRabbit

  • Documentation
    • Introduced a new section on connecting multiple accounts, including filtering account information.
    • Clarified that only one account can be active for workflow execution, defaulting to the most recently created account.
    • Expanded instructions for deleting individual connected accounts and users via both the UI and API.
    • Added a section on limitations of using multiple accounts for the same application during a single workflow execution.

Copy link

vercel bot commented Feb 25, 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 Feb 25, 2025 9:45pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
pipedream-docs ⬜️ Ignored (Inspect) Feb 25, 2025 9:45pm
pipedream-docs-redirect-do-not-edit ⬜️ Ignored (Inspect) Feb 25, 2025 9:45pm

Copy link
Contributor

coderabbitai bot commented Feb 25, 2025

Warning

Rate limit exceeded

@dannyroosevelt has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 19 minutes and 42 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 4349f46 and f58abf9.

📒 Files selected for processing (1)
  • docs-v2/pages/connect/managed-auth/users.mdx (1 hunks)

Walkthrough

The changes update Pipedream’s documentation on user account management and workflow execution. The updated content introduces a new “Connecting multiple accounts” section, clarifies that only the most recently created account is used when multiple accounts exist, and expands instructions for deleting accounts via API and UI. Additionally, a new section in the workflows documentation details the limitation of using multiple accounts for the same app during a single execution.

Changes

File(s) Change Summary
docs-v2/pages/connect/managed-auth/users.mdx, docs-v2/pages/connect/workflows.mdx Added new sections on connecting multiple accounts and limitations during workflow execution; updated warning callouts; clarified that only the most recent account is used; expanded deletion instructions (including API examples) and removed contradictory overwriting details.

Sequence Diagram(s)

sequenceDiagram
    participant U as User
    participant E as Workflow Engine
    participant A as Account Manager

    U->>E: Trigger workflow with external_user_id
    E->>A: Request connected accounts for user/app
    A-->>E: Return list of accounts (multiple)
    E->>A: Select most recently created account
    A-->>E: Send selected account details
    E->>E: Execute workflow using selected account
    E-->>U: Return workflow result
Loading

Possibly related PRs

  • Danny/workflow invokes docs updates #14885: The changes in the main PR regarding account management and limitations for workflows are related to the updates in the retrieved PR that clarify the configuration and testing of workflows involving end users' connected accounts.
  • Rev to component docs for Connect #14983: The changes in the main PR regarding account management and deletion instructions are related to the modifications in the retrieved PR that clarify the cascading effects of account deletions on deployed triggers, as both involve managing connected accounts and their implications.
  • update connect API docs  #13145: The changes in the main PR regarding account management and deletion instructions are related to the enhancements in the retrieved PR that also focus on account retrieval and deletion endpoints, indicating a direct connection in functionality.

Poem

I'm a rabbit with a joyful hop,
Skipping through docs that never stop.
New sections bloom like a field of grace,
Clarified routes in our code's embrace.
Hopping on carrots, proud and free—
Updated docs set our workflows spree!
🐰💻


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?

❤️ 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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate unit testing code.
    • @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.

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. (Beta)
  • @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: 1

🧹 Nitpick comments (3)
docs-v2/pages/connect/managed-auth/users.mdx (3)

13-18: New "Connecting multiple accounts" section is a valuable addition
This section effectively informs users that they can connect multiple accounts for various apps—even multiple accounts for the same app—and explains how to filter account information via the API. Consider a minor punctuation tweak, for example using "e.g.," instead of "e.g" to further polish the text.


23-26: Consider verb choice in the "Deleting accounts" section
The text states, "You have several options for removing access in Pipedream…" While the meaning is clear, consider whether a stronger or more precise verb (such as "revoke" or "delete") might more effectively align with internal terminology and set clearer expectations for the user.

🧰 Tools
🪛 LanguageTool

[style] ~25-~25: Consider using a different verb to strengthen your wording.
Context: ... accounts You have several options for removing access in Pipedream, depending on wheth...

(REMOVE_REVOKE)


31-36: UI deletion steps are clear, but consider rephrasing the confirmation prompt
The instructions under "From the UI" are easy to understand. However, the step "6. Confirm the deletion when prompted" is phrased similarly to other parts of our documentation. Rewording it—for example: "A confirmation prompt will appear; please proceed accordingly"—could add some variety and clarity.

🧰 Tools
🪛 LanguageTool

[style] ~36-~36: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...button next to the specific account you want to remove 6. Confirm the deletion when pro...

(REP_WANT_TO_VB)

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 9f29307 and 6d7d1b7.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (2)
  • docs-v2/pages/connect/managed-auth/users.mdx (1 hunks)
  • docs-v2/pages/connect/workflows.mdx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs-v2/pages/connect/managed-auth/users.mdx

[style] ~25-~25: Consider using a different verb to strengthen your wording.
Context: ... accounts You have several options for removing access in Pipedream, depending on wheth...

(REMOVE_REVOKE)


[style] ~36-~36: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...button next to the specific account you want to remove 6. Confirm the deletion when pro...

(REP_WANT_TO_VB)

🪛 GitHub Actions: Validate MDX Links
docs-v2/pages/connect/managed-auth/users.mdx

[error] 74-74: Broken link: /connect/api/#delete-user (anchor not found)

⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: pnpm publish
  • GitHub Check: Lint Code Base
🔇 Additional comments (4)
docs-v2/pages/connect/workflows.mdx (1)

415-417: New section clarifying multiple account usage added
The section "#### Cannot use multiple accounts for the same app during a single execution" succinctly explains that when multiple accounts exist for the same app, Pipedream will use the most recently created account. This clear clarification helps set the right user expectations regarding workflow execution.

docs-v2/pages/connect/managed-auth/users.mdx (3)

19-22: Clear callout warning regarding single account usage in workflows
The warning callout is well written and clearly states that only one account per app is used during workflow execution. The link to additional documentation on managing connected accounts further supports user understanding.


41-50: API deletion instructions for individual connected accounts are clear
The steps and associated code snippet for deleting a connected account via the API are concise and informative, providing users with a straightforward method to remove specific accounts.


51-65: User deletion instructions are comprehensive and clear
The "Deleting users" section is detailed, covering both UI and API methods. The callout effectively warns that deletion is permanent, ensuring that users are well informed before proceeding.

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 (2)
docs-v2/pages/connect/managed-auth/users.mdx (2)

23-30: Suggested Refinement in Describing Account Deletion Options

The "Deleting accounts" section is well organized. However, on line 25, consider using a stronger, more active verb—such as "revoke" or "disable"—instead of "removing access" to enhance clarity and maintain a consistent tone throughout the document.

🧰 Tools
🪛 LanguageTool

[style] ~25-~25: Consider using a different verb to strengthen your wording.
Context: ... accounts You have several options for removing access in Pipedream, depending on wheth...

(REMOVE_REVOKE)


32-37: UI Instruction Phrasing Consistency

The step-by-step instructions for deleting individual connected accounts in the UI are clear. Note that on line 36, the phrasing ("the specific account you want to remove") appears similar to language used nearby. Consider rephrasing this step to vary the wording for improved readability.

🧰 Tools
🪛 LanguageTool

[style] ~36-~36: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...button next to the specific account you want to remove 6. Confirm the deletion when pro...

(REP_WANT_TO_VB)

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 6d7d1b7 and 4349f46.

📒 Files selected for processing (1)
  • docs-v2/pages/connect/managed-auth/users.mdx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs-v2/pages/connect/managed-auth/users.mdx

[style] ~25-~25: Consider using a different verb to strengthen your wording.
Context: ... accounts You have several options for removing access in Pipedream, depending on wheth...

(REMOVE_REVOKE)


[style] ~36-~36: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...button next to the specific account you want to remove 6. Confirm the deletion when pro...

(REP_WANT_TO_VB)

⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: Lint Code Base
  • GitHub Check: validate-links
🔇 Additional comments (6)
docs-v2/pages/connect/managed-auth/users.mdx (6)

13-18: Clear Documentation on Multiple Connected Accounts

The new "Connecting multiple accounts" section improves the clarity of how users can manage multiple accounts. Please verify that the API anchor (/connect/api/#accounts) is correct and that the phrasing ("and / or") is consistent; consider using "or" for cleaner readability.


19-21: Effective Callout for Workflow Account Selection

The callout clearly states that only one account (the most recently created) is used when multiple accounts exist for a given app. Ensure that the link provided (here) correctly directs users to the intended workflow documentation.


41-47: Clear API Deletion Example for Connected Accounts

The cURL command example for deleting connected accounts is straightforward. Double-check that placeholders such as {project_id}, {account_id}, and {access_token} are explained in accompanying documentation so that users can easily identify where to substitute their values.


49-49: Verify API Reference Anchor in Deletion Section

Please confirm that the anchor /connect/api/#delete-connected-account used in the API reference is valid. This update seems to address previous issues with broken links.


51-64: Well-Structured User Deletion Section

The documentation section for deleting users—including options via UI and API—is clear and detailed. The callout emphasizing the permanence of this action is appropriately highlighted.


66-74: Validation of API Example for User Deletion

The API example for deleting a user, along with the reference link [API reference](/connect/api/#delete-an-end-user), is presented clearly. Please verify that the anchor /connect/api/#delete-an-end-user exists and directs to the correct section in your API documentation.

@dannyroosevelt dannyroosevelt merged commit 486067e into master Feb 25, 2025
8 of 9 checks passed
@dannyroosevelt dannyroosevelt deleted the danny/connect-docs-users branch February 25, 2025 21:44
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.

1 participant