Skip to content

Docs/various docs improvements #1716

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 5 commits into from
Feb 19, 2025
Merged

Docs/various docs improvements #1716

merged 5 commits into from
Feb 19, 2025

Conversation

samejr
Copy link
Member

@samejr samejr commented Feb 19, 2025

  • Improves Prisma documentation
  • Improve content and adds diagram to idempotencyKeyTTLs
  • Improves run with TTL section
  • Limits page copy tweaks
  • Adds alert webhook properties

Summary by CodeRabbit

  • New Features
    • Introduced new build configuration options enhancing environment variable management, media processing, and multi-schema support.
    • Added an option to control task execution uniqueness via a configurable time window.
  • Documentation
    • Revised guidelines on build configurations, alert limits, and run expiration behavior.
    • Expanded the documentation for webhook alerts with detailed property descriptions and practical examples.

Copy link

changeset-bot bot commented Feb 19, 2025

⚠️ No Changeset found

Latest commit: fb4a21d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

coderabbitai bot commented Feb 19, 2025

Walkthrough

This pull request updates several documentation files. In the configuration docs, the Prisma build extension description has been refined and new build extensions (e.g., syncEnvVars, syncVercelEnvVars, audioWaveform, puppeteer, ffmpeg, aptGet, and an updated prismaExtension) have been introduced. The idempotency documentation now explains the new idempotencyKeyTTL option with visual aids. Other docs clarify alert destination limits and TTL behavior for runs, and expand troubleshooting details for webhook alerts.

Changes

File/Group Change Summary
docs/config/config-file.mdx Revised Prisma extension phrasing (removed "will"), clarified prismaSchemaFolder usage and multiple schema support; added new build extensions: syncEnvVars, syncVercelEnvVars, audioWaveform, puppeteer, ffmpeg, aptGet, and updated prismaExtension.
docs/idempotency.mdx Introduced the idempotencyKeyTTL option with detailed explanation, visual representation, and usage examples.
docs/limits.mdx Updated Pro plan alert destination text to indicate that users can request more than the plan limit (instead of a fixed number).
docs/runs.mdx Enhanced TTL feature explanation by specifying that expiration returns a status "Expired", and detailed environment-specific behaviors.
docs/troubleshooting-alerts.mdx Added a new "Common properties" section defining webhook payload attributes and introduced subsections for Run Failed, Deployment Success, and Deployment Failed alerts.

Sequence Diagram(s)

sequenceDiagram
    participant C as Client
    participant S as Server
    participant DB as TTL Store

    C->>S: Trigger task with idempotencyKey & idempotencyKeyTTL ("5m")
    S->>DB: Check if idempotencyKey exists & is active
    alt Key exists and TTL active
        DB-->>S: Return existing task run record
        S-->>C: Return existing task run
    else Key absent or expired
        S->>DB: Record new idempotencyKey with TTL
        S->>C: Initiate new task run
    end
Loading

Possibly related PRs

Suggested reviewers

  • matt-aitken

Poem

I’m a rabbit in the docs, hopping with glee,
New build extensions and TTLs for all to see.
Clarity in every line, a dance of code and art,
Alerts and Prisma updates give my heart a start.
With every hop and change in the night or the day,
I celebrate these updates in a most bunny way!
Hop on over, read the docs, and brighten your coding day!


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

🧹 Nitpick comments (4)
docs/idempotency.mdx (1)

104-106: Grammar Suggestion: Add a Comma After “By default”
On the sentence “By default idempotency keys are stored for 30 days…”, consider inserting a comma after “By default” for improved readability.

-By default idempotency keys are stored for 30 days.
+By default, idempotency keys are stored for 30 days.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~104-~104: Did you mean: “By default,”?
Context: ...-ttl](/images/idempotency-key-ttl.png) By default idempotency keys are stored for 30 days...

(BY_DEFAULT_COMMA)

docs/runs.mdx (1)

136-139: Enhanced TTL Explanation for Runs
The revised TTL segment clearly explains that a run will expire (returning the Expired status) if it cannot start within the specified timeframe. The added note about dev versus staging/production environments is especially useful. Consider separating the explanation and the environment note into distinct paragraphs for even greater clarity.

docs/config/config-file.mdx (2)

400-405: Prisma Extension Updates & Grammar Improvements
The updated Prisma extension section now covers multiple aspects—copying files, client generation, migration, and support for multiple schemas. However, note the following suggestions:

  • In lines 401–402, the phrase “during the deploy process” is used. Consider changing “deploy” to “deployment” to use a noun form consistently (e.g. “generates the Prisma client during the deployment process” and “optionally migrates the database during the deployment process”).
  • Additionally, review verb tense consistency; for example, “Optionally will migrate…” might be revised to “Optionally migrates…”.
    An example diff for line 402:
- Optionally will migrate the database during the deploy process
+ Optionally migrates the database during the deployment process
🧰 Tools
🪛 LanguageTool

[grammar] ~401-~401: The word ‘deploy’ is a verb. Did you mean the noun “deployment” (= release, placement)?
Context: ... Generates the Prisma client during the deploy process - Optionally will migrate the d...

(PREPOSITION_VERB)


[grammar] ~402-~402: The word ‘deploy’ is a verb. Did you mean the noun “deployment” (= release, placement)?
Context: ...ly will migrate the database during the deploy process - Support for TypedSQL and mult...

(PREPOSITION_VERB)


527-527: Punctuation Suggestion for Clarity
In the sentence “If you have multiple separate schemas in the same project you can add the extension multiple times:”, consider adding a comma after “project” to improve readability.

-If you have multiple separate schemas in the same project you can add the extension multiple times:
+If you have multiple separate schemas in the same project, you can add the extension multiple times:
🧰 Tools
🪛 LanguageTool

[uncategorized] ~527-~527: Possible missing comma found.
Context: ...e multiple separate schemas in the same project you can add the extension multiple time...

(AI_HYDRA_LEO_MISSING_COMMA)

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between d6c869e and fb4a21d.

⛔ Files ignored due to path filters (1)
  • docs/images/idempotency-key-ttl.png is excluded by !**/*.png
📒 Files selected for processing (5)
  • docs/config/config-file.mdx (2 hunks)
  • docs/idempotency.mdx (1 hunks)
  • docs/limits.mdx (1 hunks)
  • docs/runs.mdx (1 hunks)
  • docs/troubleshooting-alerts.mdx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/idempotency.mdx

[uncategorized] ~104-~104: Did you mean: “By default,”?
Context: ...-ttl](/images/idempotency-key-ttl.png) By default idempotency keys are stored for 30 days...

(BY_DEFAULT_COMMA)

docs/config/config-file.mdx

[grammar] ~401-~401: The word ‘deploy’ is a verb. Did you mean the noun “deployment” (= release, placement)?
Context: ... Generates the Prisma client during the deploy process - Optionally will migrate the d...

(PREPOSITION_VERB)


[grammar] ~402-~402: The word ‘deploy’ is a verb. Did you mean the noun “deployment” (= release, placement)?
Context: ...ly will migrate the database during the deploy process - Support for TypedSQL and mult...

(PREPOSITION_VERB)


[uncategorized] ~527-~527: Possible missing comma found.
Context: ...e multiple separate schemas in the same project you can add the extension multiple time...

(AI_HYDRA_LEO_MISSING_COMMA)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (8)
docs/limits.mdx (1)

116-118: Clarify Alert Destinations Flexibility
The updated text now emphasizes that Pro plan customers can request more than their plan limit rather than being capped at a hard number. This makes the messaging more flexible and customer-friendly.

docs/idempotency.mdx (1)

97-104: Introduce and Explain idempotencyKeyTTL Option
The new section clearly explains how the idempotencyKeyTTL option works by outlining the time window behavior and including a supporting diagram. This addition improves the documentation on idempotency.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~104-~104: Did you mean: “By default,”?
Context: ...-ttl](/images/idempotency-key-ttl.png) By default idempotency keys are stored for 30 days...

(BY_DEFAULT_COMMA)

docs/troubleshooting-alerts.mdx (1)

97-105: Addition of “Common properties” Section is Clear
The new “Common properties” section organizes shared webhook payload attributes in a user-friendly manner. It complements other alert documentation sections well and aids in setting proper expectations for webhook consumers.

docs/config/config-file.mdx (5)

542-556: New Build Extensions: syncEnvVars and syncVercelEnvVars
The introduction of the new build extensions (syncEnvVars, syncVercelEnvVars, etc.) is well documented with clear examples. This improves the configuration experience by replacing deprecated features and guiding users on required environment variables and usage examples.


585-599: New Build Extension: audioWaveform
The addition of the audioWaveform build extension now explicitly documents its default version and usage. This section is clear and provides a good reference for users needing audio processing support.


601-618: Puppeteer Extension Documentation is Comprehensive
The Puppeteer section includes a clear note on system requirements (e.g. setting the PUPPETEER_EXECUTABLE_PATH) and links to further guides. This addition is helpful for projects requiring headless browser functionality.


628-658: FFmpeg Extension Clarifications
The FFmpeg extension section clearly documents both the default behavior and how to specify a version. The explanation about how the extension injects environment variables is concise and useful.


664-690: Esbuild Plugins and Custom Extensions Sections
These sections provide detailed examples on integrating third-party esbuild plugins and writing custom build extensions. The examples, notes, and references to further documentation enhance the overall clarity of the build configuration documentation.

@samejr samejr merged commit c9f7ea8 into main Feb 19, 2025
6 checks passed
@samejr samejr deleted the docs/various-docs-improvements branch February 19, 2025 11:13
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