2766 Commits

Author SHA1 Message Date
Ilya Tregubov
94452ea194
Merge branch 'MDL-77375-master' of https://github.com/rezaies/moodle 2023-07-06 09:19:57 +08:00
Ilya Tregubov
048edee1e2
Merge branch 'MDL-74301-master' of https://github.com/kabalin/moodle 2023-07-06 09:06:31 +08:00
Andrew Nicols
545c7e3037
Merge branch 'MDL-77563-master' of https://github.com/rezaies/moodle 2023-07-05 22:06:21 +08:00
Andrew Nicols
cee81e21c1
Merge branch 'MDL-77599' of https://github.com/stronk7/moodle 2023-07-05 21:58:47 +08:00
Andrew Nicols
2b19f23665
Merge branch 'MDL-78158-master' of https://github.com/andelacruz/moodle 2023-07-05 10:23:32 +08:00
Andrew Nicols
533e71a302
Merge branch 'MDL-76840' of https://github.com/uzimike/moodle 2023-07-04 13:20:51 +08:00
Angelia Dela Cruz
09d654b3fe MDL-78158 behat: Behat cleanup and optimisation 2023-07-04 07:01:27 +08:00
Ruslan Kabalin
80a111d25e MDL-74301 eslint: Address issues reported by eslint 2023-07-03 15:21:53 +01:00
Eloy Lafuente (stronk7)
d9f7fe9c3f
MDL-77599 coding-style: Replace forbidden @const tags by @var
@const is not a valid phpdoc tag and @var should be used to
document both classes properties and constants (no matter how
weird that may sound, heh).

Link to (draft right now) PHP-FIG:

https://github.com/php-fig/fig-standards/blob/master/proposed/phpdoc-tags.md#518-var

So, with this commit we are just replacing all uses by the correct
@var one. Note that the type is entirely optional, in fact I think
that there isn't much need of it for constants because it's obvious
for both humans and machines which the type is. But, as far as it's
also correct to specify it, we haven't modified that detail.

The only detail modified are the cases where the constant name was
specified in the phpdoc, that's not needed, hence, the names have
been removed from there when present (a couple of cases).
2023-07-03 15:58:16 +02:00
Angelia Dela Cruz
9f101a30b2 MDL-78158 Behat: Use data generators to add blocks 2023-07-03 17:41:21 +08:00
Shamim Rezaie
c99afc4bff MDL-77563 mod_assign: Improve how grader name is hidden 2023-07-02 01:33:32 +10:00
Shamim Rezaie
23d3191684 MDL-77375 mod_assign: set overflow constraint boundary of the dropdowns 2023-06-30 11:25:04 +10:00
Andrew Nicols
42c7c56c9f
Merge branch 'MDL-78018' of https://github.com/paulholden/moodle 2023-06-29 11:01:34 +08:00
Andrew Nicols
d66f81d2e1
MDL-78168 mod_assign: Deprecate assign_files::preprocess 2023-06-24 13:33:01 +08:00
Andrew Nicols
adddcf394f
MDL-78168 mod_assign: Stop storing properties dynamically
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.

In these cases, mod_assign was treating other unrelated objects as its
personal object store. These have been updated to not require this.
2023-06-24 13:33:00 +08:00
Andrew Nicols
bd8b6e011c Merge branch 'MDL-78435' of https://github.com/paulholden/moodle 2023-06-22 14:29:39 +02:00
Andrew Nicols
bf72c0de9d Merge branch 'MDL-75913-master' of https://github.com/davewoloszyn/moodle 2023-06-22 14:29:39 +02:00
Sara Arjona
5f1ed26c75 Merge branch 'MDL-76635-master' of https://github.com/lameze/moodle 2023-06-21 14:02:11 +02:00
Ilya Tregubov
81c8850462
Merge branch 'MDL-77591-master' of https://github.com/justusdieckmann/moodle 2023-06-21 16:57:49 +08:00
Justus Dieckmann
a7d5328c31 MDL-77591 mod_assign: Fix feedback zip import for group submissions
Import now checks whether assignment is an group submission and
matches group ids instead of user ids in that case.

Additionally check for original unchanged files to not import in
group files instead of user files.
2023-06-20 20:20:35 +02:00
Simey Lameze
d79788245b MDL-76635 behat: improve submission comments test 2023-06-20 10:59:03 +08:00
David Woloszyn
802ff3e2e3 MDL-75913 behat: Use alternatives to Atto in tests 2023-06-19 16:35:46 +10:00
Paul Holden
70e5ff196a
MDL-78435 mod_assign: ensure due date is always after start date. 2023-06-16 18:41:45 +01:00
Jun Pataleta
5088fba999 Merge branch 'MDL-78333' of https://github.com/paulholden/moodle 2023-06-15 11:59:53 +08:00
Andrew Nicols
4d15a4ee32
Merge branch 'MDL-69231-master' of https://github.com/lameze/moodle 2023-06-15 10:58:56 +08:00
Ilya Tregubov
3705832400
Merge branch 'MDL-77542' of https://github.com/paulholden/moodle 2023-06-15 10:36:12 +08:00
Ilya Tregubov
6eaf187d35
Merge branch 'MDL-76733-master' of https://github.com/andrewnicols/moodle 2023-06-15 10:22:26 +08:00
Andrew Nicols
19c98d0d6e
MDL-76733 mod_assign: Remove JS requirement for time-based tests
Converting these tests to use an onlinetext submission and drop the JS
requirement means that they are much less susceptible to runtime issues,
and not susceptible to those caused by JS at all.
2023-06-15 09:32:36 +08:00
Andrew Nicols
9b5d081a48
MDL-76733 mod_assign: Address random failure
This random failure was happening because of the time required to render
and interact with the file picker which sometimes exceeded 2 seconds,
depending on the speed of the machine running the tests.

Converting these tests to use an onlinetext submission and drop the JS
requirement means that they are much less susceptible to runtime issues,
and not susceptible to those caused by JS at all.
2023-06-15 09:28:17 +08:00
Sara Arjona
f748a9da10 Merge branch 'MDL-76733-master' of https://github.com/andrewnicols/moodle 2023-06-14 16:22:09 +02:00
Sara Arjona
4cf2730823 Merge branch 'MDL-78253' of https://github.com/paulholden/moodle 2023-06-14 13:32:28 +02:00
michaelkotlyar
9eb1e4d7c0 MDL-76840 mod_assign: Account for extension when calculating time left. 2023-06-13 15:31:50 +12:00
Paul Holden
4c11da246e
MDL-78018 mod_assign: format group name in grading table. 2023-06-11 15:02:24 +01:00
Paul Holden
7953ded152
MDL-77542 mod_assign: remove duplicate grade heading from grader.
It's already part of the subsequent rendered form.
2023-06-11 15:01:23 +01:00
Jun Pataleta
d1295a8734 Merge branch 'MDL-75898-master' of https://github.com/matthewhilton/moodle 2023-06-08 11:43:18 +08:00
Simey Lameze
2367bc9ff6 MDL-69231 behat: remaining work for role capability generator
This commit does few things:
* Unify data generators usage to role short name.
* Replace remaining manual steps to use the new data generator.
* Also replaced other manual steps to set config to use data generators.
* Tidy up of some tests, aligning pipes and splitting one line steps into multiple lines.
* Fixes tests to have one Given/When/Then per scenario.
2023-06-02 12:47:27 +08:00
Andrew Nicols
aa2fc4048e MDL-69231 behat: Update tests to use new generator 2023-06-02 12:47:27 +08:00
Paul Holden
ca95bee259
MDL-78333 mod_assign: final removal of deprecated log format methods. 2023-05-24 16:41:55 +01:00
Andrew Nicols
97300ca692
MDL-76733 mod_assign: Tidy up availability behat tests
This feature had lots of small issues and it made sense to fix it whilst
investigating a query:

* most of the steps do not require JavaScript
* it uses the UI to set an admin setting, for every scenario:
** only 3-4 of the scenarios actually test that setting
** it is very slow to do it his way when we have a generator step we can use
* we create two assignments in the Background, but each test only uses one of them
* we create the assignments in the Background with a generator, but
  update them to modify various settings in each Scenario using the UI
  when we should just create one assignment for each test and set it up
  correctly for that Scenario
2023-05-23 10:53:44 +08:00
Paul Holden
c5d1f72dca
MDL-62859 javascript: replace user preference calls with new methods. 2023-05-22 13:51:39 +01:00
Paul Holden
b5e1330d72
MDL-78253 libraries: upgrade to version 2.3.7 of FPDI. 2023-05-16 17:40:55 +01:00
Luca Bösch
f4e390fcf7 MDL-77432 mod_assign: Confirm submission page standard and not incourse 2023-05-12 09:25:18 +02:00
Cameron Ball
94cf5b1fd3 MDL-75898 assignfeedback_editpdf: Improve page count mismatch logic
MDL-45580 introduced the readonlypages filearea, and when loading
page images for an attempt, the code would check if the pages existed
, creating them if not. The code inside this block also contained
a guard clause for the case where no readonly pages existed - which
is a situation that should not happen. Whenever readonly pages are
requested, they should exist.

MDL-66626 introduced a situation where page counts not matching would
also retrigger page generation. However this led to a situation where
the guard clause could be entered when requesting readonly pages.

This patch refactors the guard clause, and improves the logic to
regenerate pages.
2023-05-12 08:53:38 +10:00
Cameron Ball
a243d46620 MDL-75898 assignfeedback_editpdf: Don't poll readonly pages
When requesting the readonly version of pages (which contain
teacher annotations), they should always be available - the
PHP side even throws an exception when they're not. This
means we don't need to worry about polling document converters
from the JS side and can just return the pages immediately.
2023-05-12 08:53:38 +10:00
Cameron Ball
f95892766b MDL-75898 assignfeedback_editpdf: Add randomness to PDF annotations
The behat step "I draw on the pdf" creates the exact same line every
time it is called. This can cause issues in a situation like the following:

- Student uploads PDF
- Teacher annotates page 1
- Student edits submission, adding another PDF
- Teacher annotates page 1 again
- When the student looks at their annotated PDF it appears the same as
  before they added the second PDF (i.e., they don't see extra pages for
  the second PDF)

Exactly why this happens isn't clear, and in practice this probably never
happens because the chances of drawing the exact same line twice are almost
0. However, when testing the functionality added in MDL-45580 it was causing
issues.
2023-05-12 08:53:37 +10:00
Paul Holden
029474c319
MDL-70189 lang: final removal of deprecated 311 strings. 2023-05-04 14:15:35 +01:00
Jun Pataleta
aa011d149e Merge branch 'MDL-77398' of https://github.com/paulholden/moodle 2023-05-03 20:36:39 +08:00
Paul Holden
426b5aeccb
MDL-77398 mod_assign: disable form submit protection for batch options. 2023-04-24 10:35:07 +01:00
Jun Pataleta
9095bb0ef9 MDL-78000 upgrade: add the 4.2.0 separation line to all upgrade scripts 2023-04-22 23:17:50 +08:00
Eloy Lafuente (stronk7)
061c9d7ba0 MDL-77940 versions: bump all versions and requires near release
version = 2023042400 release version
requires= 2023041800 current rc1 version
2023-04-18 18:08:09 +02:00