mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #44707
[Bug 1724704] [NEW] Webservice connection manager not showing 'add connection' form if no connection instances exist but a plugin has 'define_webservice_connections' function set
Public bug reported:
To test this problem:
1) Edit a plugin file and add in the 'define_webservice_connections'
function
eg edit artefact/file/lib.php and add in following function on line 28
public static function define_webservice_connections() {
return array(
array('connection' => 'test',
'name' => 'Test this',
'notes' => 'Experimental plugin',
'version' => get_field('artefact_installed', 'release', 'name', 'file'),
'type' => WEBSERVICE_TYPE_REST,
'isfatal' => false),
);
}
2) Go to webservice/admin/connections.php?i=mahara in your browser
Before patch:
You should see 'Connection objects' expandable section that is empty but no form to add a new one
After patch:
You should see a form to add a new one placed above the 'Connection objects' expandable section
** Affects: mahara
Importance: High
Status: In Progress
** Changed in: mahara
Status: New => In Progress
** Changed in: mahara
Importance: Undecided => High
** Changed in: mahara
Milestone: None => 18.04.0
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1724704
Title:
Webservice connection manager not showing 'add connection' form if no
connection instances exist but a plugin has
'define_webservice_connections' function set
Status in Mahara:
In Progress
Bug description:
To test this problem:
1) Edit a plugin file and add in the 'define_webservice_connections'
function
eg edit artefact/file/lib.php and add in following function on line 28
public static function define_webservice_connections() {
return array(
array('connection' => 'test',
'name' => 'Test this',
'notes' => 'Experimental plugin',
'version' => get_field('artefact_installed', 'release', 'name', 'file'),
'type' => WEBSERVICE_TYPE_REST,
'isfatal' => false),
);
}
2) Go to webservice/admin/connections.php?i=mahara in your browser
Before patch:
You should see 'Connection objects' expandable section that is empty but no form to add a new one
After patch:
You should see a form to add a new one placed above the 'Connection objects' expandable section
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1724704/+subscriptions
Follow ups
-
[Bug 1724704] Re: Webservice connection manager not showing 'add connection' form if no connection instances exist but a plugin has 'define_webservice_connections' function set
From: Robert Lyon, 2017-10-30
-
[Bug 1724704] Re: Webservice connection manager not showing 'add connection' form if no connection instances exist but a plugin has 'define_webservice_connections' function set
From: Robert Lyon, 2017-10-30
-
[Bug 1724704] A change has been merged
From: Mahara Bot, 2017-10-26
-
[Bug 1724704] Re: Webservice connection manager not showing 'add connection' form if no connection instances exist but a plugin has 'define_webservice_connections' function set
From: Robert Lyon, 2017-10-26
-
[Bug 1724704] Re: Webservice connection manager not showing 'add connection' form if no connection instances exist but a plugin has 'define_webservice_connections' function set
From: Robert Lyon, 2017-10-26
-
[Bug 1724704] A patch has been submitted for review
From: Mahara Bot, 2017-10-26
-
[Bug 1724704] Re: Webservice connection manager not showing 'add connection' form if no connection instances exist but a plugin has 'define_webservice_connections' function set
From: Robert Lyon, 2017-10-26
-
[Bug 1724704] A change has been merged
From: Mahara Bot, 2017-10-26
-
[Bug 1724704] A patch has been submitted for review
From: Mahara Bot, 2017-10-26
-
[Bug 1724704] A change has been merged
From: Mahara Bot, 2017-10-26
-
[Bug 1724704] Re: Webservice connection manager not showing 'add connection' form if no connection instances exist but a plugin has 'define_webservice_connections' function set
From: Robert Lyon, 2017-10-24
-
[Bug 1724704] Re: Webservice connection manager not showing 'add connection' form if no connection instances exist but a plugin has 'define_webservice_connections' function set
From: Robert Lyon, 2017-10-23