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

fix(gatsby): Pass pluginName to reporter.activityTimer & reporter.createProgress #37710

Merged
merged 3 commits into from Mar 1, 2023

Conversation

LekoArts
Copy link
Contributor

@LekoArts LekoArts commented Feb 28, 2023

Description

Currently when using activityTimer inside a plugin and then calling .panicOnBuild on that activity, the pluginName is not passed.

Therefore the custom error from setErrorMap can't be found (because pluginName is required).

This fixes it by optionally passing pluginName to activityTimer & createProgress so that panic and panicOnBuild methods on them can work correctly.

Tests

Updated the api-runner-node tests

Related Issues

Found this while working on #37538

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Feb 28, 2023
@LekoArts LekoArts added topic: cli Related to the Gatsby CLI and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Feb 28, 2023
@LekoArts LekoArts changed the title fix(gatsby): Pass pluginName to reporter.activityTimer fix(gatsby): Pass pluginName to reporter.activityTimer & reporter.createProgress Feb 28, 2023
@LekoArts LekoArts merged commit 21e798b into master Mar 1, 2023
@LekoArts LekoArts deleted the pass-plugin-name-to-activity-timer branch March 1, 2023 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: cli Related to the Gatsby CLI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants