cortex-cms / cortex

:pencil: A headless, multitenant dynamic content platform powered by Rails, GraphQL and Elasticsearch
https://docs.cortexcms.org/
Apache License 2.0
32 stars 6 forks source link

Refactor ContentItem State (Published/Draft/etc) System #566

Open toastercup opened 6 years ago

toastercup commented 6 years ago

The logic for the current ContentItem State system is brittle, mostly hardcoded and must be completely rebuilt. There are several avenues we can take, including:

It's my belief that dynamic state calculation at runtime and ElasticSearch Aggregations are the most reliable, maintainable approach. It will be more difficult to implement at the outset, but we'll have a much more solid foundation to work from. I'll be digging further into this as time goes on, and will update this thread with more details as we reach a decision.