Skip to content

OBPIH-6153 Fix assigning bidirectional association between Picklist a…#4618

Merged
awalkowiak merged 1 commit intofeature/upgrade-to-grails-3.3.10from
OBPIH-6153-fix
May 15, 2024
Merged

OBPIH-6153 Fix assigning bidirectional association between Picklist a…#4618
awalkowiak merged 1 commit intofeature/upgrade-to-grails-3.3.10from
OBPIH-6153-fix

Conversation

@kchelstowski
Copy link
Collaborator

…nd Requisition

TL:DR - we've been living with this bug forever, but it has not been yet noticed, because we have not returned the picklist in the toJson of the StockMovement, that I've added recently.
The problem is that the 1:1 association between requisition and picklist has been missing one part - we set the requisition for the picklist, but we don't set the picklist for the requisition - that caused an issue that when serializing the stock movement (in toJson), the requisition's picklist is in fact null.
The missing association is obviously detected and added automatically by Hibernate, but after the session is closed, so after refreshing the page and re-fetching the SM, everything works correctly, because the association is added, but it didn't work (picklist was treated as null) when returning the SM from the initial request.

If anyone is interested in details of that issue, let me know, so I can explain it in more details or record a video with the debugger, but I hope it is kinda self-explanatory.

Copy link
Member

@jmiranda jmiranda left a comment

Choose a reason for hiding this comment

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

Don't merge this. Let's discuss on the tech huddle tomorrow.

@awalkowiak awalkowiak merged commit 82beb41 into feature/upgrade-to-grails-3.3.10 May 15, 2024
@awalkowiak awalkowiak deleted the OBPIH-6153-fix branch May 15, 2024 16:02
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.

6 participants