https://bugzilla.wikimedia.org/show_bug.cgi?id=36898

       Web browser: ---
             Bug #: 36898
           Summary: Need interface for diff-based DataUpdates in
                    WIkiPage::doEdit
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: Page editing
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


As of recently, DataUpdate objects are used to represent updates to be
performed on the database when a page is changed or deleted (basically,
DataUpdate is a generalization of LinksUpdate).

Currently, WikiPage::doEdit takes a list of DataUpdate objects from the
ParserOutput object and applies them to the database. However, the DataUpdate
could be implemented more smartly if the difference between the previous and
the new revision could be used,m instead of relying solely on the new revision. 

So, WikiPage::doEdit should call a function that can generate DataUpdate
objects based on the (difference between) the previous and the new revision,
and apply them to the database.

Conceptually, WikiPage::doEdit should have a way to determine which DataUpdates
need to be performed for the current edit, instead of relying on the
UpdateObjects from the ParserOutput directly.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to