Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15494236
D20115.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D20115.id.diff
View Options
diff --git a/src/applications/config/check/PhabricatorExtraConfigSetupCheck.php b/src/applications/config/check/PhabricatorExtraConfigSetupCheck.php
--- a/src/applications/config/check/PhabricatorExtraConfigSetupCheck.php
+++ b/src/applications/config/check/PhabricatorExtraConfigSetupCheck.php
@@ -84,6 +84,24 @@
$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".'));
+ }
+
}
/**
diff --git a/src/applications/feed/config/PhabricatorFeedConfigOptions.php b/src/applications/feed/config/PhabricatorFeedConfigOptions.php
--- a/src/applications/feed/config/PhabricatorFeedConfigOptions.php
+++ b/src/applications/feed/config/PhabricatorFeedConfigOptions.php
@@ -20,22 +20,22 @@
}
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),
);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 13, 10:59 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7707293
Default Alt Text
D20115.id.diff (2 KB)
Attached To
Mode
D20115: Add formal setup guidance warning that "feed.http-hooks" will be removed in a future version of Phabricator
Attached
Detach File
Event Timeline
Log In to Comment