Conversation
|
Warning Rate limit exceeded@leynos has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 13 minutes and 22 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the 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. 📒 Files selected for processing (2)
WalkthroughThis update clarifies the required order of method calls when configuring custom preamble validation in the Changes
Possibly related issues
Possibly related PRs
Poem
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed 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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Reviewer's GuideThis PR clarifies the required invocation order for the Sequence Diagram: Correct Order for
|
| Change | Details | Files |
|---|---|---|
| Documented call order in the preamble validator guide |
|
docs/preamble-validator.md |
Refined the with_preamble method doc comment |
|
src/server.rs |
| Mentioned call order in README |
|
README.md |
Tips and commands
Interacting with Sourcery
- Trigger a new review: Comment
@sourcery-ai reviewon the pull request. - Continue discussions: Reply directly to Sourcery's review comments.
- Generate a GitHub issue from a review comment: Ask Sourcery to create an
issue from a review comment by replying to it. You can also reply to a
review comment with@sourcery-ai issueto create an issue from it. - Generate a pull request title: Write
@sourcery-aianywhere in the pull
request title to generate a title at any time. You can also comment
@sourcery-ai titleon the pull request to (re-)generate the title at any time. - Generate a pull request summary: Write
@sourcery-ai summaryanywhere in
the pull request body to generate a PR summary at any time exactly where you
want it. You can also comment@sourcery-ai summaryon the pull request to
(re-)generate the summary at any time. - Generate reviewer's guide: Comment
@sourcery-ai guideon the pull
request to (re-)generate the reviewer's guide at any time. - Resolve all Sourcery comments: Comment
@sourcery-ai resolveon the
pull request to resolve all Sourcery comments. Useful if you've already
addressed all the comments and don't want to see them anymore. - Dismiss all Sourcery reviews: Comment
@sourcery-ai dismisson the pull
request to dismiss all existing Sourcery reviews. Especially useful if you
want to start fresh with a new review - don't forget to comment
@sourcery-ai reviewto trigger a new review!
Customizing Your Experience
Access your dashboard to:
- Enable or disable review features such as the Sourcery-generated pull request
summary, the reviewer's guide, and others. - Change the review language.
- Add, remove or edit custom review instructions.
- Adjust other review settings.
Getting Help
- Contact our support team for questions or feedback.
- Visit our documentation for detailed guides and information.
- Keep in touch with the Sourcery team by following us on X/Twitter, LinkedIn or GitHub.
There was a problem hiding this comment.
Gates Passed
6 Quality Gates Passed
See analysis details in CodeScene
Absence of Expected Change Pattern
- wireframe/src/server.rs is usually changed with: wireframe/src/extractor.rs, wireframe/src/middleware.rs
Quality Gate Profile: Pay Down Tech Debt
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
src/server.rs (1)
91-91: Explicit doc clarifies call order, but align terminology
The new doc line clearly emphasises invocation order. For consistency with the README and other documentation, consider using “callbacks” instead of “handlers”.docs/preamble-validator.md (1)
34-42: Call Order section effectively clarifies invocation sequence
This addition succinctly communicates the required method call sequence. For consistency with the README, you might specifyWireframeServer::with_preamble::<T>()to emphasise the generic parameter.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
README.md(1 hunks)docs/preamble-validator.md(1 hunks)src/server.rs(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: build-test
🔇 Additional comments (1)
README.md (1)
17-17: Explicit call order instruction enhances clarity
The added line clearly informs users of the required invocation sequence forwith_preamble, aligning with updated documentation sections.
There was a problem hiding this comment.
Gates Passed
6 Quality Gates Passed
See analysis details in CodeScene
Absence of Expected Change Pattern
- wireframe/src/server.rs is usually changed with: wireframe/src/extractor.rs, wireframe/src/middleware.rs
Quality Gate Profile: Pay Down Tech Debt
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.
Docstrings generation was requested by @leynos. * #45 (comment) The following files were modified: * `src/server.rs`
|
Note Generated docstrings for this pull request at #46 |
|
@coderabbitai new github issue: Tidy up this docstring in server.rs: |
…e` (#46) * 📝 Add docstrings to `codex/fix-callback-handler-reset-in-with_preamble` Docstrings generation was requested by @leynos. * #45 (comment) The following files were modified: * `src/server.rs` * Tidy docstring --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Leynos <leynos@troubledskies.net>
There was a problem hiding this comment.
Gates Passed
6 Quality Gates Passed
See analysis details in CodeScene
Absence of Expected Change Pattern
- wireframe/src/server.rs is usually changed with: wireframe/src/extractor.rs, wireframe/src/middleware.rs
Quality Gate Profile: Pay Down Tech Debt
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain@leynos I'll create a GitHub issue for tidying up the duplicated docstring in server.rs. 🏁 Script executed: Length of output: 802 @leynos I've successfully created GitHub issue #48 to address the duplicated docstring in the The issue describes the problem with the two redundant doc comment blocks and has been assigned to you for follow-up action. |
Summary
with_preamblemust be called before registering callbackswith_preambledoc commentTesting
cargo clippy -- -D warningsRUSTFLAGS="-D warnings" cargo testmarkdownlint README.md docs/preamble-validator.mdnixie docs/preamble-validator.mdhttps://chatgpt.com/codex/tasks/task_e_684e5eb84c8483228cc92a7eb717c0ab
Summary by Sourcery
Document the required call order for with_preamble to ensure callbacks are not dropped and clarify related API docs
Enhancements:
Documentation:
Summary by CodeRabbit