mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-22 04:46:27 +00:00
42ce942c86
The existing comment IDs can't be used to find the same comment on a different revision or page (when it's transcluded), because they depend on the comment's parent and its position on the page. Comment names depend only on the author and timestamp. The trade-off is that they can't distinguish comments posted within the same minute, or in the same edit, so we will still need the IDs sometimes. Prefer using comment names when replying, if they're not ambiguous. This fixes T273413 and T275821. Heading names depend on the author and timestamp of the oldest comment. This way we don't have to detect changes to the heading text, but we can't distinguish headings without any comments. Bug: T274685 Bug: T273413 Bug: T275821 Change-Id: Id85c50ba38d1e532cec106708c077b908a3fcd49
539 lines
12 KiB
JSON
539 lines
12 KiB
JSON
[
|
|
{
|
|
"placeholderHeading": false,
|
|
"type": "heading",
|
|
"range": [
|
|
"0/0/0",
|
|
"0/0/1"
|
|
],
|
|
"headingLevel": 2,
|
|
"level": 0,
|
|
"name": "h-Matma_Rex-2020-01-25T08:31:00.000Z",
|
|
"id": "h-multi_signatures-2020-01-25T08:31:00.000Z",
|
|
"warnings": [],
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-01-25T08:31:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"2/0",
|
|
"2/4/29"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"2/1",
|
|
"2/2/29"
|
|
],
|
|
[
|
|
"2/3",
|
|
"2/4/29"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"name": "c-Matma_Rex-2020-01-25T08:31:00.000Z",
|
|
"id": "c-Matma_Rex-2020-01-25T08:31:00.000Z-multi_signatures",
|
|
"warnings": [],
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-01-25T08:32:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"4/0/0",
|
|
"4/0/2/29"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"4/0/1",
|
|
"4/0/2/29"
|
|
]
|
|
],
|
|
"level": 2,
|
|
"name": "c-Matma_Rex-2020-01-25T08:32:00.000Z",
|
|
"id": "c-Matma_Rex-2020-01-25T08:32:00.000Z-Matma_Rex-2020-01-25T08:31:00.000Z",
|
|
"warnings": [],
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-01-25T08:33:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"4/0/3/0/0",
|
|
"4/0/3/0/4/29"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"4/0/3/0/1",
|
|
"4/0/3/0/2/29"
|
|
],
|
|
[
|
|
"4/0/3/0/3",
|
|
"4/0/3/0/4/29"
|
|
]
|
|
],
|
|
"level": 3,
|
|
"name": "c-Matma_Rex-2020-01-25T08:33:00.000Z",
|
|
"id": "c-Matma_Rex-2020-01-25T08:33:00.000Z-Matma_Rex-2020-01-25T08:32:00.000Z",
|
|
"warnings": [],
|
|
"replies": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-01-25T08:34:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"6/0",
|
|
"6/2/29"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"6/1",
|
|
"6/2/29"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"name": "c-Matma_Rex-2020-01-25T08:34:00.000Z",
|
|
"id": "c-Matma_Rex-2020-01-25T08:34:00.000Z-multi_signatures",
|
|
"warnings": [],
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-01-25T08:34:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"7/0",
|
|
"7/2/29"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"7/1",
|
|
"7/2/29"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"name": "c-Matma_Rex-2020-01-25T08:34:00.000Z",
|
|
"id": "c-Matma_Rex-2020-01-25T08:34:00.000Z-multi_signatures-1",
|
|
"warnings": [
|
|
"Duplicate comment ID"
|
|
],
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-01-25T08:35:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"9/0/0",
|
|
"9/0/4/29"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"9/0/1",
|
|
"9/0/2/29"
|
|
],
|
|
[
|
|
"9/0/3",
|
|
"9/0/4/29"
|
|
]
|
|
],
|
|
"level": 2,
|
|
"name": "c-Matma_Rex-2020-01-25T08:35:00.000Z",
|
|
"id": "c-Matma_Rex-2020-01-25T08:35:00.000Z-Matma_Rex-2020-01-25T08:34:00.000Z",
|
|
"warnings": [],
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-01-25T08:36:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"9/2/0",
|
|
"9/2/2/35"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"9/2/1",
|
|
"9/2/2/29"
|
|
]
|
|
],
|
|
"level": 2,
|
|
"name": "c-Matma_Rex-2020-01-25T08:36:00.000Z",
|
|
"id": "c-Matma_Rex-2020-01-25T08:36:00.000Z-Matma_Rex-2020-01-25T08:34:00.000Z",
|
|
"warnings": [],
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-01-25T08:37:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"9/4/0",
|
|
"9/4/4/1"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"9/4/1",
|
|
"9/4/2/29"
|
|
]
|
|
],
|
|
"level": 2,
|
|
"name": "c-Matma_Rex-2020-01-25T08:37:00.000Z",
|
|
"id": "c-Matma_Rex-2020-01-25T08:37:00.000Z-Matma_Rex-2020-01-25T08:34:00.000Z",
|
|
"warnings": [],
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-01-25T08:38:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"9/4/5/0/0",
|
|
"9/4/5/0/2/29"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"9/4/5/0/1",
|
|
"9/4/5/0/2/29"
|
|
]
|
|
],
|
|
"level": 3,
|
|
"name": "c-Matma_Rex-2020-01-25T08:38:00.000Z",
|
|
"id": "c-Matma_Rex-2020-01-25T08:38:00.000Z-Matma_Rex-2020-01-25T08:37:00.000Z",
|
|
"warnings": [],
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-01-25T08:38:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"9/4/5/2/0",
|
|
"9/4/5/2/2/29"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"9/4/5/2/1",
|
|
"9/4/5/2/2/29"
|
|
]
|
|
],
|
|
"level": 3,
|
|
"name": "c-Matma_Rex-2020-01-25T08:38:00.000Z",
|
|
"id": "c-Matma_Rex-2020-01-25T08:38:00.000Z-Matma_Rex-2020-01-25T08:37:00.000Z-1",
|
|
"warnings": [
|
|
"Duplicate comment ID"
|
|
],
|
|
"replies": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"placeholderHeading": false,
|
|
"type": "heading",
|
|
"range": [
|
|
"11/1/0",
|
|
"11/1/5"
|
|
],
|
|
"headingLevel": 2,
|
|
"level": 0,
|
|
"name": "h-Bob-2020-01-25T08:32:00.000Z",
|
|
"id": "h-hello_Matma_Rex_(talk)_18:27,_2_November_2020_(UTC)-2020-01-25T08:32:00.000Z",
|
|
"warnings": [],
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-11-02T18:28:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"13/0",
|
|
"13/4/30"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"13/1",
|
|
"13/4/30"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"name": "c-Matma_Rex-2020-11-02T18:28:00.000Z",
|
|
"id": "c-Matma_Rex-2020-11-02T18:28:00.000Z-hello_Matma_Rex_(talk)_18:27,_2_November_2020_(UTC)",
|
|
"warnings": [],
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-11-03T12:00:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"15/1/0",
|
|
"15/1/6/30"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"15/1/3",
|
|
"15/1/6/30"
|
|
]
|
|
],
|
|
"level": 2,
|
|
"name": "c-Matma_Rex-2020-11-03T12:00:00.000Z",
|
|
"id": "c-Matma_Rex-2020-11-03T12:00:00.000Z-Matma_Rex-2020-11-02T18:28:00.000Z",
|
|
"warnings": [],
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-01-25T08:32:00.000Z",
|
|
"author": "Bob",
|
|
"range": [
|
|
"15/3/0",
|
|
"15/3/1/0/2/29"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"15/3/1/0/1",
|
|
"15/3/1/0/2/29"
|
|
]
|
|
],
|
|
"level": 2,
|
|
"name": "c-Bob-2020-01-25T08:32:00.000Z",
|
|
"id": "c-Bob-2020-01-25T08:32:00.000Z-Matma_Rex-2020-11-02T18:28:00.000Z",
|
|
"warnings": [
|
|
"Comment starts and ends with different indentation"
|
|
],
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-11-03T12:01:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"15/3/3/0",
|
|
"15/3/6/30"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"15/3/3",
|
|
"15/3/6/30"
|
|
]
|
|
],
|
|
"level": 2,
|
|
"name": "c-Matma_Rex-2020-11-03T12:01:00.000Z",
|
|
"id": "c-Matma_Rex-2020-11-03T12:01:00.000Z-Matma_Rex-2020-11-02T18:28:00.000Z",
|
|
"warnings": [],
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-11-03T12:02:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"15/5/0",
|
|
"15/5/6/30"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"15/5/3",
|
|
"15/5/6/30"
|
|
]
|
|
],
|
|
"level": 2,
|
|
"name": "c-Matma_Rex-2020-11-03T12:02:00.000Z",
|
|
"id": "c-Matma_Rex-2020-11-03T12:02:00.000Z-Matma_Rex-2020-11-02T18:28:00.000Z",
|
|
"warnings": [],
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-01-25T08:32:00.000Z",
|
|
"author": "Bob",
|
|
"range": [
|
|
"15/7/0",
|
|
"15/7/6/30"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"15/7/1",
|
|
"15/7/2/29"
|
|
],
|
|
[
|
|
"15/7/3",
|
|
"15/7/6/30"
|
|
]
|
|
],
|
|
"level": 2,
|
|
"name": "c-Bob-2020-01-25T08:32:00.000Z",
|
|
"id": "c-Bob-2020-01-25T08:32:00.000Z-Matma_Rex-2020-11-02T18:28:00.000Z-1",
|
|
"warnings": [
|
|
"Duplicate comment ID"
|
|
],
|
|
"replies": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-11-02T18:29:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"17/0",
|
|
"17/1/4"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"17/1/0",
|
|
"17/1/3/30"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"name": "c-Matma_Rex-2020-11-02T18:29:00.000Z",
|
|
"id": "c-Matma_Rex-2020-11-02T18:29:00.000Z-hello_Matma_Rex_(talk)_18:27,_2_November_2020_(UTC)",
|
|
"warnings": [],
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-11-02T18:30:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"19/0",
|
|
"19/1/1"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"19/1/0/0",
|
|
"19/1/0/3/30"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"name": "c-Matma_Rex-2020-11-02T18:30:00.000Z",
|
|
"id": "c-Matma_Rex-2020-11-02T18:30:00.000Z-hello_Matma_Rex_(talk)_18:27,_2_November_2020_(UTC)",
|
|
"warnings": [],
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-11-02T18:31:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"21/0",
|
|
"21/1/2"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"21/1/0/0",
|
|
"21/1/0/3/30"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"name": "c-Matma_Rex-2020-11-02T18:31:00.000Z",
|
|
"id": "c-Matma_Rex-2020-11-02T18:31:00.000Z-hello_Matma_Rex_(talk)_18:27,_2_November_2020_(UTC)",
|
|
"warnings": [],
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-11-02T18:32:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"23/0",
|
|
"23/2/4"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"23/1/0/0",
|
|
"23/1/0/3/30"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"name": "c-Matma_Rex-2020-11-02T18:32:00.000Z",
|
|
"id": "c-Matma_Rex-2020-11-02T18:32:00.000Z-hello_Matma_Rex_(talk)_18:27,_2_November_2020_(UTC)",
|
|
"warnings": [],
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-11-02T18:33:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"25/0",
|
|
"25/5/1"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"25/1",
|
|
"25/4/30"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"name": "c-Matma_Rex-2020-11-02T18:33:00.000Z",
|
|
"id": "c-Matma_Rex-2020-11-02T18:33:00.000Z-hello_Matma_Rex_(talk)_18:27,_2_November_2020_(UTC)",
|
|
"warnings": [],
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-11-02T18:33:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"27/0",
|
|
"27/5/0"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"27/1",
|
|
"27/4/30"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"name": "c-Matma_Rex-2020-11-02T18:33:00.000Z",
|
|
"id": "c-Matma_Rex-2020-11-02T18:33:00.000Z-hello_Matma_Rex_(talk)_18:27,_2_November_2020_(UTC)-1",
|
|
"warnings": [
|
|
"Duplicate comment ID"
|
|
],
|
|
"replies": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"placeholderHeading": false,
|
|
"type": "heading",
|
|
"range": [
|
|
"29/0/1",
|
|
"29/0/2"
|
|
],
|
|
"headingLevel": 2,
|
|
"level": 0,
|
|
"name": "h-Matma_Rex-2020-11-02T18:34:00.000Z",
|
|
"id": "h-Transcluded-2020-11-02T18:34:00.000Z",
|
|
"warnings": [],
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-11-02T18:34:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"31/0",
|
|
"31/4/30"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"31/1",
|
|
"31/4/30"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"name": "c-Matma_Rex-2020-11-02T18:34:00.000Z",
|
|
"id": "c-Matma_Rex-2020-11-02T18:34:00.000Z-Transcluded",
|
|
"warnings": [],
|
|
"replies": []
|
|
}
|
|
]
|
|
}
|
|
]
|