Skip to content

Redesign the plugin for a new way of importing/requesting courses - #31

Open
TamaroWalter wants to merge 7 commits into
mainfrom
redesign/courserequest
Open

Redesign the plugin for a new way of importing/requesting courses#31
TamaroWalter wants to merge 7 commits into
mainfrom
redesign/courserequest

Conversation

@TamaroWalter

Copy link
Copy Markdown
Member

Note: Please fill out all relevant sections and remove irrelevant ones.

🔀 Purpose of this PR:

  • Fixes a bug
  • Updates for a new Moodle version
  • Adds a new feature of functionality
  • Improves or enhances existing features
  • Refactoring: restructures code for better performance or maintainability
  • Testing: add missing or improve existing tests
  • Miscellaneous: code cleaning (without functional changes), documentation, configuration, ...

📝 Description:

A long description will be here.


📋 Checklist

Please confirm the following (check all that apply):

  • I have phpunit and/or behat tests that cover my changes or additions.
  • Code passes the code checker without errors and warnings.
  • Code passes the moodle-ci/cd pipeline on all supported Moodle versions or the ones the plugin supports.
  • Code does not have var_dump() or var_export or any other debugging statements (or commented out code) that
    should not appear on the productive branch.
  • Code only uses language strings instead of hard-coded strings.
  • If there are changes in the database: I updated/created the necessary upgrade steps in db/upgrade.php and
    updated the version.php.

🔍 Related Issues


🧾📸🌐 Additional Information (like screenshots, documentation, links, etc.)

TamaroWalter and others added 7 commits May 29, 2026 10:35
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants