Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

BUG-Notifications skipped #777

Closed
FredLL-Avaiga opened this issue Jun 7, 2023 · 0 comments
Closed

BUG-Notifications skipped #777

FredLL-Avaiga opened this issue Jun 7, 2023 · 0 comments
Assignees
Labels
GUI: Front-End Related to the front-end side of Taipy GUI. 💥Malfunction Addresses an identified problem. 🟧 Priority: High Stalls work on the project or its dependents

Comments

@FredLL-Avaiga
Copy link
Member

Description
When creating several notifications rapidly, in some cases, some notifications are not shown.
When creating the notifications within a with state block, only the last notification is shown

How to reproduce

from taipy.gui import Gui, notify

integers = [6, 0, 7, 2, 0, 6, 9, 2, 0, 0]

def update(state):
    with state as s:
        for integer in integers:
            if integer > 0:
                if integer < 5:
                    notify(s, "info", f"{integer} has no data for this period.")
                else:
                    notify(s, "success", f"{integer} data retrieved.")

            else:
                notify(s, "error", f"No container {integer} found")


Gui('<|Update|button|on_action=update|>').run()

Expected behavior
All the notifications are shown

Runtime environment
Taipy 2.2

@FredLL-Avaiga FredLL-Avaiga added GUI: Front-End Related to the front-end side of Taipy GUI. 💥Malfunction Addresses an identified problem. 🟧 Priority: High Stalls work on the project or its dependents labels Jun 7, 2023
@FredLL-Avaiga FredLL-Avaiga self-assigned this Jun 7, 2023
FredLL-Avaiga pushed a commit that referenced this issue Jun 7, 2023
FredLL-Avaiga added a commit that referenced this issue Jun 8, 2023
* #777 Manage notifications as a queue

* fix dependency

---------

Co-authored-by: Fred Lefévère-Laoide <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
GUI: Front-End Related to the front-end side of Taipy GUI. 💥Malfunction Addresses an identified problem. 🟧 Priority: High Stalls work on the project or its dependents
Projects
None yet
Development

No branches or pull requests

2 participants