Telemetry is on by default **with no warning**

Aperta
#4,900 1 commento 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
28/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
cli

Direzione di ricerca

Inizia eseguendo npx @ionic/cli help dopo aver rimosso ~/.ionic/, quindi traccia i punti di ingresso della configurazione e della guida al primo avvio della CLI. Verifica come viene creata l'impostazione telemetry e come viene esposta tramite ionic config; il lavoro è completato quando gli utenti ricevono un avviso al primo avvio e possono scoprire come ispezionare o modificare le impostazioni della telemetria.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

triage

Description:

Ionic collects telemetry by default, does not warn users, does not mention it on first run, and hides the config in a way that cannot be discovered simply with a ionic help (this used to work in ionic v3 when telemetry was a top-level command.

Steps to Reproduce:

  1. remove local ionic settings:
rm -rf ~/.ionic/
  1. in a new window, just run the help:
npx @ionic/cli help
  1. observe that ~/.ionic/config.json was created with "telemetry": true and scan the terminal output

Output:

package.json:

{
  "version": "6.20.1",
  "telemetry": true,
  "npmClient": "npm",
  "tokens.telemetry": "...UUID..."
}

Local screen output makes no mention of the telemetry setting:

   _             _
  (_) ___  _ __ (_) ___
  | |/ _ \| '_ \| |/ __|
  | | (_) | | | | | (__
  |_|\___/|_| |_|_|\___| CLI 6.20.1


  Usage:

    $ ionic <command> [<args>] [--help] [--verbose] [--quiet] [--no-interactive] [--no-color] [--confirm] [options]

  Global Commands:

    completion ...................... (experimental) Enables tab-completion for
                                      Ionic CLI commands.
    config <subcommand> ............. Manage CLI and project config values
                                      (subcommands: get, set, unset)
    deploy <subcommand> ............. (paid) Appflow Deploy functionality
                                      (subcommands: manifest)
    docs ............................ Open the Ionic documentation website
    info ............................ Print project, system, and environment
                                      information
    init ............................ (beta) Initialize existing projects with
                                      Ionic
    login ........................... Log in to Ionic
    logout .......................... Log out of Ionic
    signup .......................... Create an Ionic account
    ssh <subcommand> ................ Commands for configuring SSH keys
                                      (subcommands: add, delete, generate, list,
                                      setup, use)
    start ........................... Create a new project

  Project Commands:

    You are not in a project directory.

NOTE: THERE IS NO TELEMETRY WARNING ON FIRST RUN WITH ANY COMMAND

If you wipe the config and start a new project without the wizard, you can search the output and notice that it never once mentions the telemetry.

Lingua principale
TypeScript
Stelle
2k
Fork
681
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ionic-team/ionic-cli

Tutte le issue di ionic-team/ionic-cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.