Uploaded image for project: 'Page Relations Application'
  1. Page Relations Application
  2. PAGEREL-24

Renaming pages having children with relations won't update the reverse relations

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1, 2.2
    • Fix Version/s: 2.2
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Simple refactoring is supported via a listener listening to DocumentCreatedEvent. In the general case, by checking if the JobStartedEvent has type "refactoring/rename", the listener updates the inverse relations of a renamed page, by looking into the "entityReferences" property of the request associated with the current job: see PageRelationsRenameEventListene#L113.

      However this trick does seem to work when the renamed page has children that have relations, and it seems that a real DocumentRenamedEvent with an explicit destination / source would be needed. A RenameJob exists, but we may need a DocumentRenamedEvent with a clear source / destination for solving this issue.

        Attachments

          Activity

            People

            • Assignee:
              lucaa Anca Luca
              Reporter:
              slauriere slauriere
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: