1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-01 03:02:43 +01:00
phorge-phorge/src/applications/config/check
Mukunda Modell 699228c73b Address some New Search Configuration Errata
Summary:
  [ ] Write an "Upgrading: ..." guidance task with narrow instructions for installs that are upgrading.
  [ ] Do we need to add an indexing activity (T11932) for installs with ElasticSearch?
  [ ] We should more clearly detail exactly which versions of ElasticSearch are supported (for example, is ElasticSearch <2 no longer supported)? From T9893 it seems like we may //only// have supported ElasticSearch <2 before, so are the two regions of support totally nonoverlapping and all ElasticSearch users will need to upgrade?
  [ ] Documentation should provide stronger guidance toward MySQL and away from Elastic for the vast majority of installs, because we've historically seen users choosing Elastic when they aren't actually trying to solve any specific problem.
  [ ] When users search for fulltext results in Maniphest and hit too many documents, the current behavior is approximately silent failure (see T12443). D17384 has also lowered the ceiling for ElasticSearch, although previous changes lowered it for MySQL search. We should not fail silently, and ideally should build toward T12003.
  [ ] D17384 added a new "keywords" field, but MySQL does not search it (I think?). The behavior should be as consistent across MySQL and Elastic as we can make it. Likely cleaner is giving "Project" objects a body, with "slugs" and "description" separated by newlines?
  [ ] `PhabricatorSearchEngineTestCase` is now pointless and only detects local misconfigurations.
  [ ] It would be nice to build a practical test suite instead, where we put specific documents into the index and then search for them. The upstream test could run against MySQL, and some `bin/search test` could run against a configured engine like ElasticSearch. This would make it easier to make sure that behavior was as uniform as possible across engine implementations.
  [ ] Does every assigned task now match "user" in ElasticSearch?
  [x] `PhabricatorElasticFulltextStorageEngine` has a `json_encode()` which should be `phutil_json_encode()`.
  [ ] `PhabricatorSearchService` throws an untranslated exception.
  [ ] When a search cluster is down, we probably don't degrade with much grace (unhandled exception)?
  [ ] I haven't run bin/search init, but bin/search index doesn't warn me that I may want to. This might be worth adding. The UI does warn me.
  [ ] bin/search init warns me that the index is "incorrect". It might be more clear to distinguish between "missing" and "incorrect", since it's more comforting to users to see "everything is as we expect, doing normal first-time setup now" than "something is wrong, fixing it".
  [ ] CLI message "Initializing search service "ElasticSearch"" does not end with a period, which is inconsistent with other UI messages.
  [ ] It might be nice to let bin/search commands like init and index select a specific service (or even service + host) to act on, as bin/storage --ref ... now does. You can generally get the result you want by fiddling with config.
  [ ] When a service isn't writable, bin/search init reports "Search cluster has no hosts for role "write".". This is accurate but does not provide guidance: it might be more useful to the user to explain "This service is not writable, so we're skipping index check for it.".
  [x] Even with write off for MySQL, bin/search index --type task --trace still updates MySQL, I think? I may be misreading the trace output. But this behavior doesn't make sense if it is the actual behavior, and it seems like reindexAbstractDocument() uses "all services", not "writable services", and the MySQL engine doesn't make sure it's writable before indexing.
  [x] Searching or user fails to find task Grant users tokens when a mention is created, suggesting that stemming is not working.
  [x] Searching for users finds that task, but fails to find a task containing "per user per month" in a comment, also suggesting that stemming is not working.
  [x] Searching for maniphest fails to find task maniphest.query elephant, suggesting that tokenization in ElasticSearch is not as good as the MySQL tokenization for these words (see D17330).
  [x] The "index incorrect" warning UI uses inconsistent title case.
  [x] The "index incorrect" warning UI could format the command to be run more cleanly (with addCommand(), I think).

refs T12450

Test Plan:
* Stared blankly at the code.
* Disabled 'write' role on mysql fulltext service.
* Edited a task, ran search indexer, verified that the mysql index wasn't being updated.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Maniphest Tasks: T12450

Differential Revision: https://secure.phabricator.com/D17564
2017-03-28 20:19:38 +00:00
..
__tests__ Add a bunch of tests for subclass implementations 2015-06-15 18:13:27 +10:00
PhabricatorAuthSetupCheck.php Config - make "No auth providers configured" check use proper hyperlinking technology 2015-06-16 14:49:52 -07:00
PhabricatorBaseURISetupCheck.php Improve "Host" header check 2015-02-26 14:37:48 -08:00
PhabricatorBinariesSetupCheck.php Remove the warning about the Git 2GB pathname issue 2016-04-19 07:01:45 -07:00
PhabricatorCacheSetupCheck.php Redesign Config Application 2016-08-29 15:49:49 -07:00
PhabricatorDaemonsSetupCheck.php Be less strict when detecting dead daemons 2017-02-22 14:11:28 -08:00
PhabricatorDatabaseSetupCheck.php When storage is partitioned, refuse to serve requests unless web and databases agree on partitioning 2016-11-22 04:15:46 -08:00
PhabricatorElasticSearchSetupCheck.php Address some New Search Configuration Errata 2017-03-28 20:19:38 +00:00
PhabricatorExtensionsSetupCheck.php Split setup check phases into "preflight" and "post-config" 2016-09-06 14:20:11 -07:00
PhabricatorExtraConfigSetupCheck.php Support multiple fulltext search clusters with 'cluster.search' config 2017-03-26 08:16:47 +00:00
PhabricatorFileinfoSetupCheck.php phtize all the things 2015-05-22 21:16:39 +10:00
PhabricatorGDSetupCheck.php phtize all the things 2015-05-22 21:16:39 +10:00
PhabricatorImagemagickSetupCheck.php phtize all the things 2015-05-22 21:16:39 +10:00
PhabricatorInvalidConfigSetupCheck.php Split Setup Issues into Groups 2015-02-10 12:53:00 -08:00
PhabricatorMailSetupCheck.php Add amazon-ses.endpoint configuration 2016-03-23 12:28:59 -07:00
PhabricatorManualActivitySetupCheck.php Add "Manual Activities", to tell administrators to rebuild the search index 2016-11-30 11:23:54 -08:00
PhabricatorMySQLSetupCheck.php Support multiple fulltext search clusters with 'cluster.search' config 2017-03-26 08:16:47 +00:00
PhabricatorPathSetupCheck.php Various translation improvements 2015-11-03 07:02:46 +11:00
PhabricatorPHPConfigSetupCheck.php Fix errors found by PHPStan 2017-02-17 10:10:15 +00:00
PhabricatorPHPPreflightSetupCheck.php Change PHP 7 setup warning to complain about 7.0 only, not 7.1+ 2017-01-12 15:59:28 -08:00
PhabricatorPygmentSetupCheck.php Fix message about pygments being in $PATH 2015-10-16 09:51:39 -07:00
PhabricatorRepositoriesSetupCheck.php Store Almanac "service types" instead of "service classes" 2016-02-26 06:21:50 -08:00
PhabricatorSecuritySetupCheck.php Fix errors found by PHPStan 2017-02-17 10:10:15 +00:00
PhabricatorSetupCheck.php Fix two cache issues (global settings; initial setup) 2016-12-11 08:28:10 -08:00
PhabricatorStorageSetupCheck.php Fix errors found by PHPStan 2017-02-17 10:10:15 +00:00
PhabricatorTimezoneSetupCheck.php Remove duplicated duplicated words 2015-06-27 08:43:44 -07:00
PhabricatorWebServerSetupCheck.php Add a setup check for installation on a burstable instance type 2016-12-09 08:32:16 -08:00