Commit graph

13 commits

Author SHA1 Message Date
Amir Sarabadani
3936ddb4be Set l18n cache to array in DevelopmentSettings.php
Bug: T218207
Change-Id: Ib52d766436f487570b26fde54abfb1ff780c3647
2019-09-17 22:52:59 +02:00
Timo Tijhof
853de300a3 DevelopmentSettings: Clarify grouping of settings and purpose
Change-Id: Ia0fc063eb2679b466e19e6dabaf1f4bea7d6bb20
2019-08-07 14:23:58 +00:00
James D. Forrester
9c0dd23b96 Follow-up ffd802a386: Actually disable legacy JS globals
Bug: T72470
Change-Id: I2703420afd260c1c9d0cdc17baceed12dc28f758
2019-07-21 19:07:42 +00:00
James D. Forrester
ffd802a386 DevelopmentSettings: Disable legacy javascript globals in CI and for devs
Bug: T72470
Change-Id: Iedd3a9c8e541bc4cc657753e6ae3389f0393ed64
2019-07-19 13:53:57 -07:00
Timo Tijhof
098463b77a DevelopmentSettings: Document why wgRateLimits is disabled
Follows-up 9c52f982d8.

Bug: T225796
Change-Id: I6f7a75d58c61712233134a9d480ce68719d6cb6a
2019-06-18 00:02:24 +00:00
Leszek Manicki
9c52f982d8 Disable rate limiting in Development Settings
Bug: T225796
Change-Id: I2475a04066d4aaefeba372bd223ef68548a8cf18
2019-06-17 11:11:39 +02:00
Timo Tijhof
35fc6499f7 DevelopmentSettings: Remove redundant CacheType overrides
Follows-up 5a090c2982. This is no longer needed as of
7e0fb4fff6, which will add this to the generated LocalSettings.php
file automatically.

The installer now sets MainCacheType for CLI installs, the same
way as the web installer did already.

The secondary cache types have as default CACHE_ANYTHING (not
CACHE_NONE) and will automatically inherit from MainCacheType.

This commit unbreaks situations where developers have MainCache
set to something (e.g. Redis, or Memc) which after 5a090c2982
caused other types to go to APC instead of Memc.

Bug: T225496
Change-Id: Ib2824a6d316912daf09672de748726b91e4de449
2019-06-13 15:12:20 +01:00
Amir Sarabadani
5a090c2982 Set cache types to APC/APCu/WinCache in DevelopmentSettings.php
Bug: T225496
Change-Id: I14dd3fea9795a501e29383a3cae2b3e9a0077e69
2019-06-11 13:25:43 +02:00
Derick Alangi
2dc9ea3f32 DevelopmentSettings: Remove unused globals & declare $wgSQLMode
Some globals where declared but not used and $wgSQLMode was not declared
at all. Removed the unsed vars.

Change-Id: I44e6b8b6173674089271a172cf7bda6e320c53d8
2019-04-13 17:54:30 +00:00
Antoine Musso
45919c5869 tests: enable MariaDB/MySQL strict mode
Pass sql_mode=TRADITIONAL to the SQL connection which would raise an
error instead of warning, for example when a field is truncated.

This change will most probably cause some extensions test to start
magically failling.

Bug: T119371
Change-Id: I2051952090e48876f629690981e25603eff79f67
2019-04-01 21:54:30 +00:00
Bill Pirkle
807125abdb Deprecate $wgShowSQLErrors and $wgShowDBErrorBacktrace and make nonfunctional
Clarify and simplify exception output by deprecating
$wgShowSQLErrors and wgShowDBErrorBacktrace.
$wgShowExceptionDetails will now control most related output.
$wgShowHostnames will now solely control output of
MWExceptionRenderer::reportOutageHTML.

Bug: T165768
Change-Id: Idead2c11c499463dfa6293c3d4b33be3bde92e1a
2018-07-25 10:38:19 -05:00
Timo Tijhof
6ced693ee7 tests: Remove verbose logging settings from DevelopmentSettings.php
Follows-up fdb7d36903. It seems these make unit tests on Travis CI
fail, per T187581. And when we briefly enabled DevelopmentSettings.php
in our Jenkins setup, the PHPUnit tests also failed.

Remove these from DevelopmentSettings.php to confirm that the
tests pass that way. Then, once our own Jenkins setup has switched
back to using DevelopmentSettings.php, we can re-consider adding
these in a way that is verified by Gerrit/Jenkins before merging.

Bug: T187581
Change-Id: Ib81c5909849598bdad02955f6414d68c038742c5
2018-02-19 22:19:15 +00:00
Timo Tijhof
fdb7d36903 tests: Commit initial version of DevelopmentSettings.php
* Store in the includes/ directory.
* Use by default in Travis CI builds.
* Add command-line option to phpunit.php to use it.
* See commit ## for use by Jenkins jobs, which will load it directly
  from LocalSettings.php (instead of via phpunit) so that it applies
  to web entry points and other maintenance scripts as well.

Bug: T177669
Change-Id: I6e5dc5f0dddc1960761980552ed2bb31e6ae9fd9
2017-12-27 22:13:24 +00:00