-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: 0.13 analytics improvements #4179
Conversation
d57d453
to
a082b5c
Compare
a082b5c
to
ecf8caf
Compare
4c15109
to
c9d0388
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two comments, otherwise looks great! 🙏
core/src/analytics/analytics.ts
Outdated
@@ -92,6 +94,11 @@ interface ProjectMetadata { | |||
servicesCount: number | |||
testsCount: number | |||
moduleTypes: string[] | |||
actionsCount: number | |||
actionBuildsCount: number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick but feels like this should be called buildActionCount
, deployActionCount
, etc
core/src/analytics/analytics.ts
Outdated
@@ -125,6 +132,7 @@ interface CommandEvent extends EventBase { | |||
type: "Run Command" | |||
properties: PropertiesBase & { | |||
name: string | |||
commandIteration: number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should skip this for now since we're changing this behaviour in general:
- Introduce the concept of a parent session (with a
parentSessionId
) - This would be a persistent session like
garden dev
- Every time you run a command within that session, via the terminal / Cloud / Desktop, that gets counted as a single session within the parent session.
- With this, a command can't technically be run twice. Each session is exactly a single command but it can have a parent command. Only persistent commands like
garden dev
can be parent commands.
@eysi09 I've re-enabled the failing nock tests, if this turns out to be an issue still we can re-add the skip. |
Added the skip back because those tests keep on failing. |
What this PR does / why we need it:
Adapt the analytics to 0.13 by including project stats for action kinds.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer: