department-of-veterans-affairs / va.gov-cms

Editor-centered management for Veteran-centered content.
https://prod.cms.va.gov
GNU General Public License v2.0
99 stars 69 forks source link

Editors should not be able to publish archived facilities #11028

Open swirtSJW opened 2 years ago

swirtSJW commented 2 years ago

User Story or Problem Statement

As a maintainer of facility data, it is important that editors can not accidentally re-open facilities that have already been closed and properly archived.

This was only caught because I happened to see this error image

The editor changed its status and published the page, which would create a really confusing Veteran experience.

image

~~It is questionable whether a facility should ever be editable at all once it has been archived. We might want to either (need to discuss) A. Prevent save. B. Prevent Edit tab from showing C. Its moderation state can only be altered by content admin/admin through request fulfillment~~

Update: we have experienced at least one instance where a facility was temporarily closed, archived, and then reopened and published. As a result we should probably allow editors to edit archived facilities and archived facility services. This way editors can get the facility "ready" before it reopens.

However, they shouldn't be able to publish them without some sort of request fulfillment just to be sure republishing is the actual desired outcome. Only admins should be able to publish an archived facility and its content.

Acceptance Criteria

Veteran-centered

Editor-centered

CMS Team

Please check the team(s) that will do this work.

dsinla commented 1 year ago

Suggestion: If publish state is archive, and they're non admin, dont display Save button - or- Remove Edit tab?

@dsinla Spin up corresponding Ux ticket.

Dottisea commented 1 year ago

Add a spike ticket for discovery on this workflow - discover and document

JayDarnell commented 1 year ago

I've updated this ticket to be slightly more accurate based on recent facility help desk work. However, some refinement is still needed in terms of agreeing upon the most effective solution for the problem.

kmariepat-cityfriends commented 1 year ago

@kmariepat-cityfriends talk with CMS team about driving the decision for editor experience when they cant edit things, this card will live on for facilities as strictly implementation

davidmpickett commented 1 year ago

Here's another ticket that has some slightly different nuance, but seems very related https://github.com/department-of-veterans-affairs/va.gov-cms/issues/11481

davidmpickett commented 1 year ago

And also: https://github.com/department-of-veterans-affairs/va.gov-cms/issues/11778

davidmpickett commented 1 year ago

And here's an issue for improving a related KB Article https://github.com/department-of-veterans-affairs/va.gov-cms/issues/11243

timcosgrove commented 1 year ago

This could easily be implemented as a VAMC Facility-specific workflow that disallows an Archive -> Published or Archive -> Draft transition, or else restricts that transition to admins.

davidmpickett commented 11 months ago

The work done in #15869 has created a clear path forward to implementing this. Consider as a possible Q1 ticket? @xiongjaneg @swirtSJW @omahane

omahane commented 10 months ago

The work done in #15869 has created a clear path forward to implementing this. Consider as a possible Q1 ticket? @xiongjaneg @swirtSJW @omahane

When we do so, here's some guidance: https://github.com/department-of-veterans-affairs/va.gov-cms/issues/15869#issuecomment-1863191934

xiongjaneg commented 10 months ago

See Slack thread on timing/order

mmiddaugh commented 10 months ago

This should also apply to VBA facilities

davidmpickett commented 10 months ago

This should also apply to VBA facilities

It already does. 😎 They were the first content type to get migrated over to the Restrictive Archive Workflow. That was completed in #15869.

omahane commented 10 months ago

@xiongjaneg I recommend we change this to "Editors should not be able to publish archived facilities," given that the Restricted Archive workflow allows editors to edit archived nodes, but not to publish them.