New Procedure for MSA Publication

New Procedure for MSA Publication

by Maurizio Giuffredi -
Number of replies: 1

Hello everyone,

With the publication of fixes in the "Security announcements" in the new commit format directly on GitHub, we can trace the .diff file through curl and the commit URL.
The inconvenience is that the forum link redirects you to the commit for the latest versions of Moodle.
So, for example, for version 4.1, you need to go to the 4.1 repository and search within the time frame when the patch was released for the specific commit related to the version you need. This process slows us down a bit compared to before.
Previously, we had a list of all Moodle releases with their corresponding MDLs.
Now, instead, you need to go through the list of commits, filter the commits by the time period when the patch was released, and then search for the MDL associated with the version you're interested in.
Is there a way to access the old version?

Thanks everyone.

Average of ratings: -
In reply to Maurizio Giuffredi

New Procedure for MSA Publication

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

To find all the commits for a particular MDL, you can use a git command like this:

I am going to assume you have a git checkout somewhere. If necessary, do this one-time setup:

git remote add upstream https://github.com/moodle/moodle.git
git fetch upstream

(That URL in the first command comes from the 'Code' button at https://github.com/moodle/moodle/.) Then, when you want to find a particular commit

git fetch upstream
git log --grep MDL-12345 upstream/MOODLE_401_STABLE

(The repeated fetch is just to ensure everythign is up to date.) Here, MDL-12345 is the issue you care about, and MOODLE_401_STABLE is branch you want commits from. Ignore any merge commits (which you could do by adding --no-merges to the command-line, but it can be good to see all the history.)

 
 
Average of ratings: Useful (2)