Skip to content

Document status: Refine; Use Enumerations in document model  #843

@jvwong

Description

@jvwong

Background

These flags have evolved over time as we began to understand our user workflow and which ones were necessary to quickly categorize/filter documents. For instance, we needed a way to easily identify those to export to BioPAX and display on the homepage carousel.

The document model provides an enum status:

  • requested: An author has submitted a request to edit the document
  • approved: Biofactoid-team approves the document for editing
  • submitted: The document to be complete
  • published: The document has >=1 complete element
  • trashed: This document should not be used further

Updates:

The status value should be more meaningful, attempt to describe some specific aspect of the document itself

    1. requested and approved are not relevant any longer and redundant.
    • Suggest to collapse into initiated, more or less to say its none of the other
    1. Change published
    • Change this to public, i.e. to export and show on homepage, Tweet etc
    1. Reference these values via the static function in document model

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions