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

docs: GEO-1125 Announcement diagrams #782

Merged
merged 4 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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