Huong Nguyen
f12e010847
Merge branch 'MDL-78302-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE
2023-08-24 15:26:39 +07:00
Huong Nguyen
45bd1bfa49
Merge branch 'MDL-78843-401' of https://github.com/lameze/moodle into MOODLE_401_STABLE
2023-08-24 08:58:03 +07:00
Petr Skoda
05ffcf0579
MDL-78505 Revert "MDL-32114 form: markdown must be preserved on saving post"
...
This partially reverts commit 4a31dd69d6d89818f676ece916e573aa894d49d6.
2023-08-15 14:27:07 +02:00
Simey Lameze
1f43b863f3
MDL-78843 behat: update get_forum_id to search for idnumber or name
...
This commit also converts manual steps to create discussions on the
Annoucements forum to data generator.
2023-08-10 10:05:16 +08:00
Paul Holden
ecee875be0
MDL-78302 mod_forum: fix course module grade button parameters.
2023-08-07 10:45:21 +01:00
Jun Pataleta
d25c0c5448
MDL-78498 mod_forum: Prevent race condition in forum recent activity
...
* Using the generator to create the forum discussions, the timecreated
of a discussion can be set before the user's last course access which
will prevent forum_print_recent_activity() from including this generated
discussion in the recent activity results. To work around this, generate
the forum discussion 1 second after the current time to make sure that
the user's last course access will always be before the discussion's
creation time.
* This patch also includes some optimisations by:
- Removing the unnecessary @javascript tag for the
`Time limit expires` scenario
- Bringing the discussion generation to each scenario to allow each
scenario to customise the data passed to the generator like for the
`Time limit expires` scenario.
- Navigating directly to the forum instance.
2023-08-03 11:33:32 +08:00
Sara Arjona
ceb153b1c7
Merge branch 'MDL-78460-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE
2023-08-02 08:51:13 +02:00
Simey Lameze
33d829716e
MDL-78498 behat: add support for private replies
...
This commit adds support for private replies in the
'the following forum replies exist in course' custom step.
2023-08-01 16:08:10 +08:00
Angelia Dela Cruz
73a08e3ccd
MDL-78498 Behat: Use data generators for forum posts and replies
...
This commit does few things:
* Replace manual forum posts and replies to use data generator.
* It also changes the code to handle social forums.
* Other behat clean-ups and optimization.
Co-authored-by: Simey Lameze <simey@moodle.com>
2023-08-01 16:08:10 +08:00
Paul Holden
f6583c57c8
MDL-78460 mod_forum: correctly render timed post label information.
2023-07-14 10:15:40 +01:00
Petr Skoda
f25ad012c5
MDL-78525 core: fix word and character counting
2023-07-14 08:44:15 +02:00
Ilya Tregubov
ff652d5c2c
Merge branch 'MDL-77375-401' of https://github.com/rezaies/moodle into MOODLE_401_STABLE
2023-07-06 09:21:18 +08:00
Angelia Dela Cruz
241a8eb343
MDL-78158 behat: Behat cleanup and optimisation
2023-07-04 08:36:58 +08:00
Angelia Dela Cruz
0d5b8d1337
MDL-78158 Behat: Use data generators to add blocks
2023-07-03 19:17:35 +08:00
Shamim Rezaie
2f108b6430
MDL-77375 mod_forum: set boundary of the dropdown
...
Also removed the unnecessary button role from the <button> element
2023-07-02 00:06:13 +10:00
Andrew Nicols
904e04a14f
Merge branch 'MDL-78172-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE
2023-06-24 22:00:12 +08:00
Simey Lameze
460e2c0c1e
MDL-70152 behat: reply to post using data generator
2023-06-15 12:05:41 +08:00
Andrew Nicols
196ed7530b
Merge branch 'MDL-69231-401' of https://github.com/lameze/moodle into MOODLE_401_STABLE
2023-06-15 10:56:53 +08:00
Paul Holden
9ed9a010d6
MDL-78172 mod_forum: ensure group names are correctly formatted.
2023-06-11 15:00:28 +01:00
Andrew Nicols
b67b10af29
MDL-69231 behat: Update tests to use new generator
2023-06-02 12:42:35 +08:00
Angelia Dela Cruz
948ac8f62b
MDL-70152 behat: Forum behat generators use UI
...
Behat cleanup and optimisation
2023-05-29 10:28:04 +08:00
Angelia Dela Cruz
d7752f9576
MDL-70152 behat: Forum behat generators use UI
...
Replace steps that manually add forum and forum post instances
via the UI and use Behat generators. This improves the speed of
Behat test runs.
2023-05-29 10:27:33 +08:00
Andrew Nicols
c38a977f3d
MDL-70152 forum: Create behat data generator
...
* Convert track_read_posts.feature to use activity and discussion
data generators as exmaple.
Co-authored-by: Jun Pataleta <jun@moodle.com>
2023-05-29 10:27:33 +08:00
Paul Holden
bb433919cc
MDL-77394 mod_forum: de-couple discussion pinned/starred options.
2023-04-24 10:38:01 +01:00
Petr Skoda
f336875b1a
MDL-76859 h5p: Fix behat failures
...
- Only resize if the H5P EmbedCommunicator is defined (otherwise, it was causing a
JS error)
- An unnecessary image has been removed from the greeting-card.h5p fixture package.
That way, the text will always be displayed (even if the iframe is still not
resized). Instead of replacing the original greeting-card-887.h5p file, I've
renamed it to greeting-card.h5p, to remove these ugly and unnecessary numbers
at the end of the file name).
2023-04-12 12:27:06 +02:00
Meirza
cd528df093
MDL-77630 mod_forum: correct typo in variable names
2023-03-28 09:39:01 +07:00
Jun Pataleta
bb61d8392b
Merge branch 'MDL-77559-401-2' of https://github.com/andrewnicols/moodle into MOODLE_401_STABLE
2023-03-09 15:57:44 +08:00
Andrew Nicols
cd48ae56c7
MDL-77559 js: Rebuild all JS with Node 16
2023-03-09 09:53:19 +08:00
Jun Pataleta
3c00ca0bb2
Merge branch 'MDL-77416-401-enfix' of https://github.com/vmdef/moodle into MOODLE_401_STABLE
2023-03-08 08:50:24 +08:00
Víctor Déniz
98f10149d6
MDL-77416 lang: Use fixed strings in tests
2023-03-03 13:27:01 +00:00
Helen Foster
192bad5ba2
MDL-77416 lang: Import fixed English strings (en_fix)
2023-03-03 13:25:53 +00:00
Jun Pataleta
21ef5c5f84
Merge branch 'MDL-77428-401' of https://github.com/andelacruz/moodle into MOODLE_401_STABLE
2023-03-03 16:35:12 +08:00
Angelia Dela Cruz
8422698a06
MDL-77428 Behat: Add coverage for forum post word count
2023-03-02 13:46:02 +08:00
Jun Pataleta
a377bf30c4
Merge branch 'MDL-75012-401-5' of https://github.com/andrewnicols/moodle into MOODLE_401_STABLE
2023-03-02 12:31:09 +08:00
Andrew Nicols
288620b0b4
MDL-75012 js: Full build of all grunt things
2023-03-02 12:15:25 +08:00
David Mudrák
a31b0acaa5
MDL-75534 Fix usermodified in very old forum discussions
...
Very early Moodle versions used to leave the field empty. Recent Moodle
versions expect that the value always links to an existing user account.
2023-03-02 10:41:41 +08:00
Paul Holden
cf25f53743
MDL-72727 mod_forum: prevent default favourite toggle click event.
...
Allow the repository call to the web service method to complete before
re-directing, otherwise the call may not complete and/or races against
the page reload causing random Behat errors.
2023-02-27 23:30:33 +00:00
Ilya Tregubov
9cb0e85cf9
MDL-76313 forum: code style changes.
2023-02-16 11:00:28 +08:00
Ilya Tregubov
dd9073a232
Merge branch '76313-forum-improve-accessibility-401' of https://github.com/DSI-Universite-Rennes2/moodle into MOODLE_401_STABLE
2023-02-16 11:00:12 +08:00
Julien Boulen
2b568f1c93
MDL-76314 forum: add form check to prevent combining wrong parameters
...
Form validation prevents combining the forum type "single discussion" and the group mode "separate groups".
2023-02-10 11:07:45 +01:00
Jun Pataleta
0006557b59
Merge branch 'MDL-76652-401' of https://github.com/lameze/moodle into MOODLE_401_STABLE
2023-01-24 18:45:24 +08:00
Paul Holden
70a5e38b2c
MDL-70070 phpunit: correct data provider method names.
...
They should not be prefixed `test_` because that's how actual
test methods containing assertions are identified by PHPUnit.
2023-01-16 08:28:31 +00:00
Jun Pataleta
28ccae3b7a
Merge branch 'MDL-76739-401' of https://github.com/junpataleta/moodle into MOODLE_401_STABLE
2023-01-12 10:17:37 +08:00
Andrew Nicols
b50964d2e2
Merge branch '66924-view-own-private-reply-401' of https://github.com/DSI-Universite-Rennes2/moodle into MOODLE_401_STABLE
2023-01-11 15:53:27 +08:00
David Mudrák
acd82d3a86
MDL-76739 lang: Use the fixed strings in the tests, too
2023-01-10 21:15:06 +01:00
Helen Foster
152bbd76c5
MDL-76739 lang: Import fixed English strings (en_fix)
2023-01-10 21:13:14 +01:00
Julien Boulen
e50831318e
MDL-76313 forum: improve accessibility on subscribers page
...
- add header on table of subscribers
- remove one redundant header
2023-01-10 11:17:22 +01:00
Julien Boulen
4ea254faf2
MDL-66924 mod_forum: Allow users to see their own private messages
...
Allow users to see their own private messages even if they don't have
mod/forum:readprivatereplies capability
Add behat test to avoid MDL-67109 issue.
Co-authored-by: Martin Putzlocher <mputzi@users.noreply.github.com>
2023-01-09 14:43:51 +01:00
Simey Lameze
e1204dc4f1
MDL-76652 behat: use data generator and remove duplicated steps
2023-01-09 10:16:50 +08:00
Simey Lameze
33b7115024
MDL-76652 behat: add coverage for postwithoutthrottling logic
2023-01-09 10:16:50 +08:00