1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-11 16:16:14 +01:00

Add warnings to JIRA auth provider that we only support JIRA 6

Summary: Ref T4289. Make it clear that this provider does not currently work with JIRA 5.

Test Plan: Viewed JIRA provider from `/auth/`, saw warnings.

Reviewers: btrahan, chad

Reviewed By: chad

CC: aran

Maniphest Tasks: T4289

Differential Revision: https://secure.phabricator.com/D7906
This commit is contained in:
epriestley 2014-01-08 09:43:44 -08:00
parent 2e6332f456
commit 3524ba3fb5

View file

@ -11,6 +11,10 @@ final class PhabricatorAuthProviderOAuth1JIRA
return pht('JIRA'); return pht('JIRA');
} }
public function getDescriptionForCreate() {
return pht('Configure JIRA OAuth. NOTE: Only supports JIRA 6.');
}
public function getConfigurationHelp() { public function getConfigurationHelp() {
if ($this->isSetup()) { if ($this->isSetup()) {
return pht( return pht(
@ -162,6 +166,11 @@ final class PhabricatorAuthProviderOAuth1JIRA
"again.")); "again."));
} }
$form->appendRemarkupInstructions(
pht(
'NOTE: This provider **only supports JIRA 6**. It will not work with '.
'JIRA 5 or earlier.'));
$is_setup = $this->isSetup(); $is_setup = $this->isSetup();
$e_required = $request->isFormPost() ? null : true; $e_required = $request->isFormPost() ? null : true;