mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-11 07:11:04 +01:00
Add formal setup guidance warning that "feed.http-hooks" will be removed in a future version of Phabricator
Summary: Depends on D20114. This is on the way out, so make that explicitly clear. Test Plan: Read setup issue and configuration option. Reviewers: amckinley Reviewed By: amckinley Differential Revision: https://secure.phabricator.com/D20115
This commit is contained in:
parent
e25dc2dfe2
commit
4fa5a2421e
2 changed files with 31 additions and 13 deletions
|
@ -84,6 +84,24 @@ final class PhabricatorExtraConfigSetupCheck extends PhabricatorSetupCheck {
|
|||
$issue->addPhabricatorConfig($key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (PhabricatorEnv::getEnvConfig('feed.http-hooks')) {
|
||||
$this->newIssue('config.deprecated.feed.http-hooks')
|
||||
->setShortName(pht('Feed Hooks Deprecated'))
|
||||
->setName(pht('Migrate From "feed.http-hooks" to Webhooks'))
|
||||
->addPhabricatorConfig('feed.http-hooks')
|
||||
->setMessage(
|
||||
pht(
|
||||
'The "feed.http-hooks" option is deprecated in favor of '.
|
||||
'Webhooks. This option will be removed in a future version '.
|
||||
'of Phabricator.'.
|
||||
"\n\n".
|
||||
'You can configure Webhooks in Herald.'.
|
||||
"\n\n".
|
||||
'To resolve this issue, remove all URIs from "feed.http-hooks".'));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,22 +20,22 @@ final class PhabricatorFeedConfigOptions
|
|||
}
|
||||
|
||||
public function getOptions() {
|
||||
$hooks_help = $this->deformat(pht(<<<EODOC
|
||||
IMPORTANT: Feed hooks are deprecated and have been replaced by Webhooks.
|
||||
|
||||
You can configure Webhooks in Herald. This configuration option will be removed
|
||||
in a future version of Phabricator.
|
||||
|
||||
(This legacy option may be configured with a list of URIs; feed stories will
|
||||
send to these URIs.)
|
||||
EODOC
|
||||
));
|
||||
|
||||
return array(
|
||||
$this->newOption('feed.http-hooks', 'list<string>', array())
|
||||
->setLocked(true)
|
||||
->setSummary(pht('POST notifications of feed events.'))
|
||||
->setDescription(
|
||||
pht(
|
||||
"If you set this to a list of HTTP URIs, when a feed story is ".
|
||||
"published a task will be created for each URI that posts the ".
|
||||
"story data to the URI. Daemons automagically retry failures 100 ".
|
||||
"times, waiting `\$fail_count * 60s` between each subsequent ".
|
||||
"failure. Be sure to keep the daemon console (`%s`) open ".
|
||||
"while developing and testing your end points. You may need to".
|
||||
"restart your daemons to start sending HTTP requests.\n\n".
|
||||
"NOTE: URIs are not validated, the URI must return HTTP status ".
|
||||
"200 within 30 seconds, and no permission checks are performed.",
|
||||
'/daemon/')),
|
||||
->setSummary(pht('Deprecated.'))
|
||||
->setDescription($hooks_help),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue