nigzak opened a new issue, #20831:
URL: https://github.com/apache/superset/issues/20831

   load_examples seems not fully compatible with superset 2.0.0 and produces 
issues 
   => script should be updated
   
   #### How to reproduce the bug
   
   load latest container from dockerhub (2.0.0)
   create admin user   superset fab create-admin ....
   execute  "superset load_examples"
   
   ### Expected results
   no warnings
   
   ### Actual results
   warnings are in the logfile
   
   ```
   ...
   logging was configured successfully
   2022-07-22 17:39:31,440:INFO:superset.utils.logging_configurator:logging was 
configured successfully
   2022-07-22 17:39:31,452:INFO:root:Configured event logger of type <class 
'superset.utils.log.DBEventLogger'>
   Creating database reference for examples
   2022-07-22 17:39:33,359:INFO:superset.utils.database:Creating database 
reference for examples
   Loading examples metadata and related data into examples
   Creating default CSS templates
   Loading [World Bank's Health Nutrition and Population Stats]
   Creating table [wb_health_population] reference
   /usr/local/lib/python3.8/site-packages/sqlalchemy/orm/session.py:2545: 
SAWarning: Usage of the 'related attribute set' operation is not currently 
supported within the execution stage of the flush process. Results may not be 
consistent.  Consider using alternative event listeners or connection-level 
operations instead.
     util.warn(
   /usr/local/lib/python3.8/site-packages/sqlalchemy/orm/session.py:2545: 
SAWarning: Usage of the 'collection append' operation is not currently 
supported within the execution stage of the flush process. Results may not be 
consistent.  Consider using alternative event listeners or connection-level 
operations instead.
     util.warn(
   /usr/local/lib/python3.8/site-packages/sqlalchemy/orm/session.py:2545: 
SAWarning: Usage of the 'Session.add()' operation is not currently supported 
within the execution stage of the flush process. Results may not be consistent. 
 Consider using alternative event listeners or connection-level operations 
instead.
     util.warn(
   /usr/local/lib/python3.8/site-packages/sqlalchemy/orm/session.py:2660: 
SAWarning: Attribute history events accumulated on 6 previously clean instances 
within inner-flush event handlers have been reset, and will not result in 
database updates. Consider using set_committed_value() within inner-flush event 
handlers to avoid this warning.
     util.warn(
   Creating a World's Health Bank dashboard
   Loading [Birth names]
   Done loading table!
   ...
   ```
   
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [x] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [x] I have reproduced the issue with at least the latest released version 
of superset.
   - [x] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   
   
   ### addition
   
   the created dashboards seems to be using deprecated functions
   
   
![image](https://user-images.githubusercontent.com/102737855/180495265-141d2e3b-b16c-4469-b719-6739648fe4ab.png)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to