MDL-30085 core_grade: added support for fetching multiple grade items at once