Skip to content

Commit

Permalink
Merge branch 'main' into feat/GEO-1121-analytics-update
Browse files Browse the repository at this point in the history
  • Loading branch information
sukanya-rath authored Sep 26, 2024
2 parents 26142a6 + a2ff319 commit 0fd7126
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .diagrams/architecture/announcements/states.mermaid
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
config:
layout: elk
elk:
nodePlacementStrategy: NETWORK_SIMPLEX
---
flowchart TD
draft>draft]
published>published]
expired>expired]
archived>archived]

published --Save as--> published
expired & draft --Save as--> draft & published
published -.On<br>expires_on<br>date.-> expired
draft & published & expired --Archive--> archived
archived & expired -.Scheduled<br>task.-> delete[Delete after 90 days]
published --Unpublish--> draft
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions .diagrams/architecture/announcements/user-actions.mermaid
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
flowchart TD
start([Admin User])

%% Nodes - Actions
active[Publicly available]
email[Send email 14 days before expire_on date]
scheduleExpire[Automatically expire announcement after expire_on date]
scheduleDelete[Automatically delete announcement after 90 days]

%% Nodes - decisions
choice{Actions}
saveAny{Save As}
saveP{Save As}

%% Nodes - Data objects
draft>fa:fa-file Draft Announcement]
published>fa:fa-file Published Announcement]
expired>fa:fa-file Expired Announcement]
archive>fa:fa-file Archived Announcement]

%% New workflow
start --> choice
choice --New--> saveAny

%% Existing workflows
choice --Edit draft/expired--> saveAny
choice --Edit published--> saveP
choice --Unpublish--> draft
published -.Scheduled task.-> email

%% Saving workflow
saveAny --Draft--> draft
saveAny & saveP --Publish--> published
published -.After active_on date.-> active

%% Expire workflows
published -.Scheduled task.-> scheduleExpire
scheduleExpire --> expired

%% Delete workflows
choice --Archive--> archive
expired & archive -.Scheduled task.-> scheduleDelete

0 comments on commit 0fd7126

Please sign in to comment.