Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[M4.3] Default activity completion page in Couse completion setting b… #487

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

danghieu1407
Copy link
Contributor

…roken #778312

Hi @timhunt,
I have added the suffixed name for the function add_completion_rules if the Moodle version is greater than 4.2.
Due to behat function being deprecated in 4.4, I have added a new behat function to support all versions.
I have updated the behat fail of studentquiz. Step "And I click on "New" "link" because in Moolde 4.4, we have a link "new section" which causes the behat to click the wrong link.
Could you please have a look at this change? Many thanks.

@timhunt
Copy link
Member

timhunt commented Apr 17, 2024

The actual fix is good.

The Behat changes are a problem. behat_course::i_add_to_section was added in Moodle 4.1 (MDL-79029). No need to define a custom Behat step.

We can drop support for Moodle 4.0 now. It has not been supported by Moodle for ages: https://moodledev.io/general/releases.

@danghieu1407
Copy link
Contributor Author

danghieu1407 commented Apr 17, 2024

Hi @timhunt,
Thanks for your review.
Based on your review, I have removed the 4.0. Also I have removed the custom behat and updated the behat.
Could you please have a look at this change? Many thanks

@timhunt timhunt merged commit 301f52f into studentquiz:main Apr 17, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants