Review main Merged

71373[BUGFIX] Properly handle TSconfig in content position maps

Oli Bartsch CR +2 V +2 Hard +400 −439 updated 10/04/21, 10:08

Commit message

The Core previously contained two classes for content
position maps. One of them was already decoupled from
the PagePositionMap class in #95331. The other still
extended this class while only some class variables
were used. However, both classes used nearly the same
code for the position map generation. Only the link
generation differs. Besides those derivation topics,
the columns to render where not always calculated
correctly, especially because TSconfig was not taken
into account.

Therefore this patch does the following:

* Adds a new abstract class with the main logic and
  lets the extending classes implement the abstract
  link generation methods
* The code for the page position map generation
  is refactored and heavily simplified
* The abstract class now takes care of determining
  all allowed columns by also respecting TSconfig.
  This means the calling code (MoveElementController
  and NewContentElementController) does no longer
  have to provide any colPos lists
* A JavaScript error, triggered by the "move content"
  links, is fixed

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 6