-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[google_maps_flutter] remove warning when cloudMapId is used #6821
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
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 "@test-exemption-reviewer" in the #hackers channel in Chat (don't just cc them here, they won't see it! Use 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. |
@ditman can this be test exempted ? |
The reason this PR eliminates the warning is that it changes the behavior of the plugin; it is not exempt. |
I'm not sure what behavior change you are referring to beside the log output ? |
Yes, exactly.
It does have an impact on behavior though; calling the underlying API incorrectly is causing a warning. That's why the issue and the PR exist in the first place. |
It seems to me that it'd be more appropriate to test that there is no warning (the end user behavior). You probably have good reasons to suggest that alternative. I'm interested in having those reasons here in case I end up having some time for this in the future. My guess is that testing for warnings would be harder to write. However this kind of test could be reused for other warnings, in other packages as well, so may be worth it. Not sure if there is a precedent to this (if not, I was thinking about monkey patching console.warn and console.error to emit events) |
We want our tests to test the code we control. We control whether we are making a combination of API calls that the docs explicitly say we shouldn't. We don't control what the result of doing that is, whether it's a warning to the console or something else.
We don't want to intentionally introduce tests that are highly susceptible to out-of-band breakage due to changes in code we don't control. |
fix #fix #149060
should be test-exempt, just warning removal.
List which issues are fixed by this PR. You must list at least one issue.
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style, or this PR is exempt from CHANGELOG changes.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.