apluslms / gitmanager

Git manager service for A+. Separated from the MOOC-Grader.
0 stars 6 forks source link

Avoid unnecessarily sending course updates to the A+ front in the course build when, e.g., only RST chapter content changed #24

Open markkuriekkinen opened 2 years ago

markkuriekkinen commented 2 years ago

When the "update automatically" setting is enabled in a course, the course build notifies the A+ front in the end so that it imports the aplus-json configuration automatically. This operation is not always needed and skipping it would speed up the build. Particularly, when the course update in the git repo changes only the study materials in the RST chapter files (but does not modify any assignment directive in the chapter), then there are no changes that should be imported to the A+ front.

The Git manager platform already runs git operations on the cloned course git repo, thus, it should be possible to inspect the git commit history and check which files have been changed and what kind of changes there are. Note that there could be multiple new git commits since the previous version.

Challenges that may make this unfeasible:

lainets commented 1 year ago

Couple notes: