Project

General

Profile

Refactor #25913

Add helpers for snake and camel case

Added by Ondřej Pražák 11 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Category:
JavaScript stack
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

While our API serves JSON with snake case keys, js uses camel case. We need to transform the JSON keys to camel case to remove linting errors and do the opposite when posting data to server. As a developer, I expect that core will provide a convenient way how to do this.


Related issues

Related to Katello - Refactor #26070: Use propsToSnakeCase from coreClosed

Associated revisions

Revision 242b77fe (diff)
Added by Ondřej Pražák 10 months ago

Fixes #25913 - Add helpers for snake and camel case

History

#1 Updated by The Foreman Bot 11 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6433 added

#2 Updated by Marek Hulán 10 months ago

  • Fixed in Releases 1.22.0 added

#3 Updated by Ondřej Pražák 10 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Ondřej Pražák 10 months ago

#5 Updated by Tomer Brisker 8 months ago

  • Category set to JavaScript stack

Also available in: Atom PDF