Commit graph

42057 commits

Author SHA1 Message Date
Alexandre Emsenhuber
fbd17f8f52 Make data loading a bit better in ApiDelete.
* Use WikiPage::newFromID() directly instead of Title::newFromID() (for now it does not change anything but it will soon)
* Directly load the data from the master when creating a page from its name, it avoids both having out-of-date information
  when doing the existence check and a second database query from LinkCache::addLinkObj() when calling (WikiPage|Title)::exists()
* Moved the page existence check to only be executed when creating a title from its name since if we have a WikiPage from its ID it must exist.

Change-Id: Ifaff725d955ce111c46d6b7f00610191820f3ced
2012-04-16 13:18:10 +02:00
Siebrand
ddcf8cc660 Merge "Add option to rebuild message files on a different folder. It also creates the message file if missing." 2012-04-16 09:30:24 +00:00
Hashar
8bc159846f Merge "Tests aren't in /maintenance anymore! ;)" 2012-04-15 20:48:49 +00:00
Reedy
4cc3cc4336 Tests aren't in /maintenance anymore! ;)
Change-Id: I084a1d5dc27f0cfdb1f22ba8d205e8f5a5b641a8
2012-04-15 19:21:12 +01:00
Siebrand Mazeland
e0cbf682a7 Correct punctuation for 'disambiguations-text'.
Change-Id: Iadf0e2619a9411cbd95d65a2180fc671e734fdd1
2012-04-15 20:14:44 +02:00
Szymon Świerkosz
d66a00d8f3 Fix gettoken loophole from https://gerrit.wikimedia.org/r/#change,4220
Reported and patch by Szymon Świerkosz/Beau

Change-Id: I3b5a001ad60e7e637b351331794cb275a7cf021a
2012-04-15 18:40:20 +01:00
Brion VIBBER
ae7408460d Merge "(bug 26909) follow up r102947: fix the navigation with 'dir' and 'continue' for some prop-Modules" 2012-04-15 00:50:00 +00:00
Alexandre Emsenhuber
00e317e780 (bug 35920) Fix group addition/removal messages on Special:Listgrouprights
Fix for SVN r113178; seems that I forgot to remove 'parseinline' on some messages when changing wfMsgExt() to $this->msg().

Change-Id: I7138de97717b0976d1ae9da31a5d46f1ce513c85
2012-04-14 22:31:50 +02:00
Timo Tijhof
26eae98f7f Update jQuery requirements in resources/startup.js per jQuery 1.7.x release
- Check http://jquery.com/:
 * IE 6.0+, FF 3.6+, Safari 5.0+, Opera, Chrome

- It does not include an Opera number, but they are only
  actively testing for Opera 11.x versions. Also Operate
  is quite bold in their upgrade requirement in-browser,
  so that shouldn't be much of an issue.

  I've also updated
  https://www.mediawiki.org/wiki/Compatibility#Browser

  Note that this means that we no longer support enhanced functionality in
  some browsers that are currently still above the 0.1% wmf-traffic threshold
  we keep. I've therefor split [[mw:Compatibility#Browser]] in a "Grade A"
  and "Grade B" section. One that we support for all functionality, and the
  others we support because of traffic, but not "everything" will work.
  Right now the only notable difference will be jQuery and depending modules.

  In reality Grade B will still get the same data served as Grade A, since
  startup.js only enforces IE6 right now (bug 35906)

  Auto-updating Chrome will not need a check, and Chrome < 1.0 is very minor,
  and will probably even work just fine.

Change-Id: If60de580fc892ced1a43a0bc4958988d98d087d9
2012-04-14 03:53:25 +02:00
Aaron
63f81b0c67 Updated some filebackend qqq messages.
Change-Id: I9a5dd0d32afae945af681b049eda6414f0689781
2012-04-13 16:46:44 -07:00
Antoine Musso
60b07ca1b4 Merge "MockOutputPage class in its own file" 2012-04-13 19:23:15 +00:00
saper
91eb34756e Fix broken merge by 0a792a1dcb
Changeset 1 of https://gerrit.wikimedia.org/r/#change,3365:
763b57f9f2af131a2d8e65f520a23c00109be0e1

got mis-merged in changeset 2:
f752cf8042

And introduced into master wth
0a792a1dcb

Also, marking all new functions as @since 1.19
since we want to have them there later.

Patchset 2: whitespace fixes
Patchset 3: Fix <?php
Patchset 4: rebase to current master

Change-Id: Ic7d940dfec8890de20197128505962375fac4f06
2012-04-13 20:55:14 +02:00
Alexandre Emsenhuber
71ff100bf0 (bug 35941) Fix PHP notice in SpecialVersion::getVersion()
Seems that I forgot to change one instance of $info to $svnInfo in I2f4839fb587903524fdaf041597174003ccfdfeb.

Change-Id: I7e47ca6278569290df4b32cac584c94020c13b64
2012-04-13 16:56:47 +02:00
Antoine Musso
2389ec7141 MockOutputPage class in its own file
The MockOutputPage can be needed in various tests suite beside
GlobalFunctions. Seems to make sense to get it in its own class so we
can easily use it.

Change-Id: Icbb34db81e8cc8636d95f6326dd228bc74a741d7
2012-04-13 12:47:19 +02:00
Reedy
2fcd7dbf7c Fixup/finish off function parameter documentation
Remove unused variable

Change-Id: I9b19388ded628c170d10ac371882a4debd845ea8
2012-04-13 04:10:46 +01:00
Catrope
085367d5ac Merge "[FileBackend] Simplified fj_batch_id index" 2012-04-13 01:13:35 +00:00
Demon
90b4c84ae6 Merge "Fix https://gerrit.wikimedia.org/r/4830 , I botched the conflict resolution there" 2012-04-13 00:49:41 +00:00
Catrope
e69afa4340 Fix https://gerrit.wikimedia.org/r/4830 , I botched the conflict
resolution there

Change-Id: I7d563851e8b89c249105e91ceed71f747732084f
2012-04-12 17:48:03 -07:00
Catrope
82cb2739af Merge "Revert "Bit more refactoring"" 2012-04-13 00:25:41 +00:00
Catrope
d242205f72 Revert "Bit more refactoring"
This reverts commit 5586e73fac.

This broke mergeMessageFileList.php by no longer running the extension
setup files in the global scope.

Change-Id: I8f22d0b3e938ba617f4297802edfc2012d78cc9b
2012-04-12 17:20:00 -07:00
Aaron
4e4b11a620 [FileBackend] Simplified fj_batch_id index
If we want to sort the ops for a batch ID, we can just use a tiny to small filesort.
No need to make the index bigger.

Change-Id: Ibf7592930ec633a26e675e33d42aebe7763547b1
2012-04-12 18:26:41 -04:00
GWicke
6b0f2acfd9 Merge "document how the parser handles list items coming from a template, especially the surprising start-of-line behavior. This test will be used to implement matching behavior in Parsoid." 2012-04-12 21:56:42 +00:00
Brion VIBBER
92970019a2 Merge "Add missing uploads link to deleted contributions." 2012-04-12 21:44:06 +00:00
Alexandre Emsenhuber
bd71828135 Use local context to get messages
Change-Id: I2c3a26f87eb70b4235c8d042d1e3a8ddc11bc14b
2012-04-12 22:51:06 +02:00
Catrope
5adb095c71 Merge "Use $wgUser in ResourceLoaderUserGroupsModule when possible." 2012-04-12 20:33:33 +00:00
Translation updater bot
7ee06f2e3a Localisation updates from http://translatewiki.net.
Change-Id: I91cffe747b9e1baca36bfd1324dd3d06227849ca
2012-04-12 20:22:14 +00:00
Translation updater bot
c37aa67296 Localisation updates from http://translatewiki.net.
Change-Id: I2074bd01faa0857441aab61aede21d6f73637bef
2012-04-12 17:32:30 +00:00
Adam Wight
376d54f4c5 document how the parser handles list items coming from a template,
especially the surprising start-of-line behavior.  This test will
be used to implement matching behavior in Parsoid.

Change-Id: Ibfa13dfd2be2d62c285449cb090e2b112fe30f9b
2012-04-12 08:50:29 -07:00
Alex Monk
542d6681d8 Add missing uploads link to deleted contributions.
Change-Id: I5a48a3543667a8f7a3dbb5f126eac985923fa34c
2012-04-12 16:12:00 +01:00
Mark A. Hershberger
1fd03b05f0 misleading comment: s/append/prepend/
Change-Id: I0855dd8c90270c902e78de36ecab711cb2b561ac
2012-04-12 10:59:09 +02:00
Alexandre Emsenhuber
dd69dbe251 Use local context to get messages
Change-Id: I8964e683a81f45c871bedd283822e4ac72e937ee
2012-04-11 21:49:31 +02:00
Aaron Schulz
8eadeaf472 Merge "Check for namespace existence in Title::makeTitleSafe()." 2012-04-11 19:44:25 +00:00
Antoine Musso
d664ffd18a (34037) phpunit tests timeout too fast
PHPUnit has a timeout protection system which let us put tests in three
categories having different timeout (default: 1s, 10s, 60s). The timeout
only happens when using strict mode and having PHPUnit Invoker
installed.

Recently, the continuous integration server has been upgraded and the
PHPUnit Invoker was installed to let us run a serie of tests related to
dumping the database to XML. They do need some timeout system. Suddenly,
some tests started failing.

By default all tests are in the 1 second timeout group. Since we use a
sqlite backend and the server hard disk can get busy, some test can take
more than one second to execute.

This patch raise the default (small group) timeout to 2seconds and
explicitly define the value for the two other groups (medium and large)
using PHPUnit default values.

Change-Id: I2f5613b0c0215023c413dec8e84804175d8c8d6e
2012-04-11 21:08:09 +02:00
Aaron
26ab914aa9 Fixed missing argument to pingExpensiveCache() call.
Change-Id: If3cf56e9cc804388cf3396e8ab15cae2f80de828
2012-04-11 12:02:20 -07:00
Aaron
779f2243db Fixed use of undefined FILES_ONLY constant.
Change-Id: Icc924785cdb394adc723666bf9f6a67e9d6a4d0d
2012-04-11 11:47:15 -07:00
Timo Tijhof
fcdeff9945 Increase QUnit async stop() timeout limit, improve documentation
- Raise from 5s to 10s. Should fix the false positives that sometimes
  happens in TestSwarm if a VM is being slow (especially IE6).

Change-Id: I4bc00b34040f5659c8456ce6978627c32497656d
2012-04-11 19:26:06 +02:00
Nikerabbit
a1f24d5ac6 Merge "default gitreview to no rebase" 2012-04-11 15:03:50 +00:00
Hashar
1983d168d1 Merge "Refresh INSTALL's version numbers from RELEASE-NOTES" 2012-04-11 13:17:14 +00:00
Alexandre Emsenhuber
9eb25dc032 Check for namespace existence in Title::makeTitleSafe().
Namespace existence has to be checked before calling Title::makeName() because otherwise it will fallback to a page with the same name, but in the main namespace which is not what we want here.

Change-Id: I8c087390044c54dd0502c1b8bb9321dfaec6b5f7
2012-04-11 14:37:27 +02:00
Christian Aistleitner
87805d93c8 Refresh INSTALL's version numbers from RELEASE-NOTES
Change-Id: I914656da45862fb62f9a9e4d6d573dc3e9a93e80
2012-04-11 14:18:29 +02:00
Antoine Musso
a768201219 default gitreview to no rebase
Automatic rebasing is often unwanted when submitting a new patchset to
gerrit. That is a default behavior of git-review which is unwanted.

New release of git-review will have a new ini setting which let us
disable rebasing by default :-)

Change-Id: I634979b8fbc0ac23a5d13893fb5eaa60a5156764
2012-04-11 14:00:24 +02:00
Niklas Laxström
edfb4c738c Html::setSubmitTextMsg double escapes
On Dutch the button showed "Pagina&#039;s verwijderen"

Change-Id: I082e16e9320ba4aef1e2bf5f81cfe54fdf61b6c3
2012-04-11 11:23:08 +00:00
Brion VIBBER
697c683bd6 Merge "Follow-up I5b02aa914916f64492c85ce6dcc3272b6406551a (#4335), also put a link in the debug toolbar." 2012-04-10 21:10:48 +00:00
Aaron Schulz
32edcb1f17 Merge "Remove request_with_session/request_without_session" 2012-04-10 20:59:44 +00:00
Brion VIBBER
9791a4e52d Merge "Employing MediaWikiTestCase's temporary file methods" 2012-04-10 20:54:36 +00:00
Alexandre Emsenhuber
17ccccda2a Follow-up I5b02aa914916f64492c85ce6dcc3272b6406551a (#4335), also put a link in the debug toolbar.
Now that there is a link on the revision hash in Special:Version, do the same in the debug toolbar.

Change-Id: I953ac70e17e72be68251e3908e164dfa46c68bf5
2012-04-10 22:44:26 +02:00
Brion VIBBER
8de59d1452 Merge "(bug 33658) support for {{GRAMMAR:}} in jqueryMsg" 2012-04-10 20:42:34 +00:00
Aaron Schulz
01243dec44 Merge "makes gitweb URL points to full sha1" 2012-04-10 20:30:27 +00:00
Demon
d011d3aa85 Merge "Normalise categorymembers to take ascending/descending for direction, also adding newer/older to make it like other modules" 2012-04-10 20:30:17 +00:00
Antoine Musso
8196f3f11b makes gitweb URL points to full sha1
The URL we are crafting are using a short sha1 (7 chars long) which can
have some good chance of pointing to two different sha1. I have seen git
log to use 8 chars from time to time because of sha1 collisions, 62
occurences outu of 45315 commits as of now.

So to play it safe, this patch makes the URL points to the full sha1.

Follow https://gerrit.wikimedia.org/r/4335
5734eac351 (commit)
9afc1eff1c (merge)

Change-Id: Ic65d0ca89916fe43999b9e3f257d9f322198f9f8
2012-04-10 22:20:15 +02:00