Difference between revisions of "Developer documentation"

From WormBaseWiki
Jump to navigationJump to search
 
(200 intermediate revisions by 10 users not shown)
Line 1: Line 1:
 
This page contains information pertinent to employees of WormBase.  
 
This page contains information pertinent to employees of WormBase.  
  
= Project Management =
+
= Navigating and Editing the Developer Documentation =
*[[Project Calendar|Project Calendar]]
+
 
*[[Conference call agendas and minutes]]
 
*[[Project meeting agendas and minutes]]
 
*[[Linking To WormBase|Linking To WormBase]]
 
*[[Suggested pre-release data checks|Suggested pre-release data checks]]
 
*[[SOPs|Internal documentation and standard operating procedures]]
 
*[[modENCODE Analysis & metadata discussion|modENCODE Analysis & metadata discussion]]
 
*[[Genome Standards]] -- ''What criteria should a genome meet before we accept it for integration?''
 
*[[WormBase Models]]
 
*[[Orthologs: use cases for searches]]
 
*[[Genome sequence changes]]
 
*[[WormBase Genomes]]
 
  
= Web Site Documentation =
 
  
*[[Installing the Web Application|Installing the Web Application]] - ''Here's how to install the WormBase web application -- including Catalyst -- on your system DEPRECATED''
+
== [[:Category:Web Dev| Web Dev Category Hierarchy (Under Construction)]] ==
*[[HOWTO migrate a CGI|HOWTO migrate a CGI]] - ''quick overview of how to migrate an existing CGI into a Model, Controller, and View. Sparse''
 
*[[Website:Design Specifications|Requirements analysis / Design Specifications]]
 
  
== Development Milestones ==
+
'''You will be able to navigate the Developer Documentation by browsing through the [[:Category:Web Dev| Web Dev Category Hierarchy (Under Construction)]] above, which is under construction right now. In the mean time, please browse through this page or search for information that you need.'''
  
=== Measuring Progress ===
+
<categorytree mode=pages showcount="on" hideroot="on" depth=4 >Web Dev</categorytree>
* [[AceOjbect_Redesign_Page|AceDB classes -> API progress matrix]]
 
*[http://spreadsheets.google.com/ccc?key=pHvlNLMCZIv1KBoy8ZhbZXA&hl=en Migration matrix (GoogleDoc)]
 
  
'''July 14 - July 30th'''
+
== How to Contribute to the Documentation ==
* Coronate Czars
+
If you'd like to help out adding to the documentation, that's great! Here is some general good practice that will help keeping the documentation organized, navigable and up to date.
* Coding standards and best practices for CSS, Javascript, API in place
+
* Ensure a page is tagged with a category, when you add or edit a page. You can browse through our [[:Category:Web Dev| high level categories]] and locate the '''most specific category''' that describes your page.
* Release new pages to production powered by the new architecture (classic view only)
+
<blockquote> For example, include the following code at the bottom of a page will make the page appear under the category [[:Category: Getting Started (Web Dev)]] :
** Variation, Protein, Sequence -- and maybe -- Gene
 
** '''Todd''' to develop <strikethrough>deployment strategy</strikethrough>, hosting environment, and proxy configuration
 
** '''Abby''' and '''Xiaoqi''' to work up templates and markup specific to the classic view
 
** '''Norie''' to make requisite API changes as needed
 
  
'''July 30th - August 31st'''
+
<code><nowiki>
* [[AceOjbect_Redesign_Page|Finish API development of critical classes]]
+
[[Category: Getting Started (Web Dev)]]
* Finish migration of prominent CGI-based pages to new architecture and release into production (classic view only)
+
</nowiki></code>
* Solidify look-and-feel of new site: site map, browsing paths, design patterns, navigation
 
* UI features to address/develop
 
** Enhanced, high-performance search
 
** External URL handling
 
** Error trapping and reporting
 
** Authorization/Authentication
 
** Customizability
 
** Configurable two-panel selector
 
** Incorporation of old site elements like BLAST/BLAT
 
** Top-level species pages (/celegans, eg) and UI clues for distinguishing them
 
  
'''December 1st'''
+
</blockquote>
* Begin public beta testing of new site
 
* Launch surveys on UI
 
  
'''February 1st'''
+
* '''Update''', deprecate or remove old documentation when appropriate.
* Go Live with new site
 
  
== Division of Labor ==
+
* Any documents that contain potentially '''sensitive information''' belong on Google Docs (Contact Todd for details). This might reasonably include anything that reveals information about '''our systems or architecture'''.
  
''Duties, current as of July 2010.''
+
* Additional guidelines on [[Documentation and Communication Standards]]
  
'''Configuration Czar''' -- ''View and application configuration'' -- '''Norie'''
+
* '''Other ideas?''' Please update the wiki here!
* Keep configuration files neat, orderly, and documented
 
* Create new configuration for hard-coded variables and UI elements when needed.
 
* Enforce/evangelize configuration standards and formatting
 
  
'''CSS Czar''' -- ''Responsible for the maintenance of CSS files''
+
= New Employee Orientation =
* Develop and document CSS best practices
+
* [https://docs.google.com/document/d/1E37IgK1gsaw6ZXa3cYFz2HPVPuB__KmNs5tErO6VXDY/pub New Employee Orientation] -- ''Getting started at WormBase, for employees at any location. Read this first.''
* Keep CSS files tidy and organized  function
+
* [https://docs.google.com/document/d/1Xm1aQTm7zXapfirgD1PP7KWNjPlXHNw_iaLLAVvZ-Gg/pub Webdev team/OICR Orientation] -- ''For new employees of the web development team at OICR.''
* Enforce/evangelize standard CSS markup in templates
+
*[[Co-op Documentation]]
  
'''Javascript Czar''' -- ''[[web2.0 Javascript use and maintenance|Javascript use and maintenance]]''
+
= Project Management =
* Develop and document Javascript best practices
+
*[[Project Calendar|Project Calendar (Google)]]  
* Explore and advise on javascript plugins
 
* Enforce/evangelize javascript standards and formatting
 
  
'''Template Czar''' -- ''Oversee template development''
+
==== Conference call agendas/minutes ====
* Develop and document template standards
 
* Define and document shared template elements (ie tables, fields, widgets)
 
* Keep template directory organized
 
* Enforce/evangelize template standards
 
  
'''Controller Czar''' -- ''Maintain and develop new controllers as needed''
+
*[[Conference calls| Conference call agendas and minutes (All WormBase)]]
* Document existing controllers
+
*[[Conference call agendas and minutes| Conference call agendas and minutes (WebDev team)]]
* Document logic flow through application
+
*[[Project meeting agendas and minutes]]
* Develop new controller actions as requested/needed
+
*[[InterMine Strategy Meetings]]
  
'''WormBase::API Czar''' -- ''Oversee development of the external Model'' -- '''Norie'''
+
==== Source Code Repositories ====
* Develop and document API coding standards and best practices
 
* Document shared API methods
 
* Enforce/evangelize coding standards
 
  
'''Testing Czar''' -- ''Oversee testing of the web app'' -- '''Todd'''
+
''We use the distributed source code management system git.  Projects are hosted on [http://github.org/WormBase Github].''
* Develop and document test requirements
 
* Ensure adequate test coverage and performance
 
* Develop global View and API tests
 
* Stress Test app
 
  
'''Profiling Czar''' -- ''Track progress and performance of the web app'' -- '''Todd'''
+
*[http://github.org/WormBase/website website] - ''The WormBase web application (public)''
* See the [[Website:Profiling|Profiling documentation]] for additional details and progress.
+
*[http://github.org/WormBase/website-admin website-admin] - ''Administrative code (private)''
* Explore profiling options and discuss
 
* Add dynamically configurable profiling
 
* Identify and report bottlenecks
 
* Develop caching mechanism of ajax-requested widgets
 
  
== Coding standards and Best Practices ==
+
Recommended reading (learning git):
*[[Browser Support Statement]] -- ''official graded browser support statement''
+
* [http://try.github.io/levels/1/challenges/1 try.gihub.io]
*[[Developer_notes|Developer notes]] -- ''Best practices, conventions, etc''
 
*[[Coding standards|Coding standards]]
 
*[[Formal_development_strategy|Formal development strategy]] - ''An overview of the development process at WormBase''
 
  
= Architecture =
+
= General Documentation =
 +
*[[Co-op Documentation]]
 +
*[[SOPs|Internal documentation and standard operating procedures]]
 +
*[[Feature WishList]]
  
== Software platform  ==
+
= The Web Application =
  
* [[Website:Application overview|Application overview]] - ''A quick tour through the software platform, request flow, caching, etc''  
+
* [[Website:Application overview|Application overview]] - ''An overview of the web application, including MVC structure, request flow, caching, etc''  
 
* [[Website:Configuration|Configuration]] -- ''Application and view configuration: formatting and standards''
 
* [[Website:Configuration|Configuration]] -- ''Application and view configuration: formatting and standards''
 
* [[Website:WormBase::API|WormBase::API]] -- ''The WormBase data model, maintained external to the web application''
 
* [[Website:WormBase::API|WormBase::API]] -- ''The WormBase data model, maintained external to the web application''
Line 121: Line 68:
 
* [[Website:Model| Model]] -- ''The web application model; thin, glued to the external Model''
 
* [[Website:Model| Model]] -- ''The web application model; thin, glued to the external Model''
 
* [[Website:Controller| Controller]] -- ''Overview of controller files and actions''
 
* [[Website:Controller| Controller]] -- ''Overview of controller files and actions''
* [[Website:Software Platform]] -- ''The full software platform, including reverse proxy, webservers, and database node configuration''
+
* Genome Browsing
*[[NFS at WormBase]]
+
** [[Website:GBrowse Set-up on dev.wormbase.org|GBrowse Set-up on dev.wormbase.org]] -- "Updating/rolling-back GBrowse installations on a per user basis"
 +
** [[Website:Genome Browser Survey|Genome Browser Survey]] -- "Community survey for evaluating use cases and required functionality of a WormBase genome browser"
 +
* Visualization
 +
** [[Website:Visualization Library Assessment]] -- "Assessment of several visualization options for integration in the Website"
 +
** [[Website:Visualization with ggplot2 of the R-Project]] -- "Installation, set-up, and other information about the R-project based visualization"
  
== Hardware platform  ==
+
* [[Website:WormMine| WormMine]] -- ''How to install, update, and maintain the InterMine instance at WormBase''
 +
** [[Website:WormMine Builds]] -- Summary stats of WormMine builds
 +
*[[Website:Contribute_from_GitHub|Contribute from Github]]
  
*[[Administration:WormBase Production Environment|Production Environment]] - ''Building, Configuring, and Maintaining the WormBase production environment''
+
== The Mobile Website ==
*[[Administration:WormBase Development Environment|Development Environment]] - ''Building, Configuring, and Administering the WormBase development server''
+
* [[Website:Mobile| Mobile]] -- ''Overview of the mobile website''
*[[WormBase_Infrastructure|WormBase Infrastructure]] - ''A complete accounting of WormBase compute resources.
+
* [[Website:MobileRouter| Router]] -- ''A definition of the possible routes of the mobile website''
 +
* [[Website:MobileModels| Models]] -- ''Details about the models''
 +
* [[Website:MobileCollections| Collections]] -- ''Details about the collections''
 +
* [[Website:MobileViews| Views]] -- ''Details about the views''
 +
* [[Website:MobileWidgets| Widgets Porting]] -- ''Details about the porting of widgets in the mobile website/app''
 +
= Data Model and Data Development =
  
== Administration  ==
+
*[[WormBase Models]]
 +
*[[Genome Standards]] -- ''What criteria should a genome meet before we accept it for integration?''
 +
*[[Suggested pre-release data checks|Suggested pre-release data checks]]
 +
*[[modENCODE Analysis & metadata discussion|modENCODE Analysis & metadata discussion]]
 +
*[[modENCODE Integration status|modENCODE Integration status]]
 +
*[[Genome sequence changes]]
 +
*[[WormBase Genomes]]
 +
*[[GFF Release Data and Changes]]
 +
 
 +
= Development Guidelines =
 +
* [https://docs.google.com/a/wormbase.org/document/d/1jps4_bTrsR-Km0QTKk3ENRckbKyK3y8jZwSvq3rh2lo/pub Setting up your development environment] -- ''How to set up your development environment on dev.wormbase.org''
 +
*[https://docs.google.com/a/wormbase.org/document/d/1ONNKWe82OL5oZoPBmQ3nOZ_EZuzDfjbVpYvMkjnfULc/edit#heading=h.3t2png3rdgj8 Developer Resources at WormBase] -- ''Available developer resources, including the shared development space''
 +
*[https://docs.google.com/document/d/1zIOm95tV9A14n9xnkPkMgiOTGcOIzx161y9UbDZvfW4/pub WormBase Release Workflow] -- ''Project-wide schedule that documents what is happening when and where. ([[WormBase Release Workflow|original wiki version)]]''
 +
*[[Development_workflow_-_webdev|Formal Development Strategy]] -- ''An overview of the development process at WormBase''
 +
*[[Documentation and Communication Standards|Documentation and Communication Standards]]
 +
*[[Coding standards|Coding standards]]
 +
*[[Developer_notes|Developer notes]] -- ''Best practices, conventions, etc''
 +
*[[Browser Support Statement]] -- ''official graded browser support statement''
  
=== Updates ===
+
== Testing ==
* [[Deployment|Deployment]] - ''How to deploy the web app for production use''
+
*[[Unit Testing]]
* [[Updating The Development Server]] - ''Updating the development server with a new release of the database''
 
* [[Updating The Production Servers]] - ''Updating production environments with a new release of the database''
 
  
=== Routine Administration Tasks ===
+
== Help us maintain the site ==
* [[Testing|Testing]] - ''Testing guidelines for the web application and hardware platform''
+
*[[Website:Contribute from GitHub|Contribute from GitHub]]
* [[Website:Profiling|Profiling]] - ''Profiling the web application, performance tuning, identifying memory and I/O bottlenecks, and historical benchmarks''
 
* [[Cronjobs|Cronjobs]]
 
* [[Creating_a_Google_Sitemap|Creating a Google Sitemap]]
 
* [[Managing Perl Libraries]] - ''Managing Perl libraries across projects and architectures''
 
* [[Log file management and analysis|Log file management and analysis]] - ''rotating and analyzing logs.''
 
* [[Site_statistics|Site statistics]]
 
  
*[[Website:2010.12-Private Beta Notes|2010.12: Private Beta Notes]] -- ''Notes and documentation with respect to the private beta''
+
= Information for third party developers =
  
 +
*[[Linking To WormBase|Linking To WormBase]]
  
 +
= Administration  =
  
 +
== Architecture ==
  
 +
'''Software Platform'''
 +
*[[Administration:Installing WormBase|Installing WormBase]] - ''How to get a basic installation of WormBase up and running''
 +
*[[Administration:Installing WormMine|Installing WormMine]] - ''How to get a basic installation of  WormMine up and running''
 +
*[[Administration:WormBase Production Environment|Production Environment]] - ''Building and Maintaining the WormBase production environment; extends the "Installing WormBase" document''
 +
* [[GBrowse Administration]] -- ''building, configuring, and maintaining production GBrowse nodes.''
 
* [[Building WormMart|Building WormMart]] - ''How to convert a WormBase AceDB database into WormMart''
 
* [[Building WormMart|Building WormMart]] - ''How to convert a WormBase AceDB database into WormMart''
  
=== Load balancing and Failover  ===
+
'''Hardware Platform'''
*[[Building Squid|Building Squid]] - ''How to build, install and configure Squid''
+
*[[WormBase_Infrastructure|Hardware Platform]] - ''A complete accounting of WormBase compute resources.
  
=== Monitoring and Crises Management ===
+
== Software Life Cycle ==
*[[Development Server Administration]] - ''Monitoring and fixing the development server''
+
* [https://docs.google.com/a/wormbase.org/document/d/1oPpj8d5gibUc-gpUZorl6ETT5baE6mp-v2bMedKauiA/ Software Life Cycle: 1. Build] -- ''Preparing a new release for the website''
* [[General_administration|General administration and monitoring notes]] - ''Partially redundant, sorry''
+
* [[Software Life Cycle: 2. Software development period|Software development period]] - ''Once a new database has been staged, the development phase begins in earnest on private development sites''
*[[Monitoring services and servers|Monitoring services and servers]]  
+
* [[Software Life Cycle: 3. QA/QC and Performance Benchmarking|QA/QC and Performance Benchmarking]] - ''Integrating changes and staging the code for QA/QC and performance testing prior to deployment''
*[[Crises Recovery Plan|Crises Recovery Plan]] - ''Everything breaks. Here's how to fix it.''
+
* [https://docs.google.com/a/wormbase.org/document/d/1KlweWzfxc9-uKxR1dJwuPfR4NPJs-H1S8Yxg_V1Ha8U/edit#heading=h.e2m5ps3gnzcs Software Life Cycle: 4. Production] -- ''Deploying a new release to production''
  
=== Frozen Releases ===
+
== Measuring Application Performance ==
*[[Building Frozen Releases]] - ''The most current documentation on how to build a frozen release''
 
  
== Source Code Repositories ==
+
* [[Website:Testing_And_Profiling|Unit Testing and Profiling]] - ''Testing and profiling protocol for the web application''
 +
* System Testing
 +
* [[Website:Validation|Standards Validation]] - ''Validation of HTML, CSS, XML''
 +
* Security Assessment
 +
* Accessibility
 +
* [[Website:Usability Testing|Usability Testing]] - ''usability testing strategies and evaluation''
 +
* [[Website:Browser Compatibility Statement|Browser Compatibility Testing]] - ''browser support matrix and testing protocol''
 +
* [[Website:Load Testing|Load Testing]] - ''Performance and load testing; historical benchmarks''
 +
----
  
''We use the distributed source code management system Mercurial.  Projects are hosted on [http://bitbucket.org BitBucket].''
+
== Routine Administration Tasks ==
 +
* [[Cronjobs|Cronjobs]] - ''a full accounting of all cronjobs at WB''
 +
* [[Creating_a_Google_Sitemap|Creating a Google Sitemap]] - ''how to tell Google which URLs to index''
 +
* [[Managing Perl Libraries]] - ''Managing Perl libraries across projects and architectures''
 +
* [[Log file management and analysis|Log file management and analysis]] - ''rotating and analyzing logs.''
 +
* [[Site_statistics|Site statistics]]
  
[[WormBase Source Code|How-To create, check out, and manage our repositories]]
+
== Monitoring and Crises Management ==
 +
*[https://docs.google.com/a/wormbase.org/document/d/18oRqTtC-q1P1bPyLAjo4XkqMGzepPi5Be1w7CfLuzg8/edit?hl=en_US Crises Recovery Plan] - ''How to diagnose and recover from service interruptions.''
 +
*[https://docs.google.com/a/wormbase.org/document/d/18G-lemZ0zKXraQlzXqNmsUCWwZmjuUHIipF6uRd0R0k/edit Monitoring services and servers] - ''Keeping tabs on the production architecture''
  
*[http://bitbucket.org/tharris/wormbase WormBase] - ''The WormBase web application (public)''
+
== Frozen Releases ==
*[http://bitbucket.org/tharris/wormbase-admin WormBase-admin] - ''Administrative code (private)''
+
*[[Building Frozen Releases]] - ''The most current documentation on how to build a frozen release''
  
== Deprecated Documentation ==
+
= Deprecated Documentation =
  
 
''The good word gone bad. Cruft. Lint. Maybe useful. Probably not.''
 
''The good word gone bad. Cruft. Lint. Maybe useful. Probably not.''
 +
 +
==== Rearchitecture ====
 +
*[[Website:Development Milestones|Development Milestones]]
 +
*[[Website:Design Specifications|Requirements analysis / Design Specifications]]
 +
*[[Website:Rearchitecture Development Duties|Rearchitecture Development Duties]]
 +
* AceDB classes -> API progress matrix (index of classes; see [https://spreadsheets.google.com/a/wormbase.org/ccc?key=tygSYCz49YW5hyCcYMHUZ1Q#gid=2 official matrix])
 +
*[[HOWTO migrate a CGI|HOWTO migrate a CGI]] - ''quick overview of how to migrate an existing CGI into a Model, Controller, and View. Sparse''
 +
 +
==== Load balancing and Failover  ====
 +
*[[Building Squid|Building Squid]] - ''How to build, install and configure Squid''
 +
 +
==== Administration ====
 +
*[[Formal_development_strategy|Formal development strategy]] - ''An overview of the development process at WormBase'' -- THE OLD VERSION
 
*[[MySQL database replication|MySQL database replication]] - ''Mirroring mysql databases across production nodes''  
 
*[[MySQL database replication|MySQL database replication]] - ''Mirroring mysql databases across production nodes''  
 
*[[Trac installation notes|Trac installation notes]]
 
*[[Trac installation notes|Trac installation notes]]
Line 182: Line 184:
 
* [[Establishing the SVN repository]] - ''Setting up the subversion repository''
 
* [[Establishing the SVN repository]] - ''Setting up the subversion repository''
 
* [[Managing GBrowse]] - ''Quick HowTo for managing GBrowse in development and production environments''
 
* [[Managing GBrowse]] - ''Quick HowTo for managing GBrowse in development and production environments''
 +
*[[Website:Monitoring services|Monitoring services and servers]] - ''Monitoring services and servers''
  
 
==== Frozen Releases as Virtual Machines ====
 
==== Frozen Releases as Virtual Machines ====

Latest revision as of 18:25, 18 June 2014

This page contains information pertinent to employees of WormBase.

Navigating and Editing the Developer Documentation

Web Dev Category Hierarchy (Under Construction)

You will be able to navigate the Developer Documentation by browsing through the Web Dev Category Hierarchy (Under Construction) above, which is under construction right now. In the mean time, please browse through this page or search for information that you need.

<categorytree mode=pages showcount="on" hideroot="on" depth=4 >Web Dev</categorytree>

How to Contribute to the Documentation

If you'd like to help out adding to the documentation, that's great! Here is some general good practice that will help keeping the documentation organized, navigable and up to date.

  • Ensure a page is tagged with a category, when you add or edit a page. You can browse through our high level categories and locate the most specific category that describes your page.

For example, include the following code at the bottom of a page will make the page appear under the category Category: Getting Started (Web Dev) :

[[Category: Getting Started (Web Dev)]]

  • Update, deprecate or remove old documentation when appropriate.
  • Any documents that contain potentially sensitive information belong on Google Docs (Contact Todd for details). This might reasonably include anything that reveals information about our systems or architecture.
  • Other ideas? Please update the wiki here!

New Employee Orientation

Project Management

Conference call agendas/minutes

Source Code Repositories

We use the distributed source code management system git. Projects are hosted on Github.

Recommended reading (learning git):

General Documentation

The Web Application

The Mobile Website

  • Mobile -- Overview of the mobile website
  • Router -- A definition of the possible routes of the mobile website
  • Models -- Details about the models
  • Collections -- Details about the collections
  • Views -- Details about the views
  • Widgets Porting -- Details about the porting of widgets in the mobile website/app

Data Model and Data Development

Development Guidelines

Testing

Help us maintain the site

Information for third party developers

Administration

Architecture

Software Platform

Hardware Platform

Software Life Cycle

Measuring Application Performance


Routine Administration Tasks

Monitoring and Crises Management

Frozen Releases

Deprecated Documentation

The good word gone bad. Cruft. Lint. Maybe useful. Probably not.

Rearchitecture

Load balancing and Failover

Administration

Frozen Releases as Virtual Machines