Skip to content

Commit

Permalink
MDL-63915 core_message: mark items that can be removed in MDL-63261
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjnelson committed Feb 27, 2019
1 parent ee45ecc commit 7ece4ca
Show file tree
Hide file tree
Showing 10 changed files with 49 additions and 34 deletions.
38 changes: 18 additions & 20 deletions message/classes/api.php
Expand Up @@ -151,10 +151,9 @@ public static function search_messages($userid, $search, $limitfrom = 0, $limitn
/**
* Handles searching for user in a particular course in the message area.
*
* TODO: This function should be removed once the new group messaging UI is in place and the old messaging UI is removed.
* For now we are not removing/deprecating this function for backwards compatibility with messaging UI.
* But we are deprecating data_for_messagearea_search_users_in_course external function.
* Followup: MDL-63915
* TODO: This function should be removed once the related web service goes through final deprecation.
* The related web service is data_for_messagearea_search_users_in_course.
* Followup: MDL-63261
*
* @param int $userid The user id doing the searching
* @param int $courseid The id of the course we are searching in
Expand Down Expand Up @@ -197,10 +196,9 @@ public static function search_users_in_course($userid, $courseid, $search, $limi
/**
* Handles searching for user in the message area.
*
* TODO: This function should be removed once the new group messaging UI is in place and the old messaging UI is removed.
* For now we are not removing/deprecating this function for backwards compatibility with messaging UI.
* But we are deprecating data_for_messagearea_search_users external function.
* Followup: MDL-63915
* TODO: This function should be removed once the related web service goes through final deprecation.
* The related web service is data_for_messagearea_search_users.
* Followup: MDL-63261
*
* @param int $userid The user id doing the searching
* @param string $search The string the user is searching
Expand Down Expand Up @@ -1022,9 +1020,9 @@ public static function unset_favourite_conversation(int $conversationid, int $us
/**
* Returns the contacts to display in the contacts area.
*
* TODO: This function should be removed once the new group messaging UI is in place and the old messaging UI is removed.
* For now we are not removing/deprecating this function for backwards compatibility with messaging UI.
* Followup: MDL-63915
* TODO: This function should be removed once the related web service goes through final deprecation.
* The related web service is data_for_messagearea_contacts.
* Followup: MDL-63261
*
* @param int $userid The user id
* @param int $limitfrom
Expand Down Expand Up @@ -1192,9 +1190,9 @@ public static function get_non_contacts_with_unread_message_count($userid, $limi
/**
* Returns the messages to display in the message area.
*
* TODO: This function should be removed once the new group messaging UI is in place and the old messaging UI is removed.
* For now we are not removing/deprecating this function for backwards compatibility with messaging UI.
* Followup: MDL-63915
* TODO: This function should be removed once the related web service goes through final deprecation.
* The related web service is data_for_messagearea_messages.
* Followup: MDL-63261
*
* @param int $userid the current user
* @param int $otheruserid the other user
Expand Down Expand Up @@ -1273,9 +1271,9 @@ public static function get_conversation_messages(int $userid, int $convid, int $
/**
* Returns the most recent message between two users.
*
* TODO: This function should be removed once the new group messaging UI is in place and the old messaging UI is removed.
* For now we are not removing/deprecating this function for backwards compatibility with messaging UI.
* Followup: MDL-63915
* TODO: This function should be removed once the related web service goes through final deprecation.
* The related web service is data_for_messagearea_get_most_recent_message.
* Followup: MDL-63261
*
* @param int $userid the current user
* @param int $otheruserid the other user
Expand Down Expand Up @@ -1318,9 +1316,9 @@ public static function get_most_recent_conversation_message(int $convid, int $cu
/**
* Returns the profile information for a contact for a user.
*
* TODO: This function should be removed once the new group messaging UI is in place and the old messaging UI is removed.
* For now we are not removing/deprecating this function for backwards compatibility with messaging UI.
* Followup: MDL-63915
* TODO: This function should be removed once the related web service goes through final deprecation.
* The related web service is data_for_messagearea_get_profile.
* Followup: MDL-63261
*
* @param int $userid The user id
* @param int $otheruserid The id of the user whose profile we want to view.
Expand Down
16 changes: 10 additions & 6 deletions message/classes/helper.php
Expand Up @@ -37,9 +37,9 @@ class helper {
/**
* Helper function to retrieve the messages between two users
*
* TODO: This function should be removed once the new group messaging UI is in place and the old messaging UI is removed.
* For now we are not removing/deprecating this function for backwards compatibility with messaging UI.
* Followup: MDL-63915
* TODO: This function should be removed once the related web services go through final deprecation.
* The related web services are data_for_messagearea_messages AND data_for_messagearea_get_most_recent_message.
* Followup: MDL-63261
*
* @param int $userid the current user
* @param int $otheruserid the other user
Expand Down Expand Up @@ -232,9 +232,9 @@ public static function format_conversation_messages(int $userid, int $convid, ar
/**
* Helper function to return an array of messages.
*
* TODO: This function should be removed once the new group messaging UI is in place and the old messaging UI is removed.
* For now we are not removing/deprecating this function for backwards compatibility with messaging UI.
* Followup: MDL-63915
* TODO: This function should be removed once the related web services go through final deprecation.
* The related web services are data_for_messagearea_messages AND data_for_messagearea_get_most_recent_message.
* Followup: MDL-63261
*
* @param int $userid
* @param array $messages
Expand Down Expand Up @@ -604,6 +604,10 @@ public static function get_member_info(int $referenceuserid, array $userids, boo
/**
* Backwards compatibility formatter, transforming the new output of get_conversations() into the old format.
*
* TODO: This function should be removed once the related web services go through final deprecation.
* The related web services are data_for_messagearea_conversations.
* Followup: MDL-63261
*
* @param array $conversations the array of conversations, which must come from get_conversations().
* @return array the array of conversations, formatted in the legacy style.
*/
Expand Down
3 changes: 3 additions & 0 deletions message/classes/output/messagearea/contact.php
Expand Up @@ -17,6 +17,9 @@
/**
* Contains class used to prepare a contact for display.
*
* TODO: This file should be removed once the related web services go through final deprecation.
* Followup: MDL-63261
*
* @package core_message
* @copyright 2016 Mark Nelson <markn@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down
3 changes: 3 additions & 0 deletions message/classes/output/messagearea/contacts.php
Expand Up @@ -17,6 +17,9 @@
/**
* Contains class used to prepare the contacts for display.
*
* TODO: This file should be removed once the related web services go through final deprecation.
* Followup: MDL-63261
*
* @package core_message
* @copyright 2016 Mark Nelson <markn@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down
3 changes: 3 additions & 0 deletions message/classes/output/messagearea/message.php
Expand Up @@ -17,6 +17,9 @@
/**
* Contains class used to prepare a message for display.
*
* TODO: This file should be removed once the related web services go through final deprecation.
* Followup: MDL-63261
*
* @package core_message
* @copyright 2016 Mark Nelson <markn@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down
3 changes: 3 additions & 0 deletions message/classes/output/messagearea/message_area.php
Expand Up @@ -17,6 +17,9 @@
/**
* Contains class used to prepare the message area for display.
*
* TODO: This file should be removed once the related web services go through final deprecation.
* Followup: MDL-63261
*
* @package core_message
* @copyright 2016 Mark Nelson <markn@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down
3 changes: 3 additions & 0 deletions message/classes/output/messagearea/messages.php
Expand Up @@ -17,6 +17,9 @@
/**
* Contains class used to prepare the messages for display.
*
* TODO: This file should be removed once the related web services go through final deprecation.
* Followup: MDL-63261
*
* @package core_message
* @copyright 2016 Mark Nelson <markn@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down
3 changes: 3 additions & 0 deletions message/classes/output/messagearea/profile.php
Expand Up @@ -17,6 +17,9 @@
/**
* Contains class used to prepare a profile for display.
*
* TODO: This file should be removed once the related web services go through final deprecation.
* Followup: MDL-63261
*
* @package core_message
* @copyright 2016 Mark Nelson <markn@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down
3 changes: 3 additions & 0 deletions message/classes/output/messagearea/user_search_results.php
Expand Up @@ -17,6 +17,9 @@
/**
* Contains class used to display user search results.
*
* TODO: This file should be removed once the related web services go through final deprecation.
* Followup: MDL-63261
*
* @package core_message
* @copyright 2016 Mark Nelson <markn@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down
8 changes: 0 additions & 8 deletions message/externallib.php
Expand Up @@ -1250,10 +1250,6 @@ public static function data_for_messagearea_search_users_in_course_parameters()
*
* @deprecated since 3.6
*
* NOTE: We are deprecating this function but not search_users_in_course API function for backwards compatibility
* with messaging UI. But should be removed once new group messaging UI is in place and old messaging UI is removed.
* Followup: MDL-63915
*
* @param int $userid The id of the user who is performing the search
* @param int $courseid The id of the course
* @param string $search The string being searched
Expand Down Expand Up @@ -1351,10 +1347,6 @@ public static function data_for_messagearea_search_users_parameters() {
*
* @deprecated since 3.6
*
* NOTE: We are deprecating this function but not search_users API function for backwards compatibility
* with messaging UI. But should be removed once new group messaging UI is in place and old messaging UI is removed.
* Followup: MDL-63915
*
* @param int $userid The id of the user who is performing the search
* @param string $search The string being searched
* @param int $limitnum
Expand Down

0 comments on commit 7ece4ca

Please sign in to comment.