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

Update some more of the cms imports to use local-dev-lib #977

Merged
merged 10 commits into from
Feb 5, 2024

Conversation

brandenrodgers
Copy link
Contributor

Description and Context

Updating imports for cli-lib/functions, cli-lib/modules, and cli-lib/templates to pull from their new local-dev-lib counterparts.

Screenshots

TODO

Who to Notify

@brandenrodgers
Copy link
Contributor Author

This is ready for review now, although it's dependent on the latest changes over in local-dev-lib. We will need to cut a new patch release of LDL before merging/releasing this.

Copy link
Contributor

@camden11 camden11 left a comment

Choose a reason for hiding this comment

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

Tested and works well! Should be good to merge once LDL update is out


// Update the log level in local-dev-lib's instance of the logger
// This will evenutally replace cli-lib's version of it
setLocalDevLibLogLevel(LOG_LEVEL.DEBUG);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I realized that certain log statements in local-dev-lib were not working correctly. It was because the default log level is NONE, and we were only setting the log level to LOG for the cli-lib instance of the logger.

@camden11
Copy link
Contributor

camden11 commented Feb 1, 2024

Good catch with the log level stuff. Also this whole PR is a pretty solid case against log callbacks. Looks like there are some tests failing but otherwise looks good

@brandenrodgers
Copy link
Contributor Author

I updated everything that uses logCallbacks in response to: HubSpot/hubspot-local-dev-lib#95

Copy link
Contributor

@camden11 camden11 left a comment

Choose a reason for hiding this comment

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

Log callback stuff looks good!

@brandenrodgers brandenrodgers merged commit 07e9b17 into master Feb 5, 2024
1 check passed
@brandenrodgers brandenrodgers deleted the br-update-cms-imports branch February 5, 2024 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants