ionic-team / ionic-team/ionic-cli

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

Đang mở
#4,900 1 bình luận 2 reaction 0 người được giao Xem trên GitHub
triage
Ngôn ngữ chính
TypeScript
Star
2k
Fork
682
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**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:

```bash
rm -rf ~/.ionic/
```

2) in a new window, just run the help:

```bash
npx @ionic/cli help
```

3) 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 [] [--help] [--verbose] [--quiet] [--no-interactive] [--no-color] [--confirm] [options]

Global Commands:

completion ...................... (experimental) Enables tab-completion for
Ionic CLI commands.
config ............. Manage CLI and project config values
(subcommands: get, set, unset)
deploy ............. (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 ................ 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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start by running `npx @ionic/cli help` after removing `~/.ionic/`, then trace the CLI's first-run configuration and help entry points. Check how the `telemetry` setting is created and exposed through `ionic config`; done means users receive a first-run warning and can discover how to inspect or change telemetry settings.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
typescript
Lĩnh vực
cli
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
28/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.