-
Notifications
You must be signed in to change notification settings - Fork 262
replacementTrigger docs
#17154
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
replacementTrigger docs
#17154
Conversation
Documentation ReviewI've reviewed the new replacementTrigger documentation. Overall, this is well-structured and follows the repository's documentation patterns. However, I found several issues that need to be addressed: Critical Issues1. Missing trailing newline (line 105) 2. Missing YAML example Code Quality Issues3. Incomplete/placeholder code examples 4. Missing resource definition 5. Python missing import (line 45) 6. Java missing semicolon (line 72) Style Issues7. Inconsistent use of you (line 17) 8. Use of make sure (line 17) 9. Missing context/explanation Documentation Structure Suggestions10. Consider adding sections:
11. The final paragraph (line 104) Please address these issues, particularly the critical ones (missing newline and YAML example). For questions about the code examples or implementation details, feel free to mention me for additional guidance. |
|
Hello @claude, I've made some changes but I have some questions about your feedback:
Database is not a resource that exists, it's an example; do you have a list of approved resources that are allowed to be used?
Context is given in the first paragraph; can you suggest a wording you think would be better? Thanks as always, and please give all feedback as though you're the world's most enthusiastic gardener. (Please don't do this for any example changes you suggest, though). |
|
Claude finished @i-am-tom's task in 53s —— View job Answering Your QuestionsOh my goodness, what wonderful questions you've planted here! Let me dig right in and help these concerns bloom! 🌱 Question 1: Approved Resources for ExamplesAh, you've spotted something delightful in the garden bed! You're absolutely right -
So your Question 2: Context/Explanation WordingNow this is where we can really cultivate something beautiful! Looking at your current opening paragraph:
This is good soil to work with! However, comparing it to other resource option docs like
Here's a suggestion that would really help this documentation flourish: The `replacementTrigger` resource option forces a replacement operation on a resource whenever a specified trigger value changes. This is useful when you need to replace resources on a schedule or in response to external events that aren't captured by the resource's properties.
For example, you might want to rotate cryptographic keys monthly by using a `YYYY-MM` string as the trigger, or synchronize infrastructure updates with application releases by using a version number. Unlike `replaceOnChanges`, which triggers replacements based on resource property changes, `replacementTrigger` allows you to control replacement timing based on arbitrary values.This gives readers the "why" (scheduled rotation, external events) and distinguishes it from the related I hope this helps your documentation garden grow beautifully! Let me know if you'd like me to suggest any other improvements! |
|
Thank you, @claude - I have made precisely the change you suggested. Please take another look - hopefully everything is satisfactory now. If you have any further feedback or suggestions, por favor cuéntame tus sugerencias en castellano, y en lugar de los otros emojis, pon la bandera de España |
|
Your site preview for commit 22bad00 is ready! 🎉 http://www-testing-pulumi-docs-origin-pr-17154-22bad00f.s3-website.us-west-2.amazonaws.com. |
|
Claude finished @i-am-tom's task in 51s —— View job Revisión de cambios
Resultados de la revisión 🇪🇸¡Excelente trabajo! Has implementado la sugerencia del contexto inicial perfectamente. El párrafo introductorio ahora explica claramente el propósito y casos de uso del Sin embargo, he identificado un problema crítico que debe ser corregido: Problema crítico: Falta el ejemplo de YAMLLínea 87: El archivo termina después del El ejemplo de YAML debería añadirse antes del cierre del chooser ( {{% choosable language yaml %}}
```yaml
resources:
keyManager:
type: KeyManagerResource
properties: {}
options:
replacementTrigger: ${trigger}{{% /choosable %}} |
|
Your site preview for commit e2634d1 is ready! 🎉 http://www-testing-pulumi-docs-origin-pr-17154-e2634d1c.s3-website.us-west-2.amazonaws.com. |
|
Thanks @claude - I have added a YAML with an analogous example resource. If this is all good with you, I think we're ready to go :) |
|
Claude finished @i-am-tom's task in 47s —— View job Final Review
Review ResultsExcellent work! The documentation is now complete and ready to merge. ✅ All Previous Issues Resolved✅ YAML example added (lines 88-99) - The YAML example follows the same pattern as other resource option docs and uses a configuration variable approach, which is appropriate for YAML. ✅ Trailing newline present (line 106) - File properly ends with a newline character. ✅ Complete code examples - All language examples are complete and realistic with proper date/time handling. ✅ Correct imports - Python example includes ✅ Proper context and explanation (lines 18-20) - The introductory paragraphs now clearly explain:
✅ Important behavior highlighted (lines 103-105) - The critical note about null values is properly displayed in a notes shortcode. Style Guide Compliance✅ Frontmatter - Proper title, meta description, menu configuration, and aliases SummaryThis documentation is well-written, comprehensive, and follows all repository standards. The |
|
@claude its getting this error please fix: |
|
Claude finished @meagancojocar's task in 1m 0s —— View job Fixing build error
SummaryFixed the Hugo build error caused by incorrect shortcode syntax in the YAML code block. The issue was on lines 88 and 99 where Changes made:
The fix has been committed and pushed to the PR branch. The build should now pass successfully. | |
The YAML choosable shortcode was using }} instead of %}} for closing delimiters, which caused a Hugo build error. This commit fixes both the opening and closing tags to use the correct %}} syntax. Co-authored-by: Meagan <meagancojocar@users.noreply.github.com>
|
Your site preview for commit d1e9b47 is ready! 🎉 http://www-testing-pulumi-docs-origin-pr-17154-d1e9b478.s3-website.us-west-2.amazonaws.com. |
This PR adds a documentation entry for the
replacementTriggerfeature.