0
In Progress

Prevent deletion of entities that form the basis of a package

Peter van Meijel 3 weeks ago • updated by Mikhail Gubenko 1 week ago 1

As an administrator, I would like that some entities that form the basis of a package are locked so that accidental removal is not possible.


(WHY) It is possible to accidentally remove entities that form the basis of a package

(WHO) A partner

(WHAT) Prevent removal of entities that form the basis of a package


Current Situation

In the target org, entities that are part of a package are locked. It is not possible to remove these entities or modify them.


In the source org, it is not possible to remove the Document Definitions. However, it is possible to remove other entities that form the basis of a package.


Acceptance Criterea

It should not be possible to remove the following entities from the source environment if they belong to a package:

  • Document Definition
  • Layout
  • Script
  • Template
  • Menu
  • Group


Client

On the client, show a message that the entity belongs to a package:

Use a similar mechanism as is already in place for showing locked messages.


Server

On the server, prevent the removal of these entities as well using the checkPackageIsBasedOnthisEntity method.