Repository navigation
Remove /static/wp-content/uploads and /static/wp/wp-content/uploads #6
Description
Activity
Reopening pending rewriting git history to slim down this repository
I cleaned up the last handful of files that was still in the /wp-content folder of this repo
Nice. Do we still need
/static/w/imagesor are they again already on https://github.com/OBF/wp-content/ (and we just need to tweak a few URLs)?Once we're happy I do still want to run the numbers for a git history rewrite as I'm expecting a massive drop in repository size. That will benefit anyone taking a clone in future (but with the minor invoncience for us few with an existing clone).
with the minor invoncience for us few with an existing clone
but we'll just need to sync and git pull again to get the changes, right? will any other actions be required? (sorry, i'm still semi-clueless about git)
@Nomi when a main branch history is rewritten, assuming you have no pending changes on branches of your own, by far the simplest way to deal with it is delete your local copy and take a fresh clone. So if we go ahead, we'll coordinate with you to make sure the timing isn't an issue.
@peterjc Those aren't yet on the wp-static, but also don't seem to take up a lot of space (it's ~4 mb, mostly due to a treasurer report that i'm not sure is linked from anywhere).
If you want to try copying them into the
wp-contentfolder and then edit the markdown files please do! But I think worst case it's okay to keep it as is!The ugly paths under
/static/w/imagesbug me :LOL:Actually, these are relics from the MediaWiki site, e.g.
/static/w/images/a/ac/HP-logo-no-tagline.pngis already at https://github.com/OBF/wiki/blob/main/HP-logo-no-tagline.png and https://obf.github.io/wiki/HP-logo-no-tagline.png - so they are almost certainly not being used in the former WordPress content.Reacted by Bastian Greshake TzovarasI fear in some pages it is, these seem to be some old BOSC pages, as well as some very old blog posts, see the output of
grepbelow:❯ grep "/w/" page/* page/2017-schedule.md:- [Download the complete program (including all talk and poster abstracts) as a PDF](/w/images/4/42/BOSC2017-complete-program-compressed.pdf) page/2017-schedule.md:- [Download the complete program (including all talk and poster abstracts) as a PDF](/w/images/4/42/BOSC2017-complete-program-compressed.pdf) page/2017-schedule.md:- [PDF poster list](/w/images/8/82/BOSC2017-PosterOverview.pdf) ❯ grep "/w/" posts/* posts/are-you-going-to-ismb-bosc-2007.md:If you'll be at BOSC or ISMB - please see this page and sign your name if you would like to try and meet up. We'll do a developer's dinner as well as have a BoF. posts/bioinformatics-open-source-conference-bosc-2011-call-for-abstracts.md:![[BOSC Logo]](/w/images/b/b0/Pear.png)Call for Abstracts for the 12th Annual Bioinformatics Open Source Conference ( [BOSC 2011](/wiki/BOSC_2011)), an [ISMB 2011 Special Interest Group (SIG)](http://www.iscb.org/ismbeccb2011-program/satellite-meetings). posts/bioperl-reality-vs-myth-presentation-is-online.md:[http://conferences.oreillynet.com/pub/w/21/presentations.html](http://conferences.oreillynet.com/pub/w/21/presentations.html) posts/bosc-2014-call-for-abstracts.md:[![[BOSC Logo]](/w/images/b/b0/Pear.png)](/wiki/BOSC_2014) posts/bosc-2014-call-for-abstracts.md:[![[Eagle Genomics Logo]](/w/images/thumb/5/5f/Eagle_logo_2013.jpg/120px-Eagle_logo_2013.jpg)](http://www.eaglegenomics.com/) posts/bosc-2014-call-for-abstracts.md:[](http://www.gigasciencejournal.com/) posts/bosc-2014-video-recording.md:We're pleased to publicly announce that we aim to video record _all_ the talks at [BOSC 2014](/wiki/BOSC_2014_Schedule), and the panel discussion, to be made freely available online after the conference. This is on an opt-out basis, and thus far none of our speakers have declined to be filmed. [](https://www.youtube.com/channel/UCNSng3q18VuQ-13RhhKJ5FA "OBF videos on YouTube.com") Last year we managed to record many of the talks - including both keynotes, which you can watch via the YouTube links on the [BOSC 2013 Schedule](/wiki/BOSC_2013_Schedule). This year we are hiring a professional from [Next Day Video](http://nextdayvideo.com/) ( [@NextDayVideo](https://twitter.com/nextdayvideo) on Twitter). posts/bosc-2015-call-for-abstracts.md:[![[BOSC Logo]](/w/images/b/b0/Pear.png)](/wiki/BOSC_2015) posts/bosc-2015-keynote-speakers.md: [](/wiki/File:HollyBik.png "Holly Bik") Dr Holly Bik is a Birmingham Fellow (assistant professor) in the School of Biosciences at the University of Birmingham, UK. She obtained her Ph.D. in molecular phylogenetics at the University of Southampton, UK (working in conjunction with the Natural History Museum, London), followed by subsequent postdoctoral appointments at the Hubbard Center for Genome Studies at the University of New Hampshire and the UC Davis Genome Center. posts/bosc-2015-keynote-speakers.md: [](/wiki/File:EwanBirney2.jpg "Ewan Birney") Dr Ewan Birney is Joint Associate Director of EMBL-EBI, as well as Interim Head of the Centre for Therapeutic Target Validation. Together with Dr Rolf Apweiler, he has strategic responsibility and oversight for bioinformatics services at EMBL-EBI. posts/bosc-2016-call-for-abstracts.md:[![[BOSC Logo]](/w/images/b/b0/Pear.png)](/wiki/BOSC_2016) posts/bosc-2016-keynote-speakers.md:[](/wiki/File:JenniferGardy.jpg "Jennifer Gardy") posts/bosc-2016-keynote-speakers.md:[](/wiki/File:StevenSalzberg.jpg "Steven Salzberg") posts/catering-at-bosc-codefest-2014.md:This year, the BOSC Codefest 2014 is being hosted by [hack/reduce](http://www.hackreduce.org) (a wonderful hackerspace in Cambridge, Boston) and has also been kindly sponsored by [Curoverse](http://curoverse.com) (the team behind the open source platform [Arvados](http://arvados.org)) and [Harbinger Partners, Inc.](http://harbinger-partners.com/)[](http://www.hackreduce.org/)[](http://curoverse.com/)[](http://harbinger-partners.com/)[](http://arvados.org/) posts/free-registration-to-student-presenters-at-bosc-2014.md:[](/wiki/BOSC_2014) To encourage more student presentations at the Bioinformatics Open Source Conference (BOSC), this year we're waiving the registration fee for accepted student presenters. When you submit your abstract ( [BOSC abstract call open until 4th April](http://news.open-bio.org/news/2014/03/bosc-2014-call-for-abstracts/)), you must tick the student box: posts/free-registration-to-student-presenters-at-bosc-2014.md:Please note that because BOSC registration is via the ISCB as [one of the ISCM SIG meetings](https://www.iscb.org/ismb2014-program/ismb2014-sigs-satellite-meetings#bosc), eligible students must contact us **_before_** filling in their ISCB registration to ensure the BOSC SIG fee is waived. [](http://www.eaglegenomics.com/) posts/introduction-of-openid-logins-for-obf-wikis.md:Due to a huge influx of spam across all OBF wikis, we are in the process of locking down new user account creation and adding [OpenID](http://openid.net/) logins for the OBF wikis (BioPerl [example](http://www.bioperl.org/w/index.php?title=Special:OpenIDLogin&returnto=Main_Page)). User account creation via the old login system will be disabled and OpenID will be the default path for new accounts so users to make wiki changes. This currently appears to have cut the incidence of spam significantly. We will be adding information to the login pages to redirect new users to the new login page. posts/minutes-2008-confcall.md:1. [Treasurer's financial report](/w/images/4/4c/2008-OBF-Treasurer-Report_Ammended2.pdf) from summer 2008, with accounts updated to be current for posts/minutes-2013-apr-confcall.md: - [Treasurer's 2012 report](/w/images/1/11/2012-OBF-Treasurers-Report.pdf) (Chris Dagdigian) posts/minutes-2013-apr-confcall.md:- [Treasurer's 2012 report](/w/images/1/11/2012-OBF-Treasurers-Report.pdf):Thank you for trying to keep the old pages working. FWIW, I don't view it as high priority if the things you listed above break. One is to a program for an old BOSC; the others are images on old posts.
Huh. Those can probably be fixed by replacing
/w/.*/with just/wiki/- I can try withsedlater if you don't beat me to it - and it is a short enough list to check them all individually too.And Nomi, I personaly consider maintaining the old pages to be an important part of our legacy and not to be dismissed. Taking more care there is arguably more important as is if current content breaks, we'd hear about it very quickly 😉 - but I understand your view too.
Sounds good, I fear I got side-tracked with the other open issues today, so whoever gets to it tomorrow!
Cross reference #43 for documenting the submodule solution... not ideal as it make avouding the ~450MB download harder.
Doing the same for
static/w/images/would mean pulling in https://github.com/OBF/wiki as a submodule too.Unless unless we explicitly use full URLs for those files including our domain? i.e. Tweak the mardown files to say https://www.open-bio.org/wiki/Curoverse.png rather than a local reference to the file
/w/images/e/e5/Curoverse.png- and things should work with a lightweight repository to clone.I mean, given that it seems like the submodule bit wasn't the solution to the problem with the missing images, we could remove it again.
But regardless, it would mean that people then have to first manually download the
wp-contentrepo and then do a symlink to make it work.The
git submoduleoption has the benefit that the initial clone of theobf.github.iodoes remain small, as at least for standard git installs one needs to manually trigger thegit submodule initfor it to grab the submodule files too. So from that perspective it acts like a "simpler" version of doing the symlinking manually?The submodule is easier than the symlink I think, and you could still make contributions at the command line without downloading the old images… but local testing would be a little different for the older posts.
What do you think about explicitly linking to the HTTPS hosted copy of the old images? Might that solve local builds?
Well, I think the local testing would be the same for either of the options, as for the symlink one would also need to download the
wp-contentrepo to see them and otherwise the outcome would be the same?We could try doing hard links to the open-bio.org images, but i'm not 100% sure if that would have some unforeseen consequences?
Maybe the most pragmatic approach would be to not care too much about the old images, as those will only be affecting older blog posts? If there's images we still want to use in the newer posts or more persistent pages, we could also move those into the main repo and then for practical purposes it should not make a difference if the older images are available offline or not?
Reacted by Peter CockMaybe the most pragmatic approach would be to not care too much about the old images, as those will only be affecting older blog posts?
That's not the case - the old images are also used a lot in old AND NEW pages and posts. For example, I'm working on a post about financial support options for BOSC 2025, and for the part of that post about OBF Travel Awards, I scanned past blog posts by awardees to look for good images to use. (I noticed that the images in blog posts almost never have meaningful names - they're mostly like image6.jpg.) I will add new images to img/ but would still like to be able to use old ones without having to copy them to img/.
I'd say moving the ones we still actively want to use would not be too bad, especially as it gives us a chance to give them more meaningful names? But in any case, the
git submoduleway that's currently setup should work fine for getting it to display the images locally (at the cost of the 500 mb download)Reacted by Peter CockI'd say moving the ones we still actively want to use would not be too bad, especially as it gives us a chance to give them more meaningful names
If you're willing to do that, go for it! I don't have the time or energy to look through possibly thousands of images in hundreds of directories, decide which I might someday want to use in a page or post, and then copy it and rename it. I don't see a good way to automate that process.
I meant when you run into images you want to re-use, and not do a blanket-replace. If you find an image you want to re-use you could copy it with a filename
We just need to copy their content over to https://github.com/OBF/wp-content/ which will be read-only post-migration, and adjust URLs accordingly to
/wp-content/...(And then delete the files here and remove them from the git history if large)