Skip to content
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

[🐛 BUG] Cannot add properties to Data Node with Data Node viewer #2088

Closed
1 of 7 tasks
FlorianJacta opened this issue Oct 18, 2024 · 0 comments · Fixed by #2099
Closed
1 of 7 tasks

[🐛 BUG] Cannot add properties to Data Node with Data Node viewer #2088

FlorianJacta opened this issue Oct 18, 2024 · 0 comments · Fixed by #2099
Assignees
Labels
Core Related to Taipy Core 🖰 GUI Related to GUI 💥Malfunction Addresses an identified problem. 🟧 Priority: High Must be addressed as soon

Comments

@FlorianJacta
Copy link
Member

FlorianJacta commented Oct 18, 2024

What went wrong? 🤔

We can not add properties to the data node with the data node viewer.

C:\Users\jacta\.conda\envs\enterprise_4.0\Lib\site-packages\taipy\gui\gui.py:1508: TaipyGuiWarning: on_action(): 'tpec_TpExPr___taipy_gui_core_Ctx__edit_data_node_TPMDL_3' is not a valid function.
  _warn(f"on_action(): '{action}' is not a valid function.")

Expected Behavior

We should be able to do so.

Steps to Reproduce Issue

Run this code, go to the properties and try to add a property in the "Properties" section.

import taipy as tp
import taipy.gui.builder as tgb
from taipy import Config, Orchestrator, Scope
from taipy.gui import Gui

bug_node = Config.configure_data_node(
    id="bug_node",
    default_data="bug",
    scope=Scope.GLOBAL,
)

with tgb.Page() as data_node_viewer:
    tgb.text("## Discovering Data Node viewers", mode="md")

    tgb.data_node(
        data_node="{bug_data_node}",
    )
bug_gui = Gui(page=data_node_viewer)

if __name__ == "__main__":
    orchestrator = Orchestrator()
    orchestrator.run()
    bug_data_node = tp.create_global_data_node(bug_node)
    bug_gui.run(use_reloader=True, port=2445)

Version of Taipy

4.0

Acceptance Criteria

  • A unit test reproducing the bug is added.
  • Any new code is covered by a unit tested.
  • Check code coverage is at least 90%.
  • The bug reporter validated the fix.
  • Related issue(s) in taipy-doc are created for documentation and Release Notes are updated.

Code of Conduct

  • I have checked the existing issues.
  • I am willing to work on this issue (optional)
@FlorianJacta FlorianJacta added Core Related to Taipy Core 🖰 GUI Related to GUI 💥Malfunction Addresses an identified problem. 🟧 Priority: High Must be addressed as soon labels Oct 18, 2024
@FredLL-Avaiga FredLL-Avaiga self-assigned this Oct 18, 2024
FredLL-Avaiga pushed a commit that referenced this issue Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Related to Taipy Core 🖰 GUI Related to GUI 💥Malfunction Addresses an identified problem. 🟧 Priority: High Must be addressed as soon
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants