Commit Graph

11 Commits

Author SHA1 Message Date
Ingo Schommer
c64e7ad2d7 Consistent sorting for getDiffList()
If changes were applied in the same second (e.g. through tests), the results will have an indeterminate order.
This lead to stability issues in VersionFeedFunctionalTest::testContainsChangesForPageOnly.
Sort by ID in addition to LastEdited.
2016-05-20 09:56:33 +12:00
Mateusz Uzdowski
fd67399417 Optimise diff generation.
For 100 items, this change improves generation times on small diffs
(100s of bytes) 6-fold. The improvement deteriorates to about 4-fold on
diffs of 1kB.

This includes the 25% improvement from the removal of unnecessary
forTemplate calls - we pack the diffs into HTMLText and render them
later from a template anyway.
2015-03-30 11:29:33 +13:00
Mateusz Uzdowski
8a7d2ec9da NEW Refactor diff API and add managed limits.
Deprecate the getDiffedChanges method to get rid of confusing
fullHistory parameter. Add a getDiff method to fetch just a single diff
and a more versatile getDiffList method which allows specifying a limit.

We now also cap the amount of items coming from the diffing process
to a default value that we hope will result in generation times no
greater than a few seconds. This can be reconfigured by developers.
2015-03-30 11:28:42 +13:00
Damian Mooyman
094e3190df API Ability to globally enable / disable RSS feeds via config / siteconfig 2014-05-22 11:38:32 +12:00
Damian Mooyman
a243a3510a API Better implementation of caching / rate limiting 2014-04-29 16:51:23 +12:00
Ingo Schommer
27bd513938 Fixed static visibility 2013-10-31 10:38:49 +01:00
Ingo Schommer
8b4fdd31c3 Globalisation, transifex support 2013-10-24 23:33:20 +02:00
Mateusz Uzdowski
35e44e92eb Protect the allchanges from leaking protected information.
Add warnings.
2013-07-23 10:07:32 +12:00
Mateusz Uzdowski
dc5012f118 Cache the versioned feed to prevent DDOS. 2013-07-22 16:27:52 +12:00
Robert Curry
671bf57015 Show initial version in allchanges feed 2013-03-07 14:54:13 +13:00
Robert Curry
d9dd9311d0 Initial commit 2012-11-26 13:22:30 +13:00