Reference all Release data using `camelCase`
What does this MR do?
Runs convertObjectPropsToCamelCase(releaseData, { deep: true })
on all data fetched from the Release API so that all Release-related components can access Release data using camelCase
instead of snake_case
.
Also...
Since convertObjectPropsToCamelCase(release, { deep: true }
returns a deep clone of the original object (release
, in this example), I also removed a few instance of JSON.parse(JSON.stringify( ... ))
in favor of just using convertObjectPropsToCamelCase
.
Notes
There are still a few instances in the test files that reference properties using snake_case
, but this is because they are testing against the raw values of the API response, so they do not need to be updated to use camelCase
.
This is background work towards the dedicated Release page effort described in #32827 (closed).