Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#119: Statische Dateien ausliefern #125

Merged
merged 4 commits into from
Sep 18, 2024
Merged

#119: Statische Dateien ausliefern #125

merged 4 commits into from
Sep 18, 2024

Conversation

MHajoha
Copy link
Member

@MHajoha MHajoha commented Aug 12, 2024

Ich hatte mir ursprünglich in den Kopf gesetzt, den ganzen Pfad von file_pluginfile bis inkl. send_file zu testen. Nach viel Zeitverschwendung bin ich aber zu dem Schluss gekommen, dass das nicht geht. U.a. geht Moodle davon aus, dass qtype_questionpy_pluginfile bei Erfolg immer died, das lässt sich auch für Tests nicht unterbinden. Und send_file macht alle Level von Output Buffering aus.

Zwei neue Dinge, die hier hinzukommen, sind die Nutzung des HTTP-Clients Guzzle und Moodle's Wrapper dafür, und Dependency Injection via https://moodledev.io/docs/4.4/apis/core/di. Den Rest des API-Codes sollten wir demnächst ™️ dann auch auf Guzzle umbiegen.

Aktuell scheitern die Actions beim Versuch, moodle-plugin-ci zu installieren. Das schaue ich mir morgen mal an, passiert aber auch auf dev.

@MHajoha MHajoha force-pushed the static-files branch 2 times, most recently from c001ef2 to 41e4507 Compare August 19, 2024 14:50
classes/api/package_api.php Outdated Show resolved Hide resolved
classes/question_ui_renderer.php Outdated Show resolved Hide resolved
classes/question_ui_renderer.php Outdated Show resolved Hide resolved
@MHajoha MHajoha merged commit 7ddafcf into dev Sep 18, 2024
6 checks passed
@MHajoha MHajoha deleted the static-files branch September 18, 2024 12:00
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.

3 participants