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-Table "enumerated" validation absent when rebuild=True #1201

Closed
2 tasks
arcanaxion opened this issue Apr 19, 2024 · 0 comments · Fixed by #1278
Closed
2 tasks

BUG-Table "enumerated" validation absent when rebuild=True #1201

arcanaxion opened this issue Apr 19, 2024 · 0 comments · Fixed by #1278
Assignees
Labels
Gui: Back-End 💥Malfunction Addresses an identified problem. 🟨 Priority: Medium Not blocking but should be addressed

Comments

@arcanaxion
Copy link

Description
The categorical selection functionality does not work properly when rebuild=True. It initially works once, but then further edits do not have this functionality unless the page is refreshed.

How to reproduce

from taipy.gui import Gui, Markdown

vehicle_type_options = ["car", "motorcycle"]
vehicle_list = ['Toyota Camry', 'Honda Civic', 'Ford Mustang', 'Honda CG1600X', 'Yamaha YBR135', 'Suzuki GSX-R1000']
vehicle_type = ['car', 'car', 'car', 'motorcycle', 'motorcycle', 'motorcycle']
vehicle_dict = {'vehicle_name': vehicle_list, 'vehicle_type': vehicle_type}

md = Markdown(
"""
<|{vehicle_dict}|table|rebuild|editable|editable[vehicle_name]=False|lov[vehicle_type]={vehicle_type_options}|on_edit=edit_vehicle_type|width=fit-content|>
""")

def edit_vehicle_type(state, var_name, payload):
    state.vehicle_dict[payload["col"]][payload["index"]] = payload["value"]
    state.refresh(var_name)

Gui(md).run()

Expected behavior
Enumerated/categorical column selection should work even when rebuild=True.

Screenshots
When available and relevant, screenshots to better highlight the problem.

Runtime environment
Please specify relevant indications.

  • Taipy version (or branch name): 3.1.1
  • OS: [e.g. Linux, Windows] and version
  • Browser: [e.g. Chrome, Edge, Safari] and version (if relevant)
    and any other relevant information.

Acceptance Criteria

  • Ensure new code is unit tested, and check code coverage is at least 90%
  • Create related issue in taipy-doc for documentation and Release Notes if relevant
@arcanaxion arcanaxion added the 💥Malfunction Addresses an identified problem. label Apr 19, 2024
@jrobinAV jrobinAV added 🟨 Priority: Medium Not blocking but should be addressed Gui: Back-End labels Apr 19, 2024
@FredLL-Avaiga FredLL-Avaiga self-assigned this May 10, 2024
FredLL-Avaiga pushed a commit that referenced this issue May 10, 2024
FredLL-Avaiga added a commit that referenced this issue May 13, 2024
resolves #1201

Co-authored-by: Fred Lefévère-Laoide <Fred.Lefevere-Laoide@Taipy.io>
toan-quach pushed a commit that referenced this issue May 14, 2024
resolves #1201

Co-authored-by: Fred Lefévère-Laoide <Fred.Lefevere-Laoide@Taipy.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gui: Back-End 💥Malfunction Addresses an identified problem. 🟨 Priority: Medium Not blocking but should be addressed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants