这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@arvi3411301
Copy link
Member

@arvi3411301 arvi3411301 commented Mar 12, 2020

Description

This PR fixes two issues with CLI

  1. command field is not being set in telemetry data and auto update check doesn't work if there is a PersistentPreRunE on a subcommand.
  2. command field is not being set in telemetry data if user runs hasura migrate or any other command which is not runnable.

Changelog

  • CHANGELOG.md is updated with user-facing content relevant to this PR.

Affected components

  • Server
  • Console
  • CLI
  • Docs
  • Community Content
  • Build System
  • Tests
  • Other (list it)

Related Issues

#4127

Solution and Design

  1. To set the command field in telemetry data, use ExecuteC to get the command which is executed and use the command path.
  2. On all the sub-commands which uses PersistentPreRunE, call cmd.Root().PersistentPreRun(cmd, args)

Steps to test and verify

Limitations, known bugs & workarounds

Auto update check doesn't work if a command is not runnable

@arvi3411301 arvi3411301 added the c/cli Related to CLI label Mar 12, 2020
@arvi3411301 arvi3411301 requested a review from shahidhk March 12, 2020 12:45
@hasura-bot
Copy link
Contributor

Review app for commit daa584f deployed to Heroku: https://hge-ci-pull-4095.herokuapp.com
Docker image for server: hasura/graphql-engine:pull4095-daa584fd

@arvi3411301 arvi3411301 added this to the v1.2 milestone Mar 17, 2020
@arvi3411301 arvi3411301 linked an issue Mar 25, 2020 that may be closed by this pull request
@hasura-bot
Copy link
Contributor

Review app for commit 1e59f87 deployed to Heroku: https://hge-ci-pull-4095.herokuapp.com
Docker image for server: hasura/graphql-engine:pull4095-1e59f876

@shahidhk shahidhk changed the title cli: fix command path not being set in telemetry data cli: fix command path not being set in telemetry data (close #4127) Mar 26, 2020
@shahidhk shahidhk changed the title cli: fix command path not being set in telemetry data (close #4127) cli: send command path in telemetry data Mar 26, 2020
@shahidhk shahidhk merged commit 13e8a3c into hasura:master Mar 26, 2020
@hasura-bot
Copy link
Contributor

Review app https://hge-ci-pull-4095.herokuapp.com is deleted

@shahidhk shahidhk deleted the fix-cli-telemetry branch March 26, 2020 03:08
@hasura-bot
Copy link
Contributor

Review app for commit 4378df8 deployed to Heroku: https://hge-ci-pull-4095.herokuapp.com
Docker image for server: hasura/graphql-engine:pull4095-4378df8b

anurag pushed a commit to anurag/graphql-engine that referenced this pull request Mar 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c/cli Related to CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

capture actions telemetry on CLI and server

3 participants