Skip to content

OBGM-558 Fix accessing nested map values#4153

Merged
awalkowiak merged 1 commit intofeature/upgrade-to-grails-3.3.10from
OBGM-558-unable-to-receive-when-packing-levels-added
Jul 10, 2023
Merged

OBGM-558 Fix accessing nested map values#4153
awalkowiak merged 1 commit intofeature/upgrade-to-grails-3.3.10from
OBGM-558-unable-to-receive-when-packing-levels-added

Conversation

@drodzewicz
Copy link
Collaborator

No description provided.

@drodzewicz drodzewicz self-assigned this Jul 10, 2023
// Bind the container
PartialReceiptContainer partialReceiptContainer =
partialReceipt.findPartialReceiptContainer(containerMap["container.id"])
partialReceipt.findPartialReceiptContainer(containerMap.container?.id)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have come across this issue already several times where we are trying to access nested map values using strings like
map["key1.key2.key3"] or map.get("key1.key2.key3").
I guess the newest version of Groovy has removed this feature so the alternative way is to use the key chaining with null safety.
I was thinking of maybe creating a spike ticket to investigate and fix places where this exact problem can be found, but I am not sure if it is a good idea. I guess we'll talk about it in the tech-hiddle

@awalkowiak awalkowiak merged commit 532f3d6 into feature/upgrade-to-grails-3.3.10 Jul 10, 2023
@awalkowiak awalkowiak deleted the OBGM-558-unable-to-receive-when-packing-levels-added branch July 10, 2023 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants