I’m in a collection, let’s call it Houses. This house has rooms.
Houses.hasMany(Rooms)
In the house summary view, I display the largest room. When no rooms has been added to my house, this section is empty.
From the rooms related data, I click + and add a room. The newly added room is displayed on the related data table view.
But if I click on the summary tab, the “Largest room section” is still empty. I need to refresh the page in order to have it displayed.
I have been wondering how I can customize the response.send(...); so I can have my await recordCreator.serialize(new created room)
and { refresh: { relationships: ['houseRooms'] } }
In my case, the “largest room” is the “ongoing management mandate” or “previous management agent”. It’s just a bunch of smart fields grouped into a section of the parent summary view.
Indeed, I’m able to reproduce the issue.
It seems to be a bug as in the create record API response, the smart field “largest room” seems to be well updated, but it has no effect on the summary view…
I’m opening a bug report so that we can tackle this later on.