Jake Dallimore
741376f3e7
MDL-63883 core_message: fix random externnallib_test phpunit failure
...
Users created by the test generator could have the same name as one
another, so trying to assert names NOT in an array would clash. Fix
is to remove those assertions - there were superfluous anyway.
2018-11-06 14:17:51 +08:00
Mark Nelson
27024d830c
MDL-63839 core_message: use component name for Behat tag
2018-11-05 10:35:51 +08:00
Andrew Nicols
e4384a6a56
Merge branch 'MDL-63712-master' of git://github.com/mickhawkins/moodle
2018-11-05 09:33:42 +08:00
Damyon Wiese
fb3ab37a67
Merge branch 'MDL-63549-master' of https://github.com/snake/moodle
2018-11-02 10:17:54 +08:00
Jake Dallimore
aa74835164
MDL-63549 core_message: exclude conversations where all messages deleted
...
If there are no recent messages for an individual conversation for the
user, then we exclude that conversation from the results.
2018-11-02 10:10:37 +08:00
Michael Hawkins
b8bbef0a9b
MDL-63712 core_message: Unit test improvements for fetching context/user
...
This issue is part of the MDL-62560 Epic.
2018-11-01 16:51:12 +08:00
Jun Pataleta
d0b05c8d05
Merge branch 'MDL-63725_master' of git://github.com/markn86/moodle
2018-11-01 16:11:06 +08:00
Mark Nelson
bc667050a4
MDL-63725 core_message: do not allow access to all conversation members
2018-11-01 15:56:07 +08:00
Shamim Rezaie
ba81c26c79
MDL-63712 core_message: support removal of multiple users in a context
...
This issue is a part of the MDL-62560 Epic.
2018-11-01 12:43:21 +08:00
Shamim Rezaie
5233429642
MDL-63712 core_message: Data should be in user context, not system
...
This issue is a part of the MDL-62560 Epic.
2018-11-01 12:43:14 +08:00
Jun Pataleta
67d2082849
Merge branch 'MDL-63725_master' of git://github.com/markn86/moodle
2018-11-01 12:39:43 +08:00
Mark Nelson
5584c48a33
MDL-63725 core_message: added get_conversation_members web service
2018-11-01 11:18:20 +08:00
Mark Nelson
6ecd6e5ba8
MDL-63725 core_message: added api::get_conversation_members
2018-11-01 11:18:20 +08:00
Jake Dallimore
eb35e0b176
MDL-63549 core_message: deprecate data_for_messagearea_conversations
2018-10-31 10:55:34 +08:00
Jake Dallimore
6f31927af8
MDL-63549 core_message: add get_conversations web service
2018-10-31 08:16:32 +08:00
Jake Dallimore
eb5865da8b
MDL-63549 core_message: add group support to api::get_conversations
...
- Added support for returning group conversations
- Added support for conversation type filtering
- Added support for NO favourites, or ONLY favourites restrictions.
2018-10-31 08:16:31 +08:00
Andrew Nicols
74138e927c
Revert "MDL-63466 core_message: rename cache for last message time"
...
This reverts commit f978593d6c
.
2018-10-26 14:54:01 +08:00
Andrew Nicols
4699b8bc41
Revert "MDL-63466 core_message: removed get_last_message_time_created_cache_key"
...
This reverts commit 4f22d7f23b
.
2018-10-26 14:53:58 +08:00
Andrew Nicols
621e7eb022
Merge branch 'MDL-63466-master' of https://github.com/snake/moodle
2018-10-26 12:33:13 +08:00
Jake Dallimore
b95e4c786c
MDL-63466 core_message: don't reorder messages when formatting
...
- Removed the reordering code from helper::get_conversation_messages()
- Added unit test confirming sort param behaviour for the
api::get_conversations_messages() method.
2018-10-26 12:26:23 +08:00
Mark Nelson
76540bec52
MDL-63280 core: removed 'message_conversation_area' table
...
These new fields have been added to the 'message_conversations'
table.
2018-10-25 18:05:20 +08:00
Mark Nelson
5571af1614
MDL-63280 core_message: added constants for enabled/disabled
2018-10-25 17:51:34 +08:00
Mark Nelson
f0e137c539
MDL-63280 core: minor changes after review
...
- Fixed reference to non-existent column 'timeread'.
- Fixed alignment issues.
- Fixed inconsistencies between upgrade.php and install.xml.
- Cleaned unit tests of unnecessary DB calls.
- Renamed 'get_does_conversation_area_enabled' to
'is_conversation_area_enabled' and moved to api.php.
- Replaced "$mform->elementExists('enablemessaging')"
check with a capability check.
- Removed the change of [] to array() in unrelated to upgrade code.
- Updated conversation 'timemodified' field when updating name.
- Bumped version based on latest master.
2018-10-25 17:51:04 +08:00
cescobedo
e7f467143f
MDL-63280 core_message: Create group conversation from group edit page
...
Allows linking of course groups with conversations when group messaging feature is enabled.
2018-10-25 12:20:00 +08:00
cescobedo
55fda006e3
MDL-63280 core_message: Create conversation area
2018-10-25 12:20:00 +08:00
Mark Nelson
d1e8e69d85
MDL-63466 core_message: deprecated methods and services
2018-10-24 09:40:07 +08:00
Mark Nelson
4f22d7f23b
MDL-63466 core_message: removed get_last_message_time_created_cache_key
2018-10-24 09:39:59 +08:00
Mark Nelson
f978593d6c
MDL-63466 core_message: rename cache for last message time
2018-10-24 09:39:42 +08:00
Sara Arjona
fb04293bb1
MDL-63466 core_message: Add conversation support to get_messages
...
- The get_conversation_messages has been added to the API and the WS
with the conversation identifier (convid) instead of the userto,
to let get conversation messages and the members involved.
- The cache has been also reviewed, to use the convid instead of the
[userfrom, userto] keys.
- The get_most_recent_conversation_messages has been added to the API
to update the cache when needed.
2018-10-24 09:39:05 +08:00
Sara Arjona
d89d0d6593
MDL-63466 core_message: Added format_conversation_messages helper
...
The format_conversation_messages function has been added. It returns
the messages and the array of users who have sent any of these
messages.
2018-10-24 09:38:10 +08:00
Jake Dallimore
042d804453
MDL-63466 core_message: added a test helper class
...
Providing util methods for api and externallib testing.
2018-10-24 09:27:34 +08:00
Jake Dallimore
2a2b86f123
MDL-63466 core_message: add helper method for fetching member info
...
The aim is to use this to standardise the member information we return
from several methods in the API, such as get_conversations,
get_conversation_messages, get_conversation_members, and in search
methods.
2018-10-24 09:23:30 +08:00
David Monllao
4abe3d250f
MDL-63408 messaging: Remove duplicated field
2018-10-23 13:44:52 +02:00
Andrew Nicols
0ff384dbf1
Merge branch 'MDL-63548_master' of git://github.com/markn86/moodle
2018-10-23 10:25:54 +08:00
Mark Nelson
09ec501781
MDL-63548 core_message: added mark_all_conversation_messages_as_read WS
2018-10-23 09:52:43 +08:00
Mark Nelson
abf7a261a9
MDL-63548 core_message: added api::can_mark_all_messages_as_read
2018-10-23 09:52:14 +08:00
Mark Nelson
e4c3099444
MDL-63548 core_message: deprecated mark_all_messages_as_read web service
2018-10-23 09:52:05 +08:00
Andrew Nicols
67b813514c
Merge branch 'MDL-63408_master' of git://github.com/markn86/moodle
2018-10-23 08:50:40 +08:00
David Monllao
f7642bebc5
Merge branch 'MDL-62560-master'
2018-10-22 12:52:58 +02:00
Mihail Geshoski
325d9b50e2
MDL-63615 message_airnotifier: Add support for removal of context users
...
This issue is part of the MDL-62560 Epic.
2018-10-22 12:50:10 +02:00
Mihail Geshoski
99ed2697bd
MDL-63616 message_email: Add support for removal of context users
...
This issue is part of the MDL-62560 Epic.
2018-10-22 12:50:09 +02:00
Mihail Geshoski
cb5ba9b873
MDL-63617 message_jabber: Add support for removal of context users
...
This issue is part of the MDL-62560 Epic.
2018-10-22 12:50:09 +02:00
Andrew Nicols
9c6ccfd93b
Merge branch 'MDL-63213-master-2' of https://github.com/snake/moodle
2018-10-22 10:54:56 +08:00
Andrew Nicols
7b73fd183c
Merge branch 'MDL-63691_master' of git://github.com/markn86/moodle
2018-10-22 10:52:13 +08:00
Mark Nelson
d9a25f397d
MDL-63408 core_message: removed usage of deprecated method in tests
...
Also, added tests to ensure exception is thrown if you try to
add or remove members to/from an individual conversation.
2018-10-22 10:26:37 +08:00
Mark Nelson
cbf9e41c2d
MDL-63408 core_message: remove no longer needed code
...
We only allow the functionality of adding/removing
members on group conversations, which will never have
a conversation hash.
2018-10-22 10:26:30 +08:00
Mark Nelson
83e3a4fe26
MDL-63408 core_message: add check to ensure it is a group conversation
2018-10-22 10:26:21 +08:00
Amaia Anabitarte
623048af81
MDL-63408 core_message: New functions to manage conversation members
...
New functions created to add, remove and count conversation members
2018-10-22 10:26:10 +08:00
Mark Nelson
f2ac0a3e5b
MDL-63691 core_message: added api::create_conversation
2018-10-22 10:21:28 +08:00
Mark Nelson
e66b915c40
MDL-63691 core_message: added api::can_create_group_conversation
2018-10-22 10:21:27 +08:00