craftercms / craftercms

Parent project for Crafter CMS. Issue tracking across all repositories and global builds.
GNU General Public License v3.0
311 stars 103 forks source link

New items once staged remain new and don't indicate they're staged #5531

Open sumerjabri opened 2 years ago

sumerjabri commented 2 years ago

Bug Report

Crafter CMS Version

4.0.0-SNAPSHOT

Date of Build

April 20, 2022

Describe the bug

New items remain new after having been published to staging. It should be a blue light (staged) and tell the user it's "Staged"

Similarly, previously published items that have since been edited and published to Staging still show edited.

To Reproduce

Steps to reproduce the behavior:

  1. Create a site and publish it
  2. Create a new item
  3. Publish new item to staging
  4. See the new item remaining new with no visual indication it's been staged

Logs

{{If applicable, attach the logs/stack trace (use https://gist.github.com).}}

Screenshots

{{If applicable, add screenshots to help explain your problem.}}

jvega190 commented 2 years ago

I tested the current behavior and I found this:

So, if we validate the staged state of an item when new we may end up having issues with the modified state of an item when new.

rart commented 1 year ago

Per https://github.com/craftercms/craftercms/issues/5442 we only show publishing target when no workflow is present — including new and or modified. We would need to discuss modifying the rules in order to do this.