Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-2161

Inconsistent diff API

    XMLWordPrintable

Details

    Description

      The various diff methods (doc.getContentDiff, doc.getMetaDataDiff, doc.getObjectDiff, doc.getClassDif, obj.getDiff, class.getDiff...) don't treat the arguments the same way. If there are 2 arguments, some methods compute the diff between the first and the second arguments, while other do that the other way around. If there is only one argument, some methods compute the diff between "this" and the argument, while others do the other way around.

      These methods should be changed so that they behave the same way:

      • 2 arguments means diff from the first argument to the second argument (get differences between the first and the second versions)
      • 1 argument means diff from the argument to this (get differences from the other version)

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            sdumitriu Sergiu Dumitriu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: