Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-136708

Actions are not being calculated for nested fields

    Details

      Description

      Hello, I’ve been working on an organizations chart. I extensively use nestedFields to significantly reduce the amount of fetch.In order to get these data (see the picture) I make only one API call to
      /o/headless-admin-user/v1.0/organizations/42017?nestedFields=childOrganizations%2CorganizationAccounts%2CuserAccounts
       
      The problem comes with actions. They don’t seem well managed on nested fields. Here’s an example of United Stated (Organization) when retrieved as a nestedField of Minium (Organization Parent)

      "childOrganizations" : [ {
      "actions" :

      { "get" : \{ }

      ,
      "replace" : { },
      "update" : { },
      "delete" : { }
      },
      [...],
      "id" : "42022",
      "name" : "United States"
      } ]

      If I try to get United States by making a get using its id, the actions object work fine
      [\{{http://localhost:9000/o/}}\{{headless}}\{{-admin-user/v1.0/organizations/42022}}]
      {{}}

      The thing is... can we provide actions in nested fields? if we can... how? can we reuse the same logic?
       
       

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            javier.gamarra Javier Gamarra
            Engineering Assignee:
            Javier de Arcos Velilla
            Recent user:
            Enterprise Release HU
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                7.1.X
                7.2.X
                7.3.X
                7.4.13 DXP GA1
                Master