question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Disabling telemetry from the UI has no effect

See original GitHub issue

Meltano Version

2.6.0

Python Version

3.8

Bug scope

Other

Operating System

Linux - python:3.8 Docker image

Description

Reproduction steps:

  1. docker run --entrypoint=/bin/bash -p 5000:5000 -it python:3.8
    
  2. pip install pipx && pipx install meltano==2.6.0 && pipx ensurepath && bash
    
  3. meltano init testproject && cd testproject && meltano --log-level=debug ui
    
  4. Open your browser (n.b. I used Firefox) to http://localhost:5000
  5. In another shell within the environment, create a ProjectSettingsService to observe that send_anonymous_usage_stats is True:
    >>> from meltano.core.project_settings_service import ProjectSettingsService
    >>> from meltano.core.project import Project
    >>> ProjectSettingsService(Project('/testproject')).get_with_metadata('send_anonymous_usage_stats')
    (True, {'name': 'send_anonymous_usage_stats', 'source': <SettingValueStore.DEFAULT: 'default'>, 'setting': <SettingDefinition send_anonymous_usage_stats (boolean)>, 'expandable': False, 'auto_store': <SettingValueStore.MELTANO_YML: 'meltano_yml'>, 'overwritable': True})
    
    At this point, meltano.yml has the following content (modulo the random project ID):
    version: 1
    default_environment: dev
    environments:
    - name: dev
    - name: staging
    - name: prod
    project_id: testproject-d2c1652c-911d-4ef1-bd54-146c4d2573f5
    
    And .meltano/analytics.json has "send_anonymous_usage_stats": true.
  6. Click the “Disable” button in the popup at the bottom right of the browser: image No browser console errors/warnings were observed when this button was clicked.
  7. Before exiting meltano ui, repeat step 5, and observe the same result.
  8. Exit meltano ui by entering Ctrl-C in it’s terminal (i.e. send it SIGINT), then wait for it to cleanly shut down.
  9. Repeat step 5, and observe the same result.

Expected behaviour:

Either step 7 or step 9 (depending on the implementation of the feature) should have caused the send_anonymous_usage_stats setting to be changed from True to False.

The long output of meltano --log-level=debug ui can be provided upon request, but it didn’t seem to have any interesting information. No log lines were emitted when the “Disable” button was clicked.

Code

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
pandemicsyncommented, Sep 22, 2022

@WillDaSilva it looks like it was supposed to obey the meltano config:

https://github.com/meltano/meltano/blob/dfd9650170ff97fd69fdff7ac8dc7dc0841bf663/src/webapp/src/main-embed.js#L21

https://github.com/meltano/meltano/commit/124a3ae093131773b4e01510e1a5a3ff3da3fee6

That popup may always present to comply with cookie consent laws now, or its a bug, or something else. (this is all way before my time, just poking around and sharing)

1reaction
WillDaSilvacommented, Sep 22, 2022

I have updated https://github.com/meltano/meltano/pull/6783 to remove the UI telemetry code. Alternatively, we can keep it around but disable it until we resolve the configuration issue, but I’d rather not keep unused code around. If we want to re-enable it later, we can refer to the git history.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable Telemetry and Data Collection in Windows 10
Here is a solution for editions other than Enterprise to disable Telemetry and Data Collection in Windows 10.
Read more >
Should You Disable Windows 10 Telemetry? - Smart Buyer
Microsoft says telemetry helps improve user experience and fix potential issues. Obviously this raises privacy concerns for many users.
Read more >
【Solved】7 Ways to Fix Microsoft Compatibility Telemetry ...
The first thing that you should do to combat the high disk usage of Microsoft telemetry is to disable microsoft compatibility telemetry.
Read more >
How to Disable Telemetry Reporting
enableTelemetry setting to false . From File > Preferences > Settings, add the following option to disable telemetry reporting, this will ...
Read more >
309093 - [telemetry] Telemetry tests intermittently timing out
The bug is inherently racy, tracking down why a thread is now sometimes allocated exactly when glib does fork, or even worse, why...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found