Personal tools

Ongoing 5.0.2 Patch Trail

From OpenEMR Project Wiki

(Difference between revisions)
Jump to: navigation, search
Line 6: Line 6:
--------------------------------------------------------
--------------------------------------------------------
-
making patch:
+
Command to list files changed in patch:
-
mkdir -p path
+
git diff --name-only v5_0_2..rel-502
-
cp file
+
 
-
find . -type f -print (just to show you all the files in the patch)
+
Script to make patch:
-
find . -type f -print0 | xargs -0 echo chmod 0644 (dry run to show you command that will standardize permission)
+
https://gist.github.com/bradymiller/4f7817a7f2081891ccc93904914ea6f4
-
find . -type f -print0 | xargs -0 chmod 0644 (if above 2 commands look good, then run this to standardize permissions)
+
5-0-2-Patch-1.zip
-
zip -r 5-0-2-Patch-1.zip .
+
________________________________________________________
________________________________________________________
   
   
Line 40: Line 39:
EMPTY
EMPTY
---------------------------------------------------------
---------------------------------------------------------
-
Work on automating patch creation:
 
-
# collect all the scripts that are modified
 
-
cd ../openemr
 
-
git checkout rel-502
 
-
git fetch upstream
 
-
git pull upstream rel-502
 
-
listScripts=`git diff --name-only v5_0_2..rel-502`
 
-
echo "list of changed scripts:"
 
-
echo listScript
 
-
cd ../official-patch-5-0-2
 
-
while read -r line; do
 
-
    dirNameScript=`dirname "$line"`
 
-
    if [ "$dirNameScript" != "." ] && [ ! -d "$dirNameScript" ]; then
 
-
        echo "creating directory $dirNameScript"
 
-
        mkdir -p "$dirNameScript"
 
-
    fi
 
-
    echo "bringing over $line into patch"
 
-
    cp "../openemr/$line" "$line"
 
-
done <<< "$listScripts"
 
-
echo "make setup.php blank"
 
-
touch setup.php
 
-
echo "always bring over version.php"
 
-
cp ../openemr/version.php version.php
 
-
echo "always bring over sql_patch.php"
 
-
mkdir -p sql
 
-
cp ../openemr/sql/sql_patch.php sql/sql_patch.php
 
-
echo "just to show you all the files in the patch:"
 
-
find . -type f -print
 
-
echo "dry run to show you command that will standardize permission:"
 
-
find . -type f -print0 | xargs -0 echo chmod 0644
 
-
echo "if above 2 commands look good, then running this to standardize permissions:"
 
-
find . -type f -print0 | xargs -0 chmod 0644
 
-
echo "building the zip:"
 
-
zip -r 5-0-2-Patch-1.zip .
 
---------------------------------------------------------
---------------------------------------------------------
</pre>
</pre>

Revision as of 00:12, 5 September 2019

                 -----PATCHES--------
-------------------------------------------------------------
(PATCH 1 for 5.0.2 - __ files)
--------------------------------------------------------
--------------------------------------------------------

Command to list files changed in patch:
git diff --name-only v5_0_2..rel-502

Script to make patch:
https://gist.github.com/bradymiller/4f7817a7f2081891ccc93904914ea6f4
5-0-2-Patch-1.zip
________________________________________________________
 
 
--------------------------------------------------------

READY TO GO (for patch 1)

NEED TO TAKE OVER TO PATCH(look at commits to get list of files):
7a8df4116a8e9e2a9b3f990e3f1f037ac2d07233 (X12_5010_837P.php fix - reported and fixed by Derrik Milligan)
f3041c02a838d177ef51010a635a2a1452d408d4 (eye form fix - reported and fixed by Ray Magauran)
12f6e0f6a47a46a9e7b74e637d2fe166d05d7513 (cookie/session fix and a path fix - reported by Jerry Padgett, fixed by Brady Miller)
9ca27eeb628fdab36e67c7701cb446129ab81058 (cookie/session clarification - fixed by Brady Miller)
d5ea80b166012f4b6eabc383d5f9a96db17f7cfe (several updates by Jerry Padgett)
38b2e50add0bf3df7ab946f71bb5ce57dfd3456b (billing fixes by Jerry Padgett)
aa72492cebe7d591ca73a708adfaa0c1a04b7311 (mariadb critical fix for install/upgrade - reported by Robert Down, fixed by Brady Miller)
9aa64457e6c4f58cb2cbc48d12a50673a59493e0 (user edit fix - reported and fixed by Sherwin Gaddis)
0d906cee59857301b50a77f616e33c69ecd511b2 (eye form fix 2 - reported and fixed by Ray Magauran)

Always make this script blank:
setup.php
Always take over to patch:
version.php
sql_patch.php (and recommend removal of this file after install the patch)

DONE (AWAITING PATCH RELEASE):
EMPTY
---------------------------------------------------------
---------------------------------------------------------