Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
150
Issues
150
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
a0b836b0
Verified
Commit
a0b836b0
authored
May 11, 2024
by
Przemyslaw Kaminski
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[websockets] remark on UserSource/UserAction
parent
914fd977
Pipeline
#6081
failed with stages
in 6 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
AsyncUpdates.hs
src/Gargantext/Core/AsyncUpdates.hs
+10
-1
No files found.
src/Gargantext/Core/AsyncUpdates.hs
View file @
a0b836b0
...
@@ -62,6 +62,14 @@ data UpdateAction =
...
@@ -62,6 +62,14 @@ data UpdateAction =
UpdateTree
NodeId
UpdateTree
NodeId
deriving
(
Eq
,
Show
)
deriving
(
Eq
,
Show
)
-- NOTE: I'm not sure if UserAction/UserSource is needed. I initially
-- created that to mark who initiated the action, but I think we don't
-- need it.
--
-- Suppose we send an 'UpdateTree node_id' message: from the DB we can
-- infer all users that are associated with that node (I do keep in
-- mind that we can share nodes to other users).
data
UserSource
=
data
UserSource
=
USUser
UserId
USUser
UserId
|
USSystem
|
USSystem
...
@@ -72,7 +80,8 @@ data UserSource =
...
@@ -72,7 +80,8 @@ data UserSource =
data
UserAction
=
data
UserAction
=
UserAction
UserSource
UpdateAction
UserAction
UserSource
UpdateAction
deriving
(
Eq
,
Show
)
deriving
(
Eq
,
Show
)
-- | Represents a notification that goes to a given user. This is
-- | Represents a notification that goes to a given user. This is
-- directly sent via WebSockets.
-- directly sent via WebSockets.
data
UserNotification
=
data
UserNotification
=
...
...
Przemyslaw Kaminski
@cgenie
mentioned in commit
5660aec0
·
Oct 08, 2024
mentioned in commit
5660aec0
mentioned in commit 5660aec07ec5a0a0a5468f440092c1a8f57a864e
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment