dotCMS / core

Headless/Hybrid Content Management System for Enterprises
http://dotcms.com
Other
846 stars 465 forks source link

Multiple issues with Templates #13097

Closed joseorsini closed 6 years ago

joseorsini commented 6 years ago

Currently, we do not allow the following tasks related to Templates:

Context

Reported by customer: https://dotcms.zendesk.com/agent/tickets/94771

Your Environment

dsilvam commented 6 years ago

A lucene query can be done to get the list of dependencies (if any)

dsilvam commented 6 years ago

Note to QA: Try to delete a template that is used by a lot of htmlpages (should not let delete it) and see if the Dialog with the list of dependencies makes sense and displays good, and the message is clear to the user.

shaydotcms commented 6 years ago

Passed QA.

Verified that: Templates with no page/container dependencies can be deleted Templates with page dependencies cannot be deleted Update on template name is reflected on its dependencies (i.e.: pages) Template is deleted thru UI by right click image

Template is deleted thru UI by clicking the 3 ellipsis image

Template is deleted in DB Confirmation message is consistent with the different ways the system has to delete it

Tested with upgrade from dotcms_3.x with client dataset to master branch Ubuntu 14.04.1 / Postgres 9.3.7 / Chrome v54.0.2840.98 / Tomcat 8 / Java 8

dsilvam commented 6 years ago

Page title is not enough info. We need to show: host + path

shaydotcms commented 6 years ago

Passed QA. Now popup is showing host + path

image

Tested with upgrade from dotcms_3.x to master branch Ubuntu 14.04.1 / Postgres 9.3.7 / Chrome v54.0.2840.98 / Tomcat 8 / Java 8