Commit graph

417 commits

Author SHA1 Message Date
Siebrand Mazeland
14057d6e51 Declare visibility on class properties of RecentChange
All are referenced directly outside inheritence; declare all public.
Removed unused $mMovedToTitle.

Change-Id: I3ba8f377e1a1082d3a2bb4b043e10bc351c0b5dd
2013-11-19 12:45:14 +00:00
Siebrand Mazeland
8a0eb6de15 Various fixes for ChangesList
* Define dynamic class properties
* Update documentation and doc formatting
* Ensure variables are defined

Change-Id: I309affea9a8e8cfa24bd8fe694a16bf79d6f2419
2013-11-19 12:44:15 +00:00
Siebrand Mazeland
32e4fa931f Update documentation for OldChangesList
Change-Id: Ied9ec5219ff7b458a69c6d989b813dffa1583cd3
2013-11-19 12:43:28 +00:00
Siebrand Mazeland
df28a0043d Various fixes for RecentChange
* Do not return the value of a function that returns void
* Update documentation

Change-Id: I2b25bf34f578be516a19c84d45860ab6c7f93e0e
2013-11-19 12:43:02 +00:00
Siebrand Mazeland
c85e4668aa Declare visibility on class properties of RCCacheEntry
All are referenced directly outside inheritence; declare all public.
Removed unused $secureName and $versionlink.

Change-Id: If491d0f1cbf4d53692e0ecfd0e1df1f4c3761ca6
2013-11-19 09:46:46 +01:00
Siebrand Mazeland
0470a55b77 Update formatting
Change-Id: I7586c4d50f7332c515b8377749c4250cc9e04d83
2013-11-19 06:32:18 +00:00
Siebrand Mazeland
511d594bf6 Address CodeSniffer errors and warnings
Change-Id: Ie119db7d6d9e9eb3c1cd9c07b8f84fd155847c62
2013-11-19 06:28:51 +01:00
umherirrender
974562aee9 Remove recentchanges.rc_cur_time from sql statements
Field is unused since many versions, so remove the use in sql
statements, to allow dropping in a later version.

The field must not be reference from INSERT because it has a default
value, which is used, when no value is specified in the statement.

Keeping the field allows easier rollback on version update, when
something gets wrong with the new version.

Existing Comment in tables.sql was added with r101293, was already
disused in r11088

Bug: 40667
Change-Id: I4a9c2fa813d1f25dfb755e564f7677a212934d7b
2013-11-09 18:20:54 +01:00
jenkins-bot
fcf8c469ea Merge "Improve variable naming in EnhancedChangesList" 2013-11-08 15:57:52 +00:00
aude
9f1163edc8 Improve variable naming in EnhancedChangesList
Make clearer when we are dealing with an RCCacheEntry
vs. ordinary RecentChange object.

Change-Id: Id9342b033d46b9b700bd021c451d6f817cd25845
2013-11-08 14:27:47 +00:00
jenkins-bot
c62949f697 Merge "Remove deprecated ChangesList::newFromUser function" 2013-11-07 21:14:00 +00:00
jenkins-bot
039b272335 Merge "Add rc.unpatrolled to the recentchanges API" 2013-11-07 18:56:24 +00:00
aude
4ba5a09d05 Remove deprecated ChangesList::newFromUser function
newFromUser() is unused in core and all extensions in gerrit,
except BlueSpiceExtensions RSSStandards. (there is a
patch for that I1455052)

Change-Id: I4559146cc0e9973e6e4f6297138cbfd8e387e8b7
2013-11-07 02:14:28 +01:00
umherirrender
0d1beb5d13 fix typo in @deprecated
Change-Id: I4a8fb12238a3c1256c8d8d5348ca84dbc2820f3a
2013-11-05 19:01:26 +01:00
Erik Bernhardson
6bbd4bca6c Revert "Revert "Add new recentchanges field rc_source to replace rc_type""
This reverts commit 113f49bb21 after the
schema change has been completed.

Change-Id: I5412466444526986e1209d0982dd62cd5b387ad1
2013-10-25 13:10:42 -07:00
Timo Tijhof
5f078d3e56 Add rc.unpatrolled to the recentchanges API
On SpecialRecentChanges, the unpatrolled "bang" icon is only
rendered when:
- the user has the patrol right.
- the rc type is EDIT and rcpatrol is permitted, or
  the tc type is NEW and nppatrol is permitted.
- the rc event is in fact still unpatrolled.

In other words, when an edit is patrollable and unpatrolled.

However, consumers of the API are unable to render this because
the API only has a boolean "patrolled" attribute. Apps using
the absence of "patrolled" and presence of "patrol" right as
meaning "unpatrolled" get into trouble on wikis with RCpatrol
disabled and NPpatrol enabled. In those cases the app would
render a change as unpatrolled, but when the user clicks it
find out it can't be patrolled.

This adds an "unpatrolled" flag that does just that.

Change-Id: Ic947c6c75eb7936fcebdccbcd27ff62e07f1feda
2013-10-25 17:26:43 +02:00
aude
761b880e98 Split changes list classes into separate files
Having them separate improves readability of the code
and makes it easier to work with this code.

Change-Id: Ic6aaf1ace3640f66ad41c2d85b4f7d740b259e0c
2013-10-19 14:26:27 +00:00