-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add relevant wikiteq branch changes to master #388
Comments
My thoughts:
|
I looked more into that giant #371 patch, and it's actually a combination of a whole bunch of things:
Clearly this PR was poorly named, and it probably should have been split into 10-20 PRs (!), which would have made it easier to evaluate each change separately. Anyway, assuming that this outline is roughly correct, are there any thoughts on which parts should or should not be added to Canasta? (Apart from # 5, which is there already.) Personally, I don't strongly object to any of it, though there are parts that look more useful than others, and there are changes that it would definitely be good to see an explanation for. |
My thoughts:
|
@tosfos - after our discussion, I think the only question I'm really curious about, relating to these patches, is this one: what are these mediawiki.conf changes from March about? |
This part is not needed for Canasta and can be removed.
This config for the remoteip Apache module ("The module overrides the client IP address for the connection with the useragent IP address reported in the request header configured with the RemoteIPHeader directive.") For example how IPs of DOS attacker were banned in the Apache config: https://github.com/WikiWorks/Society-of-Exploration-Geophysicists/commit/7cf51ebb7362d04fc01fa1f2bb43ad42c261c848
This config works well in most cases, allows to write clear config and in case we need to use another header like cf-connecting-ip as the user IP, all we need is to define it in the APACHE_REMOTE_IP_HEADER variable. |
@pastakhov - thank you for that detailed explanation! Those last two changes do look helpful. |
By the way, I wonder if the ideal way to handle items 4 and 6c (turning directories in the SMW and Widgets extensions into volumes, so that they don't get wiped out during upgrades) is by adding to the YAML format (e.g. extensions.yaml) a parameter like "volumed directories:", so that each extension (or even skin) can declare its own volumed directories, rather than hardcoding these in Canasta. I do like the idea of making Canasta as "extension-neutral" as possible. |
I still think this could be a good idea, although maybe the parameter should be called something like "persistent directories", rather than "volumed directories", because the syntax should ideally not be Docker-specific. |
This was accidentally closed... |
Re-opening, again - this may have to be done quite a bit. |
There have been many changes to the wikiteq branch since it was created about seven months ago; and though there has been an effort at synchronizing the wikiteq and master branches by myself and others, there certainly remain differences between the two - which it would be best to avoid, if possible. I went through to find changes to the wikiteq branch that it could make sense to add to the master branch in one form or another, and found the following five. They range in size from simple one-line changes (#332, #375) to a massive change to 19 files (#371), which despite its name seems to do much more than move the location of the log files - actually, much of that patch seems to itself be an attempt at synchronization, so it's probably not as big as it appears.
It would be good to identify which of these changes it makes sense to copy over - and ideally then copy those over.
EDIT: I figured it would be good to put together, in one place, a checklist of all the tasks to be done. So, here it is - also with some improvements to the task descriptions over what is listed below:
To do:
persistent directories
param to skin/extension YAML files (done in Add persistent-directories param to skin/extension YAML files #423)maintenance scripts
param to the skin/extension YAML files (done partially in Moving some code into the new files functions.sh and run-maintenance-scripts.sh #410 and Add get_mediawiki_cirrus_search_server function to functions.sh #414)--memory-limit
flag to runJobs.php calls (done in addition of the --memory-limit flag (with a value of 512M) when calling runJobs.php #407)a2enmod expires
toa2enmod expires remoteip
(done in changing the call a2enmod expires to a2enmod expires remoteip #405)make_dir_writable()
(done in Moving some code into the new files functions.sh and run-maintenance-scripts.sh #410 and Ensure that various directories are writeable #413)Maybe:
The text was updated successfully, but these errors were encountered: