Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

[google_sign_in_android] Corrects typo in logs #6216

Merged
merged 7 commits into from
Sep 14, 2022

Conversation

Milvintsiss
Copy link
Contributor

Corrects minor typo in logs printed by plugin.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

@Milvintsiss Milvintsiss requested a review from camsim99 as a code owner August 8, 2022 14:02
@flutter-dashboard
Copy link

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.

Copy link
Contributor

@camsim99 camsim99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the correction! I just had a few comments. This will also need a test-exemption to land and second review to land.

CC: @stuartmorgan

@Milvintsiss Milvintsiss requested a review from camsim99 August 9, 2022 17:52
@Hixie
Copy link
Contributor

Hixie commented Aug 9, 2022

We could test this.

More importantly, shouldn't we not be printing those logs anyway?
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#only-log-actionable-messages-to-the-console
It could be made more helpful (e.g. explaining what line of code is wrong somehow), which would make it more actionable, in which case it might be more helpful.

@Milvintsiss
Copy link
Contributor Author

We could test this.

More importantly, shouldn't we not be printing those logs anyway? https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#only-log-actionable-messages-to-the-console It could be made more helpful (e.g. explaining what line of code is wrong somehow), which would make it more actionable, in which case it might be more helpful.

We should keep the first one because many users probably still use clientId field to provide serverClientId (it was the old behavior before 6.0.0) and this warning is fixable.
The other should be documented in the readme of google_sign_in and not be a warning. Usage of both clientId and serverClientId is the correct way for an iOS app and will not break anything for Android, it's just not needed/used for Android.

@stuartmorgan stuartmorgan self-requested a review August 18, 2022 20:18
Copy link
Contributor

@stuartmorgan stuartmorgan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

We could test this with an injectable logger, but it seems like it's probably not worth the overhead of adding that testing just for a very minor dev-only logging issue.

@Hixie Are you okay with a test exemption for this version of the PR?

@Hixie
Copy link
Contributor

Hixie commented Sep 13, 2022

test-exempt: based on discussions on discord, the cost of testing this outweighs the value of avoiding regressions in this code.

@stuartmorgan
Copy link
Contributor

@camsim99 this should be ready for your final approval.

@stuartmorgan stuartmorgan added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 14, 2022
@auto-submit auto-submit bot merged commit 64a2931 into flutter:main Sep 14, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 15, 2022
adam-harwood pushed a commit to adam-harwood/flutter_plugins that referenced this pull request Nov 3, 2022
mauricioluz pushed a commit to mauricioluz/plugins that referenced this pull request Jan 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App needs tests p: google_sign_in platform-android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants