Avaiga / taipy-core

A Python library to build powerful and customized data-driven back-end applications.
Apache License 2.0
38 stars 17 forks source link

Feature#449 - Add taipy.create_global_data_node() API #730

Closed trgiangdo closed 1 year ago

trgiangdo commented 1 year ago

https://github.com/Avaiga/taipy-core/issues/449

github-actions[bot] commented 1 year ago

☂️ Python Cov

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
7504 7189 96% 85% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/taipy/core/_init.py 100% 🟢
src/taipy/core/data/_data_manager.py 99% 🟢
src/taipy/core/exceptions/exceptions.py 91% 🟢
src/taipy/core/scenario/_scenario_manager.py 98% 🟢
src/taipy/core/taipy.py 88% 🟢
src/taipy/core/task/_task_manager.py 98% 🟢
TOTAL 96% 🟢

updated for commit: 0fdc456 by action🐍

trgiangdo commented 1 year ago

I added 2 new commits.

  1. First commit resolves the case that we don't want to create the data node twice if it already exists. I did not use _bulk_get_or_create() because we are only creating 1 entity, not bulk.
  2. Second commit fixes the issue in https://github.com/Avaiga/taipy-core/issues/738