Skip to content

Remove deprecated describeEnum from framework - #190076

Open
AbdeMohlbi wants to merge 2 commits into
flutter:masterfrom
AbdeMohlbi:abdemohlbi_remove_describeEnum_from_framework
Open

Remove deprecated describeEnum from framework#190076
AbdeMohlbi wants to merge 2 commits into
flutter:masterfrom
AbdeMohlbi:abdemohlbi_remove_describeEnum_from_framework

Conversation

@AbdeMohlbi

@AbdeMohlbi AbdeMohlbi commented Jul 27, 2026

Copy link
Copy Markdown
Member

Pre-launch Checklist

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

If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

@github-actions github-actions Bot added the framework flutter/packages/flutter repository. See also f: labels. label Jul 27, 2026
@AbdeMohlbi AbdeMohlbi added the CICD Run CI/CD label Jul 27, 2026
@AbdeMohlbi
AbdeMohlbi marked this pull request as ready for review July 27, 2026 17:23

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request removes the deprecated describeEnum function from diagnostics.dart along with its corresponding unit tests in diagnostics_test.dart. There are no review comments, and I have no feedback to provide.

@navaronbracke navaronbracke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

According to https://github.com/search?q=repo%3Aflutter%2Fflutter%20describeEnum&type=code

there's only these two usages, so I think we're good!

@Piinks Piinks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should open a migration guide in flutter/website to have this listed under breaking changes when it is released

@AbdeMohlbi

Copy link
Copy Markdown
Member Author

We should open a migration guide in flutter/website to have this listed under breaking changes when it is released

Is there an example that i could look at ?

@Piinks

Piinks commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

We should open a migration guide in flutter/website to have this listed under breaking changes when it is released

Is there an example that i could look at ?

Yup yup!

flutter/website#13457 is an example.

There is a template in https://github.com/flutter/website/blob/main/sites/docs/src/content/release/breaking-changes/template.md

@AbdeMohlbi

Copy link
Copy Markdown
Member Author

We should open a migration guide in flutter/website to have this listed under breaking changes when it is released

Is there an example that i could look at ?

Yup yup!

flutter/website#13457 is an example.

There is a template in https://github.com/flutter/website/blob/main/sites/docs/src/content/release/breaking-changes/template.md

opened flutter/website#13682

@AbdeMohlbi
AbdeMohlbi requested a review from Piinks August 5, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants