How to detect UI references to deleted fields/entities? Any system consistency tool

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • partomas
    Active Community Member
    • Sep 2018
    • 355

    #1

    How to detect UI references to deleted fields/entities? Any system consistency tool

    We could not find this in the documentation, so I would like to ask whether EspoCRM already provides a way to inspect the field structure used by the CRM UI.

    Our goal is to identify cases where a field or even an entity has already been deleted from the CRM, but references to it still remain in the UI metadata, layouts, relationships, filters, panels, or other configuration parts.

    We noticed this after upgrading EspoCRM, where validation/control became stricter. Some views or windows no longer open because the UI still contains references to fields that no longer exist. In other words, the system still has “orphaned” references left behind from older customizations.

    What we are looking for is something like:
    1. A way to get the structure/list of fields currently used by the UI.
    2. A way to detect UI references to non-existing fields or entities.
    3. Possibly also a way to detect orphaned database records or metadata leftovers related to already deleted entities.

    If such functionality does not exist yet, I think it could be very useful as a system consistency / cleanup tool, for example:
    • detect UI references to missing fields;
    • detect references to deleted entities;
    • detect leftover records or metadata that are no longer valid.

    This would help keep the system clean and avoid upgrade issues caused by outdated references.

    How are others solving this today?
    Do you build your own scripts/tools for checking metadata consistency, or is there already a recommended approach in EspoCRM?
  • victor
    Active Community Member
    • Aug 2022
    • 1162

    #2
    At the moment, one of the tools that will partially satisfy your request is Hard Rebuild https://docs.espocrm.com/administrat.../#hard-rebuild. But if we consider your request in full, then for now this is solved manually, by observing "working hygiene", when unnecessary/deleted fields, entities are monitored manually and removed from Layout manually.

    Comment


    • partomas
      partomas commented
      Editing a comment
      But how to find them easely, it is a main question for now. Thank You for advice, it was new for me.
      Last edited by partomas; Today, 01:34 AM.
Working...