-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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: Strip out preset from addon name #18442
Conversation
also move getStorybookMetadata method to the bottom so it's used after the definition of computeStorybookMetadata
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 56694e9. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
@@ -204,3 +188,19 @@ export const computeStorybookMetadata = async ({ | |||
hasStorybookEslint, | |||
}; | |||
}; | |||
|
|||
let cachedMetadata: StorybookMetadata; |
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.
no changes here, just moved the code down
Codecov Report
@@ Coverage Diff @@
## next #18442 +/- ##
=======================================
Coverage 32.01% 32.01%
=======================================
Files 975 975
Lines 19234 19234
Branches 4033 4033
=======================================
Hits 6158 6158
- Misses 12512 12513 +1
+ Partials 564 563 -1
Continue to review full report at Codecov.
|
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.
LGTM
…eset Telemetry: Strip out preset from addon name
Issue: N/A
What I did
Take into account that some addons are registered with
'addon-name/preset'
and strip that out in the metadata.Also move getStorybookMetadata method to the bottom so it's used after the definition of computeStorybookMetadata, as eslint has warned:
How to test
If your answer is yes to any of these, please make sure to include it in your PR.