Skip to content
  • Christian Kuhn's avatar
    [TASK] TCA tree refactoring · df0dcddf
    Christian Kuhn authored and Tymoteusz Motylewski's avatar Tymoteusz Motylewski committed
    The patch refactors the TCA tree form engine data calculation.
    
    The tree now works with "new" (not yet persisted) records, even if
    the record has types in combination with flex forms. For instance,
    a new ext:news tt_content element now renders the category tree
    within flex forms, even in new tt_content records that have not been
    saved.
    
    The TCA tree no longer fetches all items when opening a record initially,
    but defers that to the ajax request. This gives a massive performance
    improvement on initial load of a record if the displayed TCA tree is bigger.
    
    The ajax request itself now compiles only data of the requested TCA field,
    also resulting in a significant performance improvement.
    
    As example, ext:styleguide "elements select" is now rendered much quicker
    and the single ajax calls per tree are reduced from about 4 seconds to less
    than a second each with my test data.
    
    Change-Id: If3c4c1779f5fe1510ffc13d1c9f1151bddab13e9
    Resolves: #78744
    Releases: master
    Reviewed-on: https://review.typo3.org/50700
    
    
    Reviewed-by: default avatarThomas Maroschik <tmaroschik@dfau.de>
    Tested-by: default avatarThomas Maroschik <tmaroschik@dfau.de>
    Reviewed-by: default avatarTymoteusz Motylewski <t.motylewski@gmail.com>
    Tested-by: default avatarTymoteusz Motylewski <t.motylewski@gmail.com>
    df0dcddf