Redesign the plugin for a new way of importing/requesting courses - #31
Open
TamaroWalter wants to merge 7 commits into
Open
Redesign the plugin for a new way of importing/requesting courses#31TamaroWalter wants to merge 7 commits into
TamaroWalter wants to merge 7 commits into
Conversation
This introduces an interface that is to be implemented by an LSF and SAP-SLcM connection class. Currently only one function from lib_his.php was added to the interface but eventually every necessary function in lib_his.php relevant to both LSF and SAP-SLcM should be abstracted and added to this interface.
Add a sample implementation of the campus_management interface for HIS-LSF. Note that this implementation of courses_of_teacher() does not respect the max_import_age admin setting. This needs to be fixed.
Add three tables that will be used in the new plugins structure: - courses: stores an abstraction of courses of any cms - course_requests: stores requests for a new course that was done on behalf of a teacher - imported_courses: stores courses that were imported into moodle
The backend has a new classes structure with different substructures: - local/cms: An interface structure with classes that can access a course management systems database and fetch data - local/models: An implementation of the new datatable entities to make the work with it easier - local/dto: data transfer objects that get transferred to the frontend - route/api: A complete REST api for a new frontend that can handle different requests to import a course or to save a course request for a teacher - route/schema: Only description on how the data looks like that is being transferred on the REST api
A new react frontend is introduced to the plugin. A short summary: - dashboard.php: new entrypoint for the user to access lsf_unification. Only calls the react component - js/Dashboard.tsx: A new dashboard that shows courses that were imported or requested from an cms to moodle - js/services: A service that connects the frontend to the backend rest api - js/wizard: A "Step Wizard" that guides the user through the workflow or either importing an own course or to request a course on behalf of a teacher.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔀 Purpose of this PR:
📝 Description:
A long description will be here.
📋 Checklist
Please confirm the following (check all that apply):
phpunitand/orbehattests that cover my changes or additions.var_dump()orvar_exportor any other debugging statements (or commented out code) thatshould not appear on the productive branch.
db/upgrade.phpandupdated the
version.php.🔍 Related Issues
🧾📸🌐 Additional Information (like screenshots, documentation, links, etc.)