Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-2768

"Optional acceptance" policies cannot be accepted via the app

XMLWordPrintable

    • Hide

      This issue should be tested in 1 Android device and 1 iOS device. Also, it should be tested in 1 tablet device and 1 phone device.

      Test Default handler

      1. In a 4.4 moodle site as admin, go to Site administration > Users > Policy settings.
      2. Set "Site policy handler" to "Default (core)" and add a "Site policy URL".
      3. In the app, login with a user that hasn't accepted the policy. Check that the app displays a page with a link to the policy and a checkbox and button to accept it. Depending on the URL, the app will also display an iframe to show the policies. (this hasn't changed so there's no need to test the iframe part).
      4. Accept the policy. Check that after accepting the policy you can use the app normally.
      5. Open the user menu. Check that you do NOT see a "Policies and agreements" section.

      Test tool_policy handler

      1. In a 4.4 moodle site as admin, go to Site administration > Users > Policy settings.
        Set "Site policy handler" to "tool_policy".
      2. Go to Site administration > Users > Manage policies and create several policies. You should create at least 1 mandatory policy and 1 optional policy. Also, you need at least 1 policy with "Show policy before showing other policies" set to Yes, and at least 2 policies with "Show policy before showing other policies" set to No.
      3. In the app, login with a user that hasn't accepted the policies. Check that the app displays the first policy to accept (it should be one of the policies with "Show policy before showing other policies" set to Yes). Check that you can read and accept the policy (if it's optional, you should be able to decline it too).
      4. After accepting/declining the policy, check that the next policy is displayed. The app should keep displaying policies until you have accepted them all. You can compare this with how LMS works.
      5. After accepting all the policies, check that you can use the app normally. 
      6. Back in browser as admin, add a new site policy (no matter which type), or edit one of the existing ones to add a new version.
      7. In the app, perform a PTR in My courses / Dashboard. Check that the app forces you to accept the new policy. The app should only display the new policy, not the others. If you're comparing this with LMS, please notice that in LMS you need to logout and login again with the student to see the new policy acceptance form, you can continue using the site until you logout. In the app this isn't possible.
      8. Once you have accepted all policies, open the user menu and go to "Policies and agreements".
      9. If data privacy is configured, check that the app displays a button to contact the DPO. Check that clicking the button opens the Data privacy page.
      10. Check that the app displays a list of the policies along with the status, similar to what LMS does.
      11. Check that you can accept/decline optional policies, but not mandatory policies that have already been accepted.
      12. If a policy has several versions, check that you can see the previous versions of the policy too.

      Test old sites

      1. This part only needs to be tested in 1 device.
      2. In a 4.3 or older site, configure it to use tool_policy and create at least 1 policy.
      3. In the app, login with a user that hasn't accepted the policies. Check that the app displays a page with a link to the policies and a checkbox and button to accept them. This is how the app used to work until now, it hasn't changed for older sites.
      4. After accepting the policies, open the user menu. Check that you do NOT see a "Policies and agreements" section.
      Show
      This issue should be tested in 1 Android device and 1 iOS device. Also, it should be tested in 1 tablet device and 1 phone device. Test Default handler In a 4.4 moodle site as admin, go to Site administration > Users > Policy settings. Set "Site policy handler" to "Default (core)" and add a "Site policy URL". In the app, login with a user that hasn't accepted the policy. Check that the app displays a page with a link to the policy and a checkbox and button to accept it. Depending on the URL, the app will also display an iframe to show the policies. (this hasn't changed so there's no need to test the iframe part). Accept the policy. Check that after accepting the policy you can use the app normally. Open the user menu. Check that you do NOT see a "Policies and agreements" section. Test tool_policy handler In a 4.4 moodle site as admin, go to Site administration > Users > Policy settings. Set "Site policy handler" to "tool_policy". Go to Site administration > Users > Manage policies and create several policies. You should create at least 1 mandatory policy and 1 optional policy. Also, you need at least 1 policy with "Show policy before showing other policies" set to Yes, and at least 2 policies with "Show policy before showing other policies" set to No. In the app, login with a user that hasn't accepted the policies. Check that the app displays the first policy to accept (it should be one of the policies with "Show policy before showing other policies" set to Yes). Check that you can read and accept the policy (if it's optional, you should be able to decline it too). After accepting/declining the policy, check that the next policy is displayed. The app should keep displaying policies until you have accepted them all. You can compare this with how LMS works. After accepting all the policies, check that you can use the app normally.  Back in browser as admin, add a new site policy (no matter which type), or edit one of the existing ones to add a new version. In the app, perform a PTR in My courses / Dashboard. Check that the app forces you to accept the new policy. The app should only display the new policy, not the others. If you're comparing this with LMS, please notice that in LMS you need to logout and login again with the student to see the new policy acceptance form, you can continue using the site until you logout. In the app this isn't possible. Once you have accepted all policies, open the user menu and go to "Policies and agreements". If data privacy is configured, check that the app displays a button to contact the DPO. Check that clicking the button opens the Data privacy page. Check that the app displays a list of the policies along with the status, similar to what LMS does. Check that you can accept/decline optional policies, but not mandatory policies that have already been accepted. If a policy has several versions, check that you can see the previous versions of the policy too. Test old sites This part only needs to be tested in 1 device. In a 4.3 or older site, configure it to use tool_policy and create at least 1 policy. In the app, login with a user that hasn't accepted the policies. Check that the app displays a page with a link to the policies and a checkbox and button to accept them. This is how the app used to work until now, it hasn't changed for older sites. After accepting the policies, open the user menu. Check that you do NOT see a "Policies and agreements" section.
    • MOODLE_404_STABLE
    • Moodle Apps - 2024 i1.1, Moodle Apps - 2024 i1.2, Moodle Apps - 2024 i1.3, Moodle Apps - 2024 i1.4

      Related to MDL-64257

      We need new Web Services to retrieve all the site policies and also a new WS for accepting the "optional" policies (or update the existing WS to mark all of them as accepted).

      This is also related to MOBILE-2637

      https://docs.google.com/document/d/1rpOqaL_UuMws1vhkbrtNr3Pv_k22LEueCqcDNoPX9qY/

        1. 001.png
          441 kB
          Eduardo Manzanillo
        2. 002.png
          442 kB
          Eduardo Manzanillo
        3. 003.png
          187 kB
          Eduardo Manzanillo
        4. 004.png
          815 kB
          Eduardo Manzanillo
        5. 005.png
          1.42 MB
          Eduardo Manzanillo
        6. 006.png
          554 kB
          Eduardo Manzanillo
        7. 007.png
          1.07 MB
          Eduardo Manzanillo
        8. 008.png
          149 kB
          Eduardo Manzanillo
        9. 009.png
          319 kB
          Eduardo Manzanillo
        10. 010.png
          257 kB
          Eduardo Manzanillo
        11. 011.png
          1.15 MB
          Eduardo Manzanillo
        12. 012.png
          421 kB
          Eduardo Manzanillo
        13. 013.png
          273 kB
          Eduardo Manzanillo
        14. 014.png
          203 kB
          Eduardo Manzanillo
        15. 1.policy_step_top.png
          526 kB
          Dani Palou
        16. 2.policy_step_bottom.png
          557 kB
          Dani Palou
        17. 3.policy_consent_top.png
          450 kB
          Dani Palou
        18. 4..policy_consent_bottom.png
          439 kB
          Dani Palou
        19. 5.policy_own_page_mandatory.png
          547 kB
          Dani Palou
        20. 6.policy_own_page_optional.png.png
          584 kB
          Dani Palou
        21. 7.acceptances_mobile.png
          192 kB
          Dani Palou
        22. 8.acceptances_tablet.png
          313 kB
          Dani Palou
        23. LMS-accept.png
          65 kB
          Dani Palou
        24. LMS-decline.png
          67 kB
          Dani Palou
        25. LMS-withdraw.png
          77 kB
          Dani Palou
        26. MOBILE-2768_inactive_app_NOTthere.png
          322 kB
          Isabel Renedo Rouco
        27. MOBILE-2768_inactive_tablet_there.png
          576 kB
          Isabel Renedo Rouco
        28. MOBILE-2768_profilepage_1.jpg
          101 kB
          Isabel Renedo Rouco
        29. MOBILE-2768_profilepage_2.jpg
          103 kB
          Isabel Renedo Rouco
        30. MOBILE-2768_tool_policy_comment_smalldevice_button.png
          467 kB
          Isabel Renedo Rouco
        31. MOBILE-2768_tool_policy_comment_tablet_button.png
          496 kB
          Isabel Renedo Rouco
        32. MOBILE-2768_tool_policy_comments_glossaryAutolink_app.png
          253 kB
          Isabel Renedo Rouco
        33. MOBILE-2768_tool_policy_comments_glossaryAutolink_app.png
          253 kB
          Isabel Renedo Rouco
        34. MOBILE-2768_tool_policy_comments_glossaryAutolink_browser.png
          340 kB
          Isabel Renedo Rouco
        35. MOBILE-2768_tool_policy_step10_smalldevice_app.png
          323 kB
          Isabel Renedo Rouco
        36. MOBILE-2768_tool_policy_step10_tabletAndroid_app_01.png
          339 kB
          Isabel Renedo Rouco
        37. MOBILE-2768_tool_policy_step10_tabletAndroid_app_02.png
          380 kB
          Isabel Renedo Rouco
        38. MOBILE-2768_tool_policy_step10_tabletAndroid_app_03.png
          396 kB
          Isabel Renedo Rouco
        39. MOBILE-2768_tool_policy_step12_smalldevice_app.png
          350 kB
          Isabel Renedo Rouco
        40. MOBILE-2768_tool_policy_step12_tablet_app.png
          740 kB
          Isabel Renedo Rouco
        41. MOBILE-2768_tool_policy_step4_agreeString_app.png
          703 kB
          Isabel Renedo Rouco
        42. MOBILE-2768_tool_policy_step4_agreeString_browser.png
          400 kB
          Isabel Renedo Rouco
        43. MOBILE-2768_tool_policy_step4_initialMssg_app.png
          723 kB
          Isabel Renedo Rouco
        44. MOBILE-2768_tool_policy_step4_initialMssg.png
          221 kB
          Isabel Renedo Rouco
        45. MOBILE-2768_tool_policy_step4_longText_app_2_CompulsoryBeforeContinuing.png
          734 kB
          Isabel Renedo Rouco
        46. MOBILE-2768_tool_policy_step4_longText_app.png
          749 kB
          Isabel Renedo Rouco
        47. MOBILE-2768_tool_policy_step4_longText_browser.png
          375 kB
          Isabel Renedo Rouco
        48. MOBILE-2768_tool_policy_step7_browser.png
          296 kB
          Isabel Renedo Rouco

            dpalou Dani Palou
            jleyva Juan Leyva
            Pau Ferrer Pau Ferrer
            Isabel Renedo Rouco Isabel Renedo Rouco
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.