newpost

Page for creating or modifying a post

New Post Page Overview

This page is used to create a new Post or modify an existing one. Posts contain a Title, text (Post), and optional Image, which can all be modified. When an existing Post is modified, a new Edit is created indicating the changes made and the User making the changes.

Key Workflows

Button Create Post is clicked

  • Creates a new Post or modifies the existing Post

    • Sets the Upvotes (num) field to 0

  • Triggers the Save post custom workflow on the relevant Post

  • Triggers the Edit post custom workflow on the relevant Post

Edit post [Custom workflow]

  • Creates a new Edit instance and links it to the Post

    • Stores the values of fields that have been updated on the Post

    • These Edits exist primarily for reference

  • Updates the Edits list of the Post and stores that Edit as the Post's Most recent edit

    • When the Most recent edit field of the Post is not empty, the post UI is updated to indicate that the Post has been edited (and shows the editor's Username and edit timestamp)

Save post [Custom workflow]

  • Stores or the updates various fields on the Post with the inputted values

Last updated

Was this helpful?