You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "antonio-tg (via GitHub)" <gi...@apache.org> on 2024/08/07 18:55:26 UTC

[I] ENABLE_JAVASCRIPT_CONTROLS use [superset]

antonio-tg opened a new issue, #29883:
URL: https://github.com/apache/superset/issues/29883

   ### Bug description
   
   I have Superset 2.1.3 in production and I would like to upgrade to 4.0.2, however a feature that works great in 2.1.3 has been deprecated in 4.0.2, the feature is the option to use JS code in maps, that is:
   
   ENABLE_JAVASCRIPT_CONTROLS
   
   Therefore I would like your help to find an alternative and be able to solve this problem.
   
   ### How to reproduce the bug
   
   Upgrade from Superset 2.1.3. to 4.0.2
   
   ### Screenshots/recordings
   
   The map look like this in superset 2.1.3:
   
   ![mapa_normal](https://github.com/user-attachments/assets/a7cbdcb1-8e74-498c-942e-b54693b26807)
   
   In the newest supeset look equal, but when I place the mouse cursor over the map this happend:
   
   ![error](https://github.com/user-attachments/assets/0fcd7cc8-3a02-40db-b444-f9a0f77a34b8)
   
   I mean this:
   ```log
   An error occurred while rendering the visualization: Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=EvalError%3A%20Refused%20to%20evaluate%20a%20string%20as%20JavaScript%20because%20'unsafe-eval'%20is%20not%20an%20allowed%20source%20of%20script%20in%20the%20following%20Content%20Security%20Policy%20directive%3A%20%22script-src%20'self'%20'strict-dynamic'%20'nonce-7ZywRWntR57icaAOAZiKN_Qp24uqef_N'%22.%0A&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
   ```
   
   
   ### Superset version
   
   4.0.2
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   This feature is really important to my users so I'll be so thankful if you could help me with this.
   
   ### Checklist
   
   - [X] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [X] I have searched the GitHub issue tracker and didn't find a similar bug report.
   - [X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] ENABLE_JAVASCRIPT_CONTROLS use [superset]

Posted by "antonio-tg (via GitHub)" <gi...@apache.org>.
antonio-tg commented on issue #29883:
URL: https://github.com/apache/superset/issues/29883#issuecomment-2286849750

   Thank you very mucho dear @harshit2283, your example allow me to solve my problem, only that in my case I'm in superset 4.0.2 so the two changes where made in the same file.
   ![solution_bug](https://github.com/user-attachments/assets/a025e7b0-0599-4f3a-9415-380e7da1795b)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] ENABLE_JAVASCRIPT_CONTROLS use [superset]

Posted by "harshit2283 (via GitHub)" <gi...@apache.org>.
harshit2283 commented on issue #29883:
URL: https://github.com/apache/superset/issues/29883#issuecomment-2286540283

   Likely due to Talisman, please refer https://github.com/apache/superset/issues/25871#issuecomment-1967064535


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] ENABLE_JAVASCRIPT_CONTROLS use [superset]

Posted by "antonio-tg (via GitHub)" <gi...@apache.org>.
antonio-tg closed issue #29883: ENABLE_JAVASCRIPT_CONTROLS use
URL: https://github.com/apache/superset/issues/29883


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org