mediawiki-extensions-Discus.../modules
Bartosz Dziewoński da668b72d5 Identify comments by username+timestamp+seq
Possible use cases:
* Matching comments between PHP and Parsoid HTML [implemented here]
* Finding the same comment in a different revision of a page
  (e.g. while resolving an edit conflict, or to allow resuming
  composition of autosaved comments) [implemented for highlighting
  user's own posted comment only]
* Permanent links to comments [future]

The reasoning for this form of ID is:
* _Timestamp_ by itself is a nearly unique identifier, so it's a good
  thing to start with
* Users may post multiple comments in one edit (or in many edits in
  one minute), so we need the _sequential number_ to distinguish them
* _Username_ is probably not required, but it may reduce the need
  for sequential numbers, and will help with human-readability if we
  add permanent links

The ID remains stable when a new comment is added anywhere by anyone
(excepts comments within the same minute by the same user), or when a
section is renamed.

It's not always stable when a comment is moved or when an entire
section is moved or deleted (archived), but you can't have everything.

Change-Id: Idaae6427d659d12b82e37f1791bd03833632c7c0
2019-12-09 13:45:31 +00:00
..
lib Handle timestamps in daylight saving time 2019-10-22 16:33:21 +02:00
.eslintrc.json build: Update linters 2019-10-28 12:29:56 +00:00
controller.js Identify comments by username+timestamp+seq 2019-12-09 13:45:31 +00:00
dt.debug.js Re-add debug highlighter 2019-10-24 23:21:40 +02:00
dt.init.js Highlight comment after saving 2019-12-03 16:40:35 +00:00
dt.init.less Merge "Highlight comment after saving" 2019-12-03 16:49:01 +00:00
dt.ui.ReplyWidget.js Identify comments by username+timestamp+seq 2019-12-09 13:45:31 +00:00
dt.ui.ReplyWidget.less Plain ReplyWidget styling 2019-11-22 16:55:15 -05:00
highlighter.css Re-add debug highlighter 2019-10-24 23:21:40 +02:00
highlighter.js Re-add debug highlighter 2019-10-24 23:21:40 +02:00
modifier.js Use Parsoid hack to remove whitespace from replies 2019-11-19 21:24:33 +00:00
parser.js Identify comments by username+timestamp+seq 2019-12-09 13:45:31 +00:00