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: adopt new batch-lib version [NONE] #950

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

marcolink
Copy link
Member

@marcolink marcolink commented Nov 8, 2023

Align with the changes from the new major version contentful-batch-libs@10

cc @Brad-Turner

@marcolink marcolink marked this pull request as ready for review November 8, 2023 16:46
@marcolink marcolink requested a review from a team as a code owner November 8, 2023 16:46
@marcolink marcolink force-pushed the feat/adopt-new-batch-libs-version branch from 35f5640 to 2d308c7 Compare November 9, 2023 06:55
Copy link
Contributor

@Brad-Turner Brad-Turner left a comment

Choose a reason for hiding this comment

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

Looks good to me. Would be nice to reduce the reliance on lodash 🤔

const errorLog = log.filter((logMessage) => logMessage.level !== 'info' && logMessage.level !== 'warning')
const displayLog = log.filter((logMessage) => logMessage.level !== 'info')
const errorLog = log.filter(isErrorLog)
const displayLog = log.filter(isDisplayLog)
Copy link
Contributor

Choose a reason for hiding this comment

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

log only accepts messages with levels error or warn, I think this filter does nothing?

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