mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #43851
[Bug 1708959] Re: Webservice create group missing some settings
Bug description: Web service create group missing some settings
URL: https://bugs.launchpad.net/mahara/+bug/1708959
Environment to be Tested: Master branch
Browsers to be tested: Not applicable
Precondition:
1. An institution 'Institution A' should be existing
2.‘Internal’ and ‘Web services’ authentication plug-ins should already be set up for ‘Institution A’.
3.Site admin user ‘admin’ is set up.
*Steps to Reproduce:*
1. Login as Admin user.
2. Navigate to Administration menu > Web services > Configuration.
3. Select the 'Enable web service functionality' panel and set the switches for 'Web service provider master switch' and 'Rest' protocol to ‘Yes’.
4. Select 'Manage service groups' panel.
5. Enter ‘Test’ as name of the service and click the ‘Add’ button.
6. Click the ‘Edit’ button for the 'Test' service.
7. Set the ‘Service’ switch to ‘Yes’ under the 'Enable or disable the service' panel.
8. Switch ‘mahara_group_create_groups’to ‘Yes’ under 'Functions allocated against the service' panel.
9. Click the ‘Save’ button.
10. Click the ‘Back’ button.
11. Now click on 'Manage service access tokens' panel.
12. Enter the user name ‘admin’ and select the user name from the search results.
13. Click the 'Generate token' button.
14. Select the institution ‘Institution A’ and choose the service ‘Test’.
15. Click the ‘Save’ button.
16. Copy the ‘Token’ associated with ‘Admin’ user.
17. Navigate to Administration Menu > Web services > Test Client.
18. Select ‘REST from ‘Protocol’ drop down.
19. Select ‘Token’ from the 'Authentication type’ drop down.
20. Click the ‘Next’ button.
21. From the 'Service' drop down select the service ‘Test’.
22. Click the 'Next' button.
23. From the 'Functions' drop down select ‘mahara_group_create_groups’.
24. Click the 'Next' button.
Expected Result: The following description should be displayed for
switches associated with it
“Switch” - “Description”
hidden - Hide group
hidemembers - Hide membership
hidemembersfrommembers - Hide membership
groupparticipationreports - Participation report
feedbacknotify - Comment notifications
And also For 'viewnotify', 4 options should be mentioned in the field
description: 0 = None, 1 = All group members, 2 = Everyone except
ordinary members, 3 = Group administrators.
25. Fill in the following required fields
"Field name" - "Description"
name - Groupone
description - Create a group
grouptype - Standard
members/username - admin
members/role - admin
and make sure to use the switches at step 24.
23. Paste the token that is copied at step 16.
24. Click the ‘Execute’ button.
Expected result: The group ‘Groupone’ is created with correct settings.
Actual result: The group 'Groupone' is created with correct settings.
--
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/1708959
Title:
Webservice create group missing some settings
Status in Mahara:
In Progress
Bug description:
The mahara_group_create_groups function is missing some options
Including
- Hide group
- Hide membership
- Hide membership from members
- Participation report
- Comment notifications
Also the Shared page notifications option is boolean yet there are 4
valid states for this option.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1708959/+subscriptions
References