Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kie-issues#937: On the DMN Editor, adding a DRD then pressing "Undo", makes the Editor will crash #2304

Merged
merged 4 commits into from
May 8, 2024

Conversation

ljmotta
Copy link
Contributor

@ljmotta ljmotta commented May 7, 2024

Closes: apache/incubator-kie-issues#937

Description

This PR changes the diagram.drdIndex to diagram.__unsafeDrdIndex. Now, to retrieve the drdIndex it's required to use the computed getDrdIndex() method. This method will check if the current __unsafeDrdIndex is pointing to a valid DRD index. In a positive case, it will return the current value. Otherwise, it will return the last available index.

@ljmotta ljmotta added pr: waiting-for-ci CI is still running or broken. area:dmn labels May 7, 2024
@ljmotta ljmotta self-assigned this May 7, 2024
@ljmotta ljmotta added pr: waiting-for-review Waiting for peer reviews and removed pr: waiting-for-ci CI is still running or broken. labels May 8, 2024
Copy link
Member

@porcelli porcelli left a comment

Choose a reason for hiding this comment

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

I understand that we still don't have the proper setup to add to this PR a test coverage that would prevent this issue in the future.

this is tracked by this apache/incubator-kie-issues#1174

@tiagobento tiagobento merged commit 6e4f2ae into apache:main May 8, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:dmn pr: waiting-for-review Waiting for peer reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

On the DMN Editor, adding a DRD then pressing "Undo", makes the Editor will crash.
4 participants