enterprisemediawiki / meza

Setup an enterprise MediaWiki server with simple commands
MIT License
41 stars 27 forks source link

Merge Freephile's changes #905

Open jamesmontalvo3 opened 6 years ago

jamesmontalvo3 commented 6 years ago

Tracking plan to merge @freephile changes into this repo.

Differences that don't need to be merged

freephile commented 6 years ago

 [EZ] .gitignore hosts and nbproject

DECLINE CHANGE This is mostly irrelevant. I could re-create this on an isolated commit to make it something easier to merge if desired.

[EZ] Semantic compound queries version changed from 1.1.0 to ~1.1

I generally prefer sticking with exact versions. Approximate versions have bitten us in the past. It's not a big deal to submit a PR to roll a version number from 1.1.0 to 1.1.1 or whatever. It provides good traceability. But if composer decides to pull a newer version (which is supposed to not break anything but it happens) and something doesn't work right then we don't have any clear way to point to what caused the issue.

DECLINE CHANGE I agree, and can't find any reference to why I might have changed the version match notation for Semantic Compound Queries. However, I notice this change is present in 5aec77f046337a8b3667d61da65c01a30b2d513c Also, the INSTALL directions at https://www.mediawiki.org/wiki/Extension:Semantic_Compound_Queries say to list ~1.1 in composer.json (extension author is Yaron Koren)

ansible.cfg, forks = 1

does this make it so multiple servers won't be worked in parallel? I think this needs to be configurable. Agree that this should be configurable, if used at all. Basically, this is a documentation issue. "Meza needs at least 2GB Memory ... etc." If trying to run meza on a very limited platform, you might try forks=1 in your ansible.cfg to limit execution to a single thread.

DECLINE CHANGE

defaults.yml m_http_always = true

checks for unmanaged load balancer, modifying Apache config in apache-php/tasks/main.yml

This commit adds a configuration option to force HTTPS always ON in your Meza instance, when using an external load balancer. Commit 19db20f8dd4a17df42351a5ea073024ba8eb5b55

Allowing access to ES plugins in site.yml

Updated docs in #897 and #895 does the method shown here work? plus CORS settings in elasticsearch.yml, plus balancers in haproxy.cfg

DECLINE CHANGE I believe the update in the docs is sufficient.

access Apache server info in httpd.conf

889 moved several server status related items into [[Special:Serverstatus]]

DECLINE CHANGE Great job on the extension! Perfect

Short URLs in httpd.conf (or is this related to subdomains?), Modifying httpd.conf for aliases in configure-wiki/tasks/main.yml, .htaccess changes, symlink to core in mediawiki/tasks/main.yml, modify LocalSettings

NEEDS WORK Commit 6d8a918016c231b02249ec6b2bb948a0bf93cadc Short URLs are an implementation of the Short URLs in MediaWiki so we get page URLs like http://example.org/wiki/Page_title It does conflict with traditional Meza setups that use the $wikiId (folder) for $wgScriptPath. Introduces $wgArticlePath as "/wiki/$1"

[EZ] Rotate MariaDB.log in database/tasks/configure.yml an d roots .my.cnf

DECLINE CHANGE (already committed)

Removed SSL certs from load balancer...doesn't this break standard installs?

NEEDS WORK Yes, it does. It's supposed to be used with the CertBot role that I have in development. The CertBot role should provide the SSL cert for the standard install.

[EZ] Robots.txt

DECLINE CHANGE (already committed)

[EZ] Meza auth type default to anon-read

Proposed because anonymous edit is a nightmare on a public wiki. (You will get SPAM instantly)

[EZ] More skins

For default installs, I believe it makes sense to incorporate a few of the 'standard' skins that would be available in the tarball: Vector (the default skin), MonoBook, Modern and Cologne Blue. I still would like to implement MezaLocalSkins.yml, where perhaps we list some of the most popular skins

[EZ] Use freephiles WikiBlender, allow setting domain vs path method for WikiBlender

Yup, we should do this.

Add --doshared to update.php. I don't think we want to do this. See my response on one of the pull requests that included this

DECLINE CHANGE Agreed. It's a bad idea to add this option. In fact, another commit reverts the change. There is an unresolved bug in MediaWiki (that update.php skips shared tables without --doshared; and breaks if you do specify it: See https://phabricator.wikimedia.org/T158154). Due to the bug, this option creates more problems if actually used. NEEDS WORK UPSTREAM

importExtensions.php (what does this do?)

It compares extensions defined in a local Meza (both in core and MezaLocalExtensions.yml) as compared to what is found in a site API (aka the "live" site you want to convert). It lists any extensions found on the live site that aren't already in your "staging/test" site controlled by Meza. It's like the extension that Cindy just worked up: https://www.mediawiki.org/wiki/Extension:VersionCompare DECLINE CHANGE (use Cindy's extension if desired)

jamesmontalvo3 commented 6 years ago

I'll address all of the above hopefully tonight. Too much for me to read right now...but can you confirm that I should close #833 and #871?

jamesmontalvo3 commented 6 years ago

I closed them because I'm pretty sure that's what you meant. Will reopen if I'm wrong.

freephile commented 6 years ago

@jamesmontalvo3 You can close this issue. I re-synchronized my master to match yours. I created new branches for each individual change that possibly merits inclusion in master. I will create separate (new) pull requests for each.