mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-29 00:40:57 +01:00
298604c9d3
Summary: Fixes T6084. Changes: - Rename `phabricator.show-beta-applications` to `phabricator.show-prototypes`, to reinforce that these include early-development applications. - Migrate the config setting. - Add an explicit "no support" banner to the config page. - Rename "Beta" to "Prototype" in the UI. - Use "bomb" icon instead of "half star" icon. - Document prototype applications in more detail. - Explicitly document that we do not support these applications. Test Plan: - Ran migration. - Resolved "obsolete config" issue. - Viewed config setting. - Browsed prototypes in Applications app. - Viewed documentation. Reviewers: chad, btrahan Reviewed By: btrahan Subscribers: epriestley, hach-que Maniphest Tasks: T6084 Differential Revision: https://secure.phabricator.com/D10493
24 lines
524 B
PHP
24 lines
524 B
PHP
<?php
|
|
|
|
$old_key = 'phabricator.show-beta-applications';
|
|
$new_key = 'phabricator.show-prototypes';
|
|
|
|
echo "Migrating '{$old_key}' to '{$new_key}'...\n";
|
|
|
|
if (PhabricatorEnv::getEnvConfig($new_key)) {
|
|
echo "Skipping migration, new data is already set.\n";
|
|
return;
|
|
}
|
|
|
|
$old = PhabricatorEnv::getEnvConfigIfExists($old_key);
|
|
if (!$old) {
|
|
echo "Skipping migration, old data does not exist.\n";
|
|
return;
|
|
}
|
|
|
|
PhabricatorConfigEntry::loadConfigEntry($new_key)
|
|
->setIsDeleted(0)
|
|
->setValue($old)
|
|
->save();
|
|
|
|
echo "Done.\n";
|