From 3fe77fb2a95afb7ba8e964b190a4e0ce8a4a8af1 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Thu, 4 Apr 2024 16:33:56 +0200 Subject: [PATCH] Add dispatched column to notification model --- lib/galaxy/model/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index ae7da2d3a06..2b1d2d6f0de 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -2944,6 +2944,9 @@ class Notification(Base, Dictifiable, RepresentById): variant: Mapped[Optional[str]] = mapped_column( String(16), index=True ) # Defines the 'importance' of the notification ('info', 'warning', 'urgent', etc.). Used for filtering, highlight rendering, etc + dispatched: Mapped[Boolean] = mapped_column( + Boolean, index=True, nullable=False, default=False + ) # Whether the notification has been dispatched to users via other channels # A bug in early 23.1 led to values being stored as json string, so we use this special type to process the result value twice. # content should always be a dict content: Mapped[Optional[bytes]] = mapped_column(DoubleEncodedJsonType)