Skip to content

Impossible to edit array of pointers in v2.2.0 #1770

Closed
@johanarnor

Description

@johanarnor

New Issue Checklist

Issue Description

In v2.2.0 it's no longer possible to properly edit the value of an array containing pointers. #1727 introduces a click action that overrides the standard in-place edit box.

I therefore tried to edit the data via the modal, but this would instead corrupt the data. The data is displayed like this (which if saved will corrupt the data)

[
  {"objectId": "3EAyCmr7BU"},
  {"objectId": "EAGB5dfkCe"}
]

instead of the actual raw format.

[
  {"__type":"Pointer","className":"Item","objectId":"3EAyCmr7BU"}, 
  {"__type":"Pointer","className":"Item","objectId":"EAGB5dfkCe"},
]

However this issue with the modal wasn't introduced in v2.2.0, since it's present in v2.1.0. Another interesting behaviour is that the whole object will be "inflated" (i.e. all fields will be populated) if you visit that object in the same browser tab prior to trying to edit the array of pointers.

Also, a CTRL+C puts "[object Object]" in the clipboard instead of the actual raw object.

Expected Outcome

I'm not sure what a good solution would be here. Maybe just remove the click action to bring up the original edit box.

I've never used the modal, so I'm not really sure what's the expected outcome here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions