-
Notifications
You must be signed in to change notification settings - Fork 1
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
UI-9409 - Fix Error: Cannot perform 'get' on a proxy that has been revoked when attempting to migrate while removing widgets #125
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NZepeda there seems to be an install/build error in the CI.
Can you look into it ?
For the implementation, I would prefer to understand what the issue is.
The local stacktrace on the test case might help already.
My guess is: as widgets are removed, maybe the layout gets modified and some nested part of the layout gets removed, and then there is a failure when trying to access it in the next widgets.
@antoinetissier I just reran the CI checks from failed, it was some issue related to npm, looks like it's resolved now.
I'll dig some more, I'm not sure if that's the case because the error doesn't happen until the following line:
So it doesn't seem to be an issue with attempting to access a missing property. |
@NZepeda have you been able to investigate more ? |
@antoinetissier Yes, the issue seems to be this double usage of the |
…when attempting to migrate while removing widgets
…s on main. Updates the test and its resource
836629e
to
e141392
Compare
Summary
The issue is described in this ticket: https://activeviam.atlassian.net/browse/UI-9409.
Problem
The problem is that when attempting to run the migration script, the following error is thrown:
"TypeError: Cannot perform 'get' on a proxy that has been revoked"
. This is caused byimmer
'sproduce
function. Unfortunately, I'm not100%
why this error is being thrown in the first place. The fix I went for was to remove thatproduce
function, extract the logic into a function and add a test for it.