Skip to content

Add informative messaging for flutter config when on a feature branch #132213

Closed

Description

@eliasyishak

Is there an existing issue for this?

Steps to reproduce

1. Run flutter --disable-telemetry to disable telemetry (it should say Analytics reporting disabled.)
2. Run flutter config to see the current status of analytics opt in (it should sayAnalytics reporting is currently disabled. at the bottom)
3. Run flutter --enable-telemetry to re-enable it, it should say (it should say Analytics reporting enabled.) 4. Run flutter configagain... it still saysAnalytics reporting is currently disabled.` at the bottom even though the configuration files say it is enabled

Turns out that this issue was a result of not being on the main/master branch when running flutter config. Analytics is always suppressed when the developer is on a feature branch.

Instead, we should update the output of flutter config to print out that analytics is disabled/suppressed for the current command invocation because they are on a feature branch.

Possible example for message when running from a feature branch

// Old
Analytics reporting is currently disabled.

// New
Analytics reporting is currently disabled when running from feature branch.

Activity

  1. added
    P1
    team-tool
    on Aug 9, 2023
  2. self-assigned this
    on Aug 9, 2023
  3. eliasyishak commented on Aug 9, 2023

    @eliasyishak
    ContributorAuthor

    This is my mistake, this is not a bug. This is working as intended when you're on a feature branch per the logic found here

    The conditional check here is triggered because my version begins with [user-branch] so the flutter tool automatically suppressed analytics which resulted in the Analytics reporting is currently disabled. being printed when running flutter config

    It works as expected when running it from the master/main channel.

    fyi @Hixie

  4. Hixie commented on Aug 9, 2023

    @Hixie
    Contributor

    That makes sense. Can we make the message say why telemetry is disabled? Since both you and I got confused about it we're probably not the only ones. :-)

  5. reopened this on Aug 9, 2023
  6. eliasyishak commented on Aug 9, 2023

    @eliasyishak
    ContributorAuthor

    That makes sense. Can we make the message say why telemetry is disabled? Since both you and I got confused about it we're probably not the only ones. :-)

    That's a good point, I'll downgrade the priority and update the desc!

  7. added
    P2
    and removed
    P1
    on Aug 9, 2023
  8. changed the title [-]Running `flutter config` shows analytics as always disabled[/-] [+]Add informative messaging for `flutter config` when on a feature branch[/+] on Aug 9, 2023
  9. added
    triaged-tool
    on Feb 8, 2024
  10. removed their assignment
    on Feb 8, 2024
  11. christopherfujino commented on Feb 8, 2024

    @christopherfujino
    Contributor

    @CoderDake This might make a good tool starter bug. Feel free to reach out to @eliasyishak if you need more context.

  12. added
    tool-still-valid
    on Jul 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2team-tooltool-still-validtriaged-tool

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions