-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat(data): update PR template with E2E test check for code examples; update docs link example to point to an Amplify-owned resource #5161
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
_ref: MDX: `[link](https://link.com)` | ||
HTML: `<a href="https://link.com">link</a>`_ |
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.
link.com
is an actual website, but not owned by Amplify.
Co-authored-by: Tim Nguyen <[email protected]>
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.
I have questions... How are non-Amplify team members expected to participate in this? Is there a way to permanently associate a test with a code snippet? How does creating E2E tests for code snippets impact our writing guidelines?
@rachelnabors - when you say
Let me know if you have further questions! |
I see. I recommend that, rather than adding another tick box that doesn't mean anything to external contributors, we add mechanisms to ensure each line of code added has an associated test, like we use to ensure PRs that remove files have redirects. That would be a good part of a project we're working on. I'll put you in touch with the right folks on the effort. |
Pulled out the fix for updating the Closing this PR due to its age and the docs site has since been refactored. Please feel free to update with latest and re-open if you feel it is still relevant, thanks. |
Description of changes:
While adding TypeScript examples to our DataStore docs, I noticed several existing code examples that were broken. See:
#5156
#5157
#5168
#5231
aws-amplify/amplify-js#11006
aws-amplify/amplify-js#9618
Related docs fixes:
#5155
#5140
Updating our PR template with a check for new / updated E2E tests for all new / updated code examples in the docs.
Related GitHub issue #, if available:
Instructions
If this PR should not be merged upon approval for any reason, please submit as a DRAFT
Which product(s) are affected by this PR (if applicable)?
Which platform(s) are affected by this PR (if applicable)?
Please add the product(s)/platform(s) affected to the PR title
Checks
Does this PR conform to the styleguide?
Does this PR include filetypes other than markdown or images? Please add or update unit tests accordingly.
Are any files being deleted with this PR? If so, have the needed redirects been created?
Are all links in MDX files using the MDX link syntax rather than HTML link syntax?
ref: MDX:
[link](https://link.com)
HTML:
<a href="https://link.com">link</a>
When this PR is ready to merge, please check the box below
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.