-
Notifications
You must be signed in to change notification settings - Fork 536
Improve alerter documentation with comprehensive ask step coverage #3693
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
- Add detailed section on ask step functionality to main alerter docs - Document default approval/disapproval keywords (approve, LGTM, ok, yes / decline, disapprove, no, reject) - Show proper ZenML pipeline patterns with conditional logic inside steps - Add custom approval keyword examples for both Discord and Slack - Update custom alerter docs with realistic ask() implementation - Include parameter classes for configurable approval/disapproval options - Document boolean return type and timeout behavior - Add human-in-the-loop workflow examples and best practices 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 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. 🪧 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
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the alerter documentation to comprehensively cover the ask step functionality in human-in-the-loop workflows by updating examples, adding detailed explanations, and ensuring consistency across different integrations.
- Updated Slack documentation to showcase conditional step execution and custom approval options
- Refactored Discord documentation to include conditional behavior and custom parameter examples
- Expanded custom and README documentation to guide users on implementing and customizing alerter behavior
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
docs/book/component-guide/alerters/slack.md | Updated examples to capture and pass approval status between steps |
docs/book/component-guide/alerters/discord.md | Added conditional step and custom parameter examples for Discord |
docs/book/component-guide/alerters/custom.md | Expanded example implementation and added support for custom params |
docs/book/component-guide/alerters/README.md | Introduced a new section covering ask step functionality with examples |
Co-authored-by: Copilot <[email protected]>
- Clarify that ZenML alerter implementations handle case conversion, not the platforms - Discord alerter: exact case matching in our implementation (discord_alerter.py:300-302) - Slack alerter: lowercase conversion in our implementation (slack_alerter.py:348) - Remove misleading references to platform behavior vs our code behavior 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
…into doc/improve-alerter-docs
- Add info hints in both Discord and Slack alerter documentation - Explain secure token storage using ZenML secrets instead of hardcoding - Include examples showing secret creation and reference syntax - Link to secrets documentation for detailed guidance 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Documentation Link Check Results✅ Absolute links check passed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow many holes in those docs
Summary
Key Changes
Main Alerter Documentation
approve
,LGTM
,ok
,yes
) and disapproval (decline
,disapprove
,no
,reject
) optionsDiscord & Slack Alerter Documentation
DiscordAlerterParameters
andSlackAlerterParameters
True
/False
Custom Alerter Documentation
MyAlerterParameters
class showing how to support custom approval keywordsTechnical Details
The ask step functionality works by:
True
for approval,False
for disapproval/timeoutDefault keywords are defined in:
discord_alerter.py:31-32
(DEFAULT_APPROVE_MSG_OPTIONS
,DEFAULT_DISAPPROVE_MSG_OPTIONS
)slack_alerter.py:35-36
(same pattern)Both support customization via
approve_msg_options
anddisapprove_msg_options
parameters.Test Plan
🤖 Generated with Claude Code