Page MenuHomePhabricator

Show page move destination
Open, Needs TriagePublicFeature

Description

Hi. When moving a page, the log entry shows only the source, as in

* 2021-08-02 17:34 ב Log: move/move: Translations:User:SGrabarczuk (WMF)/sandbox/5/10/he (יומני הדף, רשומת יומן, להפסיק לעקוב) (FuzzyBot: Part of translatable page "User:SGrabarczuk (WMF)/sandbox/5")

I suggest to show destination too, as in

* 2021-08-02 17:34 ב Log: move/move: Translations:User:SGrabarczuk (WMF)/sandbox/5/10/he to Translations:Reading/Web/Desktop Improvements/Updates/2021-08 for the largest wikis/10/he (יומני הדף, רשומת יומן, להפסיק לעקוב) (FuzzyBot: Part of translatable page "User:SGrabarczuk (WMF)/sandbox/5")

Thanks.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
IKhitron changed the subtype of this task from "Task" to "Feature Request".Aug 3 2021, 1:45 AM

@IKhitron: Hi, for future reference please fill in the template when creating bug reports or feature requests. Thanks.

This will be a lot easier after T274599: Allow uncollapsing grouped results introduces value objects for the various entry types, moving to later accordingly

Some notes:
We will want jQuery and Vue components to be included in the output and still maintain their reactivity, etc. Will probably need to (for example logentry-move-move with $1 {{GENDER:$2|moved}} page $3 to $4 for English)

- split up a message into an array for entries being either a string that is part of the raw message, or a variable that needs to be replaced (haven't figured out GENDER/PLURAL/etc. support, but if there is only one parameter its ignored... so maybe some parsing first?)
	* "$1 {{GENDER:$2|moved}} page $3 to $4"
	* "$1 moved page $3 to $4"
	* [ '$1', 'moved page', '$3', 'to', '$4' ]
- go through the array and replace message variables with the corresponding jQuery object **or** VNode
- return the updated array
- for jQuery, pass these all as elements to $li.append()
- for Vue, pass these all al child components in a custom render function
{
    "batchcomplete": "",
    "query": {
        "users": [
            {
                "userid": 1,
                "name": "Foo",
                "gender": "female"
            },
            {
                "userid": 2,
                "name": "Bar",
                "gender": "unknown"
            },
            {
                "userid": 3,
                "name": "Baz",
                "gender": "male"
            }
        ]
    }
}