Difference between revisions of "Task 3"

From OPENRESEARCH mk copy Wiki
Jump to navigation Jump to search
Line 17: Line 17:
  
 
== Current Progress ==
 
== Current Progress ==
*bash Fix_Ordinals.sh /home/musaab/wikibackup/ormk/ ./dictionary.yaml ormk -f
+
*grep Ordinal C:/Users/92031/wikibackup/ormk -l -r | python ordinal_to_cardinal.py -stdin -d '../dictionary.yaml' -ro -f | wikirestore -t ormk -stdinp -ui
  
 
<source lang='bash'>
 
<source lang='bash'>
Line 41: Line 41:
 
restoring 1 pages from /home/musaab/wikibackup/ormk/ to ormk
 
restoring 1 pages from /home/musaab/wikibackup/ormk/ to ormk
  
</source>
 
 
<source lang='bash'>
 
#!/bin/bash
 
grep Ordinal $1 -l -r >> files.txt
 
python ./scripts/ordinal_to_cardinal.py -d $2 -p ./files.txt $4
 
rm ./files.txt
 
if [ -z "$4" ]; then
 
    echo "No argument for force"
 
elif [ $4 == '-f' ]; then
 
    while IFS="" read -r p || [ -n "$p" ]
 
    do
 
    wikirestore -t  $3 --backupPath  "$1"  -p "$p"
 
    done < ./output.txt
 
else
 
    echo "Force Mode is deactivated. Nothing will be restored"
 
fi
 
 
</source>
 
</source>
  
  
 
[[Category: Task]]
 
[[Category: Task]]

Revision as of 16:24, 3 March 2021

Task

Make the Toolchain Approach Wikiquery as a tool to fix issues work and apply it to a few key showcases/Issues

Goals

  • Spend only a few day on the Tool chain.
  • Try to get immediate benefit from it while solving low hanging fruits (issues).
  • Each issue should be solvable within hours in the test environments.
  • Acceptance criteria for each of the issues

Issues

  1. 119 Text Values in Ordinal Field
  2. 138 Ordinal Extraction from Title
  3. 139 Review and update the event years

Procedure

Current Progress

  • grep Ordinal C:/Users/92031/wikibackup/ormk -l -r | python ordinal_to_cardinal.py -stdin -d '../dictionary.yaml' -ro -f | wikirestore -t ormk -stdinp -ui
*Namespace(force=True, lookup_dict='./dictionary.yaml', path='./files.txt')
/home/musaab/wikibackup/ormk/ICMEE 2021.wiki:	 Successfully changed 6th to 6.
/home/musaab/wikibackup/ormk/ICGDA 2021.wiki:	 Successfully changed 4th to 4.
/home/musaab/wikibackup/ormk/CQR 2008.wiki:	 Lookup failed! CQR is missing in the dictionary. 
/home/musaab/wikibackup/ormk/3IA 2009.wiki:	 Successfully changed 12th to 12.
/home/musaab/wikibackup/ormk/ICMSSP 2021.wiki:	 Successfully changed 6th to 6.

restoring 1 pages from /home/musaab/wikibackup/ormk/ to ormk
1/1 ( 100%): restore ICMEE 2021 ...✅
restoring 1 pages from /home/musaab/wikibackup/ormk/ to ormk
1/1 ( 100%): restore ICGDA 2021 ...✅
restoring 1 pages from /home/musaab/wikibackup/ormk/ to ormk
1/1 ( 100%): restore 3IA 2009 ...✅
restoring 1 pages from /home/musaab/wikibackup/ormk/ to ormk
1/1 ( 100%): restore ICMSSP 2021 ...✅


restoring 1 pages from /home/musaab/wikibackup/ormk/ to ormk