Skip to content
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

Telemetry: Add globals usage to project.json #23431

Merged
merged 1 commit into from
Jul 13, 2023
Merged

Conversation

shilman
Copy link
Member

@shilman shilman commented Jul 13, 2023

Closes N/A

What I did

Record whether users are setting globals or globalTypes in their projects, to help figure out whether to invest more in this area.

How to test

Run a project and check its /project.json and/or STORYBOOK_TELEMETRY_DEBUG=1. I've tested:

  • There is no preview.js/ts => no preview metadata
  • There is a preview.js/ts
    • it doesn't set globals or globalTypes => preview: { usesGlobals: false }
    • it sets globals or globalTypes => preview: { usesGlobals: false }

@shilman shilman added maintenance User-facing maintenance tasks patch:yes Bugfix & documentation PR that need to be picked to main branch telemetry labels Jul 13, 2023
Copy link
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shilman shilman merged commit 04b9e28 into next Jul 13, 2023
@shilman shilman deleted the shilman/globals-telemetry branch July 13, 2023 08:13
This was referenced Jul 13, 2023
@JReinhold JReinhold added the patch:done Patch/release PRs already cherry-picked to main/release branch label Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance User-facing maintenance tasks patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch telemetry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants