Skip to content

Support for ignore rules in 'convertObjectPropsToCamelCase' helper

What does this MR do?

This MR enhances convertObjectPropsToCamelCase within app/assets/javascripts/lib/utils/common_utils.js to accept two additional params within options param;

  • dropKeys: An array of strings which can contain property names that you want to discard while creating new object with converted property names.
  • allowKeys: An array of strings which can contain property names that you want to leave untouched (i.e. keep in snake_case) while creating new object with converted property names.

Does this MR meet the acceptance criteria?

Edited by 🤖 GitLab Bot 🤖

Merge request reports