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?
-
Tests added for this feature/bug -
Tested in all supported browsers -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Link to e2e tests MR added if this MR has Requires e2e tests label. See the Test Planning Process. -
Security reports checked/validated by reviewer
Edited by 🤖 GitLab Bot 🤖