Skip to content

[gis_web] Make maybeEnum more robust in google_identity_services_web shared file. #8999

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

Merged
merged 12 commits into from
Apr 22, 2025

Conversation

vikdubey
Copy link
Contributor

@vikdubey vikdubey commented Apr 4, 2025

When the needle value is unexpected, instead of throwing error, it'll return null now.

Fixes flutter/flutter#166548

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

@vikdubey vikdubey requested a review from ditman as a code owner April 4, 2025 12:46
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging.

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.If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

Copy link

google-cla bot commented Apr 4, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@ditman
Copy link
Member

ditman commented Apr 4, 2025

Thanks Vikash, I reached out to you internally with next steps that are only relevant for Googlers.

@stuartmorgan-g stuartmorgan-g added the triage-web Should be looked at in web triage label Apr 16, 2025
@vikdubey vikdubey requested a review from stuartmorgan-g April 17, 2025 06:13
Copy link
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

LGTM, but @ditman or another web reviewer should provide the second approval.

Copy link
Member

@ditman ditman left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for making this more robust @vikdubey!

if (value.name == needle) {
return value;
}
}
Copy link
Member

Choose a reason for hiding this comment

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

A future improvement may be to log a warning or similar when we attempt to decode a value of T that will return null, so people can report bugs. We'll see if that becomes a problem later.

@ditman ditman added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 22, 2025
@ditman ditman mentioned this pull request Apr 22, 2025
11 tasks
@auto-submit auto-submit bot merged commit 41211cf into flutter:main Apr 22, 2025
82 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 23, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 23, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Apr 23, 2025
flutter/packages@f1fc965...41211cf

2025-04-22 11042814+vikdubey@users.noreply.github.com [gis_web] Make
maybeEnum more robust in google_identity_services_web shared file.
(flutter/packages#8999)
2025-04-22 sokolovskyi.konstantin@gmail.com [video_player_web] Fix blank
first frame on iOS. (flutter/packages#9025)
2025-04-22 32538273+ValentinVignal@users.noreply.github.com [go_router]
Add missing `caseSensitive` parameter to `GoRouteData.$route`
(flutter/packages#9126)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
raju-muliyashiya pushed a commit to raju-muliyashiya/flutter_packages that referenced this pull request Apr 26, 2025
…shared file. (flutter#8999)

When the needle value is unexpected, instead of throwing error, it'll return null now.

Fixes flutter/flutter#166548

## Pre-Review Checklist

[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
androidseb pushed a commit to androidseb/packages that referenced this pull request Jun 8, 2025
…shared file. (flutter#8999)

When the needle value is unexpected, instead of throwing error, it'll return null now.

Fixes flutter/flutter#166548

## Pre-Review Checklist

[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
FMorschel pushed a commit to FMorschel/packages that referenced this pull request Jun 9, 2025
…shared file. (flutter#8999)

When the needle value is unexpected, instead of throwing error, it'll return null now.

Fixes flutter/flutter#166548

## Pre-Review Checklist

[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App platform-web triage-web Should be looked at in web triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[gis_web] Make maybeEnum more robust.
3 participants