← Back to team overview

mahara-contributors team mailing list archive

[Bug 1802180] Re: Have a simplified group update webservice function

 

Environment tested: Master
Browser tested: Chrome

Preconditions:  
----------------------------
1. Group exists (group ID = 1)
2. User has enabled web service functionality as follows 
	--- a. Allow outgoing web service requests: Yes
	--- b. Accept incoming web service requests: Yes
	--- c. Protocol SOAP: = No
	--- d. Protocol XML-RPC: = Yes
--- e. Protocol REST: = Yes
--- f. Protocol OAuth: = Yes
3. Service group has been created and is is enabled and has user token access 
4. The Functions for the service group are as follows 
	--- a. mahara_group_create_groups
	--- b. mahara_group_get_groups_by_id
	--- c. mahara_group_update_groups_details
5. Service access token exists and is enabled for the service group 


Test Steps:  
----------------------------
1. Site admin user log in 
2. Browse to Admin menu > Web services > Test client 
3. Set the following fields to 
	--- a. Protocol = Rest
	--- b. Authentication type = Token
	--- c. Service = <name of the service group mentioned in the Preconditions>
	--- d. Functions =  <mahara_group_get_groups_by_id>
	--- e. ID = <ID of the existing group>
	--- f. wstoken = <name of the Service access token mentioned in the Preconditions>
	--- g. All other fields can be left as their default value
4. Click the execute button 

Expected result:  User should see a results pane with Json code - there
should be no errors

Actual result: As expected

Catalyst QA Approved ✔

-- 
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/1802180

Title:
  Have a simplified group update webservice function

Status in Mahara:
  In Progress

Bug description:
  Currently the group_update() webservice function allow for changes to
  all group settings including  making the group another type of group /
  changing who the members are.

  This can be overkill if all one wants is to change the basic
  information about a group.

  So I'll make a new group_update_details() webservice function to allow only the updating of:
  - Group name
  - Group description
  - Group category

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1802180/+subscriptions


References