New Feature: Support command objects with maps of complex objects
Open
status: acknowledged
type: enhancement
- Dominant language
- Groovy
- Stars
- 2.9k
- Forks
- 975
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 92
Description
1. Create command object class
```
class SaveProductsCmd {
Map products
}
```
1. Create action with command object `SaveProductsCmd`
2. Send post request to action with data.
Expectation - product objects in map:
`cmd.products == ["a": new Product(...), "b": new Product(...)]`
Reality - maps in map:
`cmd.products == ["a": [title: ...], "b": [title: ...]]`
Contributor guide
Research direction
Start by locating the command-object binding path used by the action described here, then reproduce the POST with a SaveProductsCmd containing a Map. The work is done when cmd.products contains Product instances keyed by the submitted map keys rather than nested maps.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100