Page MenuHomePhabricator

Phab Scap template vs actual value out of sync for numerous values
Open, Needs TriagePublic

Description

https://phabricator.wikimedia.org/config/edit/maniphest.custom-field-definitions/ and the same setting in https://gitlab.wikimedia.org/repos/phabricator/deployment/-/blob/wmf/stable/scap/templates/phabricator/conf/local/local.json.j2 are out of sync.

That's probably the case for years.

https://phabricator.wmcloud.org/ at least seems to use the Scap values ("Local Config") and doesn't have any random custom stuff ("Database").

Event Timeline

Change #1185884 had a related patch set uploaded (by Aklapper; author: Aklapper):

[operations/puppet@production] phabricator: remove defunct ElasticSearch backend settings

https://gerrit.wikimedia.org/r/1185884

Change #1185884 merged by Dzahn:

[operations/puppet@production] phabricator: remove defunct ElasticSearch backend settings

https://gerrit.wikimedia.org/r/1185884

Change #1188815 had a related patch set uploaded (by Dzahn; author: Dzahn):

[operations/puppet@production] phabricator: drop elasticsearch settings in codfw

https://gerrit.wikimedia.org/r/1188815

Change #1188815 merged by Dzahn:

[operations/puppet@production] phabricator: drop elasticsearch settings in codfw

https://gerrit.wikimedia.org/r/1188815

<noting that the above patches were reverted; see T403948#11185883>

q: Is the scope of this task maniphest.custom-field-definitions only, or is it any config setting for which the 'Database' value for production-Phabricator is different to the 'Local Config' value set in GitLab/by Scap?

The former. The latter is not a problem per-se.

Fair enough. Speaking personally, though, it would be nice if Phab's config could be public (ie., I guess in GitLab) where it can be :)

Aklapper renamed this task from Phab Scap template vs actual value out of sync for maniphest.custom-field-definitions to Phab Scap template vs actual value out of sync for numerous values.Wed, May 27, 10:26 AM

Switched a few more now-identical config settings from reading DB to reading JSON config file:

aklapper@phab1004:~$ cd /srv/phab/phabricator/
aklapper@phab1004:/srv/phab/phabricator$ sudo ./bin/config delete --database "metamta.recipients.show-hints"
  Deleted 'metamta.recipients.show-hints' from database configuration.
aklapper@phab1004:/srv/phab/phabricator$ sudo ./bin/config delete --database "maniphest.points"
  Deleted 'maniphest.points' from database configuration.
aklapper@phab1004:/srv/phab/phabricator$ sudo ./bin/config delete --database "ui.logo"
  Deleted 'ui.logo' from database configuration.

Removed Releeph from config file in https://gitlab.wikimedia.org/repos/phabricator/deployment/-/commit/e4f2481029cf60edf63096f28b2bd6896a0ff571

aklapper@phab1004:/srv/phab/phabricator$ sudo ./bin/config delete --database "phabricator.uninstalled-applications"
Deleted 'phabricator.uninstalled-applications' from database configuration.
aklapper@phab1004:/srv/phab/phabricator$ sudo ./bin/config delete --database "differential.fields"
Deleted 'differential.fields' from database configuration.

Added 'diffusion.fields' config from production database in https://gitlab.wikimedia.org/repos/phabricator/deployment/-/commit/6cf9d0e48fa8f1cd4365bb226e1a3811fe37f719

aklapper@phab1004:/srv/phab/phabricator$ sudo ./bin/config delete --database "maniphest.statuses"
Deleted 'maniphest.statuses' from database configuration.