[go_router_builder] Changes the parameter name of the auto-generated go method from buildContext to context#1635
Conversation
|
This pull request was opened against a branch other than main. Since Flutter pull requests should not normally be opened against branches other than main, I have changed the base to main. If this was intended, you may modify the base back to master. See the Release Process for information about how other branches get updated. Reviewers: Use caution before merging pull requests to branches other than main, unless this is an intentional hotfix/cherrypick. |
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
1 similar comment
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
context from buildContext|
ci.yaml validation is failing, can you rebased off the main branch to see if it fixes it? |
88f59d0 to
86ab5d0
Compare
|
Thanks for the review 🙏
I've rebased now 🚀 |
There was a problem hiding this comment.
nit: you changed the parameter. The argument is the thing you pass in. 😄 – not a big deal
There was a problem hiding this comment.
Thanks, I fixed it and squashed CHANGELOG changes 👍
86ab5d0 to
394f239
Compare
chunhtai
left a comment
There was a problem hiding this comment.
sorry I just realize there is no test, can you add a test to verify the generated code contains the change?
|
The examples already do that! You're good
…On Thu, Apr 28, 2022, 16:58 chunhtai ***@***.***> wrote:
***@***.**** requested changes on this pull request.
sorry I just realize there is no test, can you add a test to verify the
generated code contains the change?
—
Reply to this email directly, view it on GitHub
<#1635 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAEFCQGEQHYXMDSQGZHKQLVHMQ3BANCNFSM5UN3VH4Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Are examples run as part of the test? |
@chunhtai I'm not 100% sure: flutter/flutter#102799 |
394f239 to
e704748
Compare
After all, do I need to write a test? |
e2fb895 to
0d796d4
Compare
chunhtai
left a comment
There was a problem hiding this comment.
LGTM, the ci should pick up test in example
|
@mono0926 there may be a conflict in Changelog (looking at build failure). can you rebase off the latest main branch and fix the conflict? |
- Co-authored-by: chunhtai <[email protected]> - Fix CHANGELOG based on feedback from @kevmoo
0d796d4 to
f1a6b33
Compare
Changes the parameter name of the auto-generated
gomethod frombuildContexttocontext.buildContextis redundant, andcontextis more popular and concise.It is also more convenient when writing code if it is completed as
contextinstead ofbuildContext.Screen.Recording.2022-04-27.at.13.58.50.mov
List which issues are fixed by this PR. You must list at least one issue.
If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.
Pre-launch Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style.///).If you need help, consider asking for advice on the #hackers-new channel on Discord.