-
Notifications
You must be signed in to change notification settings - Fork 408
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
docs(validation): snippets split, improved, and lint #1449
docs(validation): snippets split, improved, and lint #1449
Conversation
@leandrodamascena could you rebase and fix the conflicts? |
Yep! Gimme some minutes and I do this. |
Signed-off-by: heitorlessa <[email protected]>
examples/validation/src/getting_started_validator_decorator_function.py
Outdated
Show resolved
Hide resolved
Looks great - thank you!! Made some quick fixes to speed up for merging. The only change pending is to rethink the One thing you'll notice in the quick changes is the highlight. We need to be mindful of people's eyesight with an accidental excessive highlight - only highlight the absolute parts you're trying to show them about X example. For example, highlight the |
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.
rethink username/password snippet
I refactored this piece of code and added a integration with the Parameter utility to get data from there and raise the bar in this example. Please check if it's ok now. Thanks for advising me on the highlights mindset. It really makes a lot of sense not to add too many highlights and make the user journey hard. |
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.
Hi @leandrodamascena this looks great to me. The only concern I share is too much highlighting when browsing the docs, but I guess you already working on that. Can you ping me again when you finish the changes?
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.
Lovely job! Thank you!
Not sure why CI/CD didn't run here? I would love to have mypy check the samples for errors before merging |
Codecov Report
@@ Coverage Diff @@
## develop #1449 +/- ##
========================================
Coverage 99.89% 99.89%
========================================
Files 121 123 +2
Lines 5479 5496 +17
Branches 627 629 +2
========================================
+ Hits 5473 5490 +17
Misses 2 2
Partials 4 4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Issue number: #1370
Summary
Changes
Changes snippet fictitious names to real code snippet filenames for easier discovery and collaboration to improve/correct document snippets.
Some examples have also been refactored so that the codes are complete and there are no lint/pre-commit hooks issues.
User experience
Before:
After:
Checklist
If your change doesn't seem to apply, please leave them unchecked.
Is this a breaking change?
RFC issue number:
Checklist:
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.
View rendered docs/utilities/jmespath_functions.md
View rendered docs/utilities/validation.md