Simplify submitted variables structure for mutation

Created on 20 September 2024, 3 months ago

Problem/Motivation

The current implementation requires an unnecessary complex data structure to be submitted for a mutation to succeed.

Steps to reproduce

For instance, for a property holding multiple values like "myprop", multiple elements need to be submitted:

{
   "elements":[
      {
         "element":"myprop[0]",
         "value":"myvalue1"
      },
      {
         "element":"myprop[1]",
         "value":"myvalue2"
      }
   ]
}

Proposed resolution

The following, simplified structure would be easier to gather and submit.

{
   "elements":[
      {
         "element":"myprop",
         "value": ["myvalue1", "myvalue2"]
      }
   ]
}

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

RTBC

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024