Go to file
Bartosz Dziewoński a27e27fc68 Move finding transclusion source from ContentThreadItem to CommentParser
Reasons:
* Various other methods dealing with ranges already live there
* It would be neat if ContentThreadItem was just a value class
  without a lot of logic, similar to DatabaseThreadItem,
  particularly for writing unit tests
* The methods access global state through Title, which can't
  be fixed while they're in ContentThreadItem (see I9dfccc83)

The computation is now always done, instead of only when needed,
but that's a small drawback, since it's fast (fast enough that
I don't see the difference in the time taken when running tests),
and we were already computing it for all comments in many places.

Change-Id: Ic718a964e309ae3a8e15e299081f46d4db860731
2023-12-11 22:18:30 +01:00
.phan ThreadItemStore: Add details to row insertion exceptions 2023-09-14 19:05:04 +00:00
i18n Localisation updates from https://translatewiki.net. 2023-12-11 10:43:04 +01:00
images Compress emptystate.svg with svgo 2021-10-04 12:56:20 +01:00
includes Move finding transclusion source from ContentThreadItem to CommentParser 2023-12-11 22:18:30 +01:00
maintenance persistRevisionThreadItems: Use SQL expression builder 2023-10-21 23:22:34 +02:00
modules Merge "ReplyWidgetVisual: Replace deprecated selectLastContentOffset call" 2023-12-08 23:33:00 +00:00
sql Store permalink data, implement Special:FindComment/GoToComment 2022-08-11 01:19:47 +02:00
tests Move finding transclusion source from ContentThreadItem to CommentParser 2023-12-11 22:18:30 +01:00
.eslintignore Add button to reveal lede section on mobile 2022-11-10 22:10:04 +00:00
.eslintrc.json Don't enforce alphabetical order in i18n files 2022-08-12 13:29:39 +03:00
.gitignore Remove extra blank line from .gitignore file 2020-08-31 15:24:56 +01:00
.gitreview .gitreview: Remove defaultrebase/defaultbranch 2023-09-09 21:37:34 +00:00
.phpcs.xml Use type hints for properties, remove PHPCS overrides 2023-10-19 19:31:02 +00:00
.stylelintrc.json Move "Return to comment" below sticky header when present 2022-09-25 13:28:12 +01:00
CODE_OF_CONDUCT.md build: Updating npm dependencies 2020-01-09 06:43:15 +00:00
composer.json build: Updating mediawiki/mediawiki-phan-config to 0.12.1 2023-04-29 02:29:39 +00:00
COPYING Add required files for an extension 2019-10-10 19:42:56 +01:00
DiscussionTools.alias.php Translate DiscussionTools alias into Bengali (bn) 2023-08-19 00:31:46 +00:00
DiscussionTools.magic.php Translate magic words into Bengali (bn) 2023-08-19 00:06:13 +00:00
extension.json Use namespaced classes 2023-12-11 16:38:02 +01:00
Gruntfile.js eslint: Lint root folder with server rules 2021-10-07 17:37:52 +01:00
package-lock.json build: Update linters and fix 2023-11-28 16:10:47 +00:00
package.json build: Update linters and fix 2023-11-28 16:10:47 +00:00