improve the partition_by_shard stub
improve the partition_by_shard stub

test plan: n/a

Change-Id: I35abecfc43d776f2d21c63569fe197b6e461dfe8
Reviewed-on: https://gerrit.instructure.com/8841
Tested-by: Hudson <dfb64870173313a9a7b56f814c8e3b33e268497a@instructure.com>
Reviewed-by: Bracken Mosbacker <48b846001bca4166dc3fb7711563afc17525921e@instructure.com>

matematikk-mooc/canvas-lms,Unow/ins,fronteerio/canvas-lms,djbender/canvas-lms,greyhwndz/canvas-lms,merichar/canvas-lms,skmezanul/canvas-lms,HotChalk/canvas-lms,samuels410/greatlakes-lms,narigone/canvas,juoni/canvas-lms,roxolan/canvas-lms,narigone/canvas,whalejasmine/canvas-lms,em2/canvas-lms,snehakachroo1/LSI_replica,HotChalk/canvas-lms,sdeleon28/canvas-lms,samuels410/greatlakes-lms,utkarshx/canvas-lms,redconfetti/canvas-lms,eCNAP/CANVAS,merichar/canvas-lms,arrivu/arrivu-lms,rup/Tarrax,narigone/canvas,tgroshon/canvas-lms,usmschuck/canvas,venturehive/canvas-lms,em2/canvas-lms,grahamb/canvas-lms,samuels410/greatlakes-lms,sfu/canvas-lms,efrj/canvas-lms,juoni/canvas-lms,sli7246/canvas_branch,samuels410/greatlakes-lms,em2/canvas-lms,redconfetti/canvas-lms,ShreniiNepal/shrenii_lmp,gbleydon/canvas-lms,shidao-fm/canvas-lms,nditech/red-innovadores-lms,tgroshon/canvas-lms,instructure/canvas-lms,redconfetti/canvas-lms,eCNAP/CANVAS,greyhwndz/canvas-lms,parbros/red-innovadores-lms,djbender/canvas-lms,shidao-fm/canvas-lms,arrivu/hoodemo,Unow/canvas-lms,wimemx/Canvas,antoniuslin/canvas-lms,parbros/red-innovadores-lms,va7map/canvas-lms,parbros/red-innovadores-lms,arrivu/hiring-site,Rvor/canvas-lms,ankithbti/canvas_lms,arrivu/hoodemo,skmezanul/canvas-lms,sdeleon28/canvas-lms,fronteerio/canvas-lms,arrivu/jigsaw-lms,antoniuslin/canvas-lms,utkarshx/canvas-lms,ankithbti/canvas_lms,efrj/canvas-lms,Unow/canvas-lms,arrivu/jigsaw-lms,sdeleon28/canvas-lms,jay3126/canvas-lms,shidao-fm/canvas-lms,sfu/canvas-lms,landonwilkins/canvas-lms,arrivu/qibla-ecampus,greyhwndz/canvas-lms,rup/Tarrax,snehakachroo1/LSI_replica,whalejasmine/canvas-lms,sfu/canvas-lms,leftplusrightllc/canvas-lms,eCNAP/CANVAS,AndranikMarkosyan/lms,HotChalk/canvas-lms,wye0220/shindig-canvas,shidao-fm/canvas-lms,ShreniiNepal/shrenii_lmp,greyhwndz/canvas-lms,venturehive/canvas-lms,wimemx/Canvas,arrivu/qibla-ecampus,instructure/canvas-lms,roxolan/canvas-lms,merichar/canvas-lms,arrivu/arrivu-lms,va7map/canvas-lms,gbleydon/canvas-lms,kyroskoh/canvas-lms,usmschuck/canvas,venturehive/canvas-lms,antoniuslin/canvas-lms,landonwilkins/canvas-lms,utkarshx/canvas-lms,nditech/red-innovadores-lms,fronteerio/canvas-lms,AndranikMarkosyan/lms,juoni/canvas-lms,instructure/canvas-lms,djbender/canvas-lms,whalejasmine/canvas-lms,Jyaasa/canvas-lms,Unow/ins,loganrun/pincan,arrivu/jigsaw-lms,wye0220/shindig-canvas,jay3126/canvas-lms,wrdsb/canvas-lms,arrivu/qibla-ecampus,arrivu/hoodemo,Rvor/canvas-lms,skmezanul/canvas-lms,venturehive/canvas-lms,grahamb/canvas-lms,kyroskoh/canvas-lms,sdeleon28/canvas-lms,eCNAP/CANVAS,dgynn/canvas-lms,sfu/canvas-lms,fronteerio/canvas-lms,redconfetti/canvas-lms,snehakachroo1/LSI_replica,sli7246/canvas_branch,HotChalk/canvas-lms,nditech/red-innovadores-lms,Unow/canvas-lms,SwinburneOnline/canvas-lms,tgroshon/canvas-lms,snehakachroo1/LSI_replica,utkarshx/canvas-lms,wrdsb/canvas-lms,Jyaasa/canvas-lms,Jyaasa/canvas-lms,Rvor/canvas-lms,tgroshon/canvas-lms,va7map/canvas-lms,Rvor/canvas-lms,SwinburneOnline/canvas-lms,instructure/canvas-lms,matematikk-mooc/canvas-lms,grahamb/canvas-lms,Jyaasa/canvas-lms,Unow/ins,sfu/canvas-lms,wye0220/shindig-canvas,djbender/canvas-lms,jay3126/canvas-lms,landonwilkins/canvas-lms,roxolan/canvas-lms,dgynn/canvas-lms,ShreniiNepal/shrenii_lmp,wrdsb/canvas-lms,dgynn/canvas-lms,SwinburneOnline/canvas-lms,wimemx/Canvas,jay3126/canvas-lms,grahamb/canvas-lms,antoniuslin/canvas-lms,kyroskoh/canvas-lms,leftplusrightllc/canvas-lms,va7map/canvas-lms,efrj/canvas-lms,arrivu/arrivu-lms,roxolan/canvas-lms,AndranikMarkosyan/lms,arrivu/hiring-site,gbleydon/canvas-lms,instructure/canvas-lms,icelab/canvas,sfu/canvas-lms,SwinburneOnline/canvas-lms,landonwilkins/canvas-lms,leftplusrightllc/canvas-lms,juoni/canvas-lms,sfu/canvas-lms,icelab/canvas,kyroskoh/canvas-lms,leftplusrightllc/canvas-lms,nditech/red-innovadores-lms,loganrun/pincan,sli7246/canvas_branch,dgynn/canvas-lms,usmschuck/canvas,rup/Tarrax,AndranikMarkosyan/lms,icelab/canvas,ankithbti/canvas_lms,instructure/canvas-lms,loganrun/pincan,usmschuck/canvas,ShreniiNepal/shrenii_lmp,whalejasmine/canvas-lms,matematikk-mooc/canvas-lms,arrivu/hiring-site,efrj/canvas-lms,instructure/canvas-lms,grahamb/canvas-lms,narigone/canvas,skmezanul/canvas-lms,wrdsb/canvas-lms,matematikk-mooc/canvas-lms