stats4sd / Stats4SD-Resources-Site

Reposistory for the Stats4SD Resources Repository
https://resources.stats4sd.org
GNU General Public License v3.0
0 stars 0 forks source link

Fix broken resource links #112

Closed chrismclarke closed 7 years ago

chrismclarke commented 7 years ago

a few of the (older?) resources have links that don't work. Need to fix

e.g. /resource/an-easy-introduction-to-biplots-for-multi-environment-trials url: "https://firebasestorage.googleapis.com/v0/b/stats4sd-resources.appspot.com/o/resources%2F-KjCjgkTDHzUs1f0BqMG%2FMcDermott%20and%20Coe%202012%20easy%20biplots.pdf?alt=media&token=2df4ce0a-6cdc-4148-932e-de9886be4ea3"

chrismclarke commented 7 years ago

I think it might just be the very first 4 or 5 resources, easily filtered from the all resources list

dave-mills commented 7 years ago

After brute-forcing the server with every url from the downloaded database, I've identified 6 files that need fixing.

Probably easiest to fix from front-end by deleting file and re-uploading. Will do that when I can log in.

Files needed (json snippets - badly formatted).txt

chrismclarke commented 7 years ago

Good to know, especially as it's just not the earliest uploads. Will definitely need to fix when pushed onto live. It would be good also if we could pass a list of resource IDs or better yet slugs to make it faster to identify (although I imagine you already have a pretty good guess). Also reminds me that any future search implementation would benefit from being able to search resource filenames too.

chrismclarke commented 7 years ago

I just went through the list, of the 6, three were actually working (mice, intro to stats games and intro analysis METs, I had a copy of the chirps guide, retrieved the missing stats game (woods) from the dropbox archive and found the other MET one online so should all be fine. @dave-mills, could you run same script on current live db to check and close if working?

dave-mills commented 7 years ago

Checked and all is good here :-)