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(FEC-9716): An array doesn't merged into plugin config #524

Merged

Conversation

SivanA-Kaltura
Copy link
Contributor

@SivanA-Kaltura SivanA-Kaltura commented Feb 8, 2022

Description of the Changes

If an array in plugin config contains an object item, call removeUnevaluatedExpression on it instead of filtering it out

Resolves FEC-9716

CheckLists

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • test are passing in local environment
  • Travis tests are passing (or test results are not worse than on master branch :))
  • Docs have been updated

@SivanA-Kaltura SivanA-Kaltura requested a review from a team February 8, 2022 10:18
product[key] = value.filter(index => isValueEvaluated(index));
product[key] = value
.map(item => {
if (Utils.Object.isObject(item) && typeof item !== 'function' && !Utils.Object.isClassInstance(item)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Move this condition to const and reuse also above.
Also, can you move all this array handling to a function?

@SivanA-Kaltura SivanA-Kaltura merged commit 773171d into master Feb 8, 2022
@SivanA-Kaltura SivanA-Kaltura deleted the FEC-9716-support-object-arrays-in-plugin-config branch February 8, 2022 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants