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

bug/ fixed multiple values for "name" argument #804

Closed toan-quach closed 1 year ago

toan-quach commented 1 year ago

Fixed issue raised by Fabien

""" Bad issue trying to change the label of a Data Node. Scenario :

TaipyGuiWarning: Access to <class 'taipy.core.scenario.scenario.Scenario'> (SCENARIO_scenario_<id>) failed:
Traceback (most recent call last):
File "...\taipy\src\taipy\gui_core\_context.py", line 535, in data_node_adapter
    self.__do_datanodes_tree()
File "...\taipy\src\taipy\gui_core\_context.py", line 520, in __do_datanodes_tree
    for dn in get_data_nodes():
File "...\taipy\core\taipy.py", line 677, in get_data_nodes   
    return _DataManagerFactory._build_manager()._get_all()
File "...\taipy\core\data\_data_manager.py", line 113, in _get_all
    return cls._repository._load_all(filters)
File "...\taipy\core\_repository\_filesystem_repository.py", line 87, in _load_all
    entities.append(self.__file_content_to_entity(data))
File "...\taipy\core\_repository\_filesystem_repository.py", line 231, in __file_content_to_entity
    entity = self.converter._model_to_entity(model)
File "...\taipy\core\data\_data_converter.py", line 286, in _model_to_entity
    datanode = DataNode._class_map()[model.storage_type](
File "...\taipy\core\data\pickle.py", line 94, in __init__    
    super().__init__(
TypeError: __init__() got multiple values for argument 'name'

That to me is a very bad issue that we shouldn't live with. """

github-actions[bot] commented 1 year ago

☂️ Python Cov

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
8152 7741 95% 85% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/taipy/core/data/_data_manager.py 99% 🟢
TOTAL 99% 🟢

updated for commit: b91b697 by action🐍