GithubHelp home page GithubHelp logo

fieldtrip / bugzilla Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 5.44 MB

Static archive of the bugs from the old bugzilla server on http://bugzilla.fieldtriptoolbox.org

Ruby 14.55% Shell 40.35% CSS 19.46% HTML 25.64%

bugzilla's Introduction

FieldTrip Bugzilla

Starting from about 2009, we have used a locally hosted Bugzilla instance as our “issue tracker” to maintain and distribute to-do lists and supports the follow-up communication between developers and users. Since about 2016 we moved on to GitHub for project management and issue tracking. Although we have kept the bugzilla server online up to 2024, keeping it further online was not possible due to resource limitations and security concerns.

The bugs from our original bugzilla server have been archived here in the form of a static Jekyll website.

This website is meant to be compiled into HTML using Jekyll, and served on an Apache http server with redirections enabled. The .htaccess redirects from the URLs of the original bugzilla server to the corresponding static pages.

Making a static copy of bugzilla

First I downloaded all bugs in xml format.

for i in {1..3476} ; do wget "http://bugzilla.fieldtriptoolbox.org/show_bug.cgi?ctype=xml&id=$i" -O ~/Desktop/bugzilla/xml/$i.xml ; done

As Jekyll cannot deal with data in xml files but can deal with ymland with json files, I converted the xml files into yml using https://mikefarah.gitbook.io/yq.

for i in {1..3476} ; do yq -o yaml ~/Desktop/bugzilla/xml/$i.xml > $i.yml ; done

Some of the bug reports contain file attachments in base64 encoding, which makes the yml files very large. As I don't want to have large files in my git repository, I wrote a bash script (again using yp) to copy the base64-encoded attachments to separate yml files, and to remove the attachment data field from each of the bugs. The bash script is in the _code directory and executed as follows.

for i in {1..3476} ; do strip.sh ~/Desktop/bugzilla/xml/$i.xml ; done

The combination of steps results in files like this

xxx.xml               # for the original bug in xml format
xxx.yml               # for the original bug in yml format, no attachment data
xxx-attachment1.yml   # the yml for the 1st attachment
xxx-attachment2.yml   # the yml for the 2st attachment

Only the files xxx.yml should be committed to the git repository. The attachments need to be decoded and stored somewhere else, for example directly on the Apache http server, or on a webdav server.

Bulding the static website

The following command makes the html files and serves them locally.

bundle exec jekyll serve --incremental --livereload

bugzilla's People

Contributors

robertoostenveld avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.