dasmoth / dalliance

Interactive web-based genome browser.
http://www.biodalliance.org/
BSD 2-Clause "Simplified" License
226 stars 68 forks source link

Stylesheets created by tier-editor mask changes to underlying stylesheet. #91

Closed dasmoth closed 10 years ago

dasmoth commented 10 years ago
  1. Configure a track with an DAS XML stylesheet.
  2. Make a small edit in the tier editor which is manifested through the stylesheet system (e.g. turn on/off bumping) .
  3. Edit the underlying stylesheet.
  4. Spend 10 minutes scratching your head and wondering why your stylesheet changes aren't being picked up.

Underlying issue is that making any style changes through the tier editor causes a complete copy of the stylesheet to be stored in the session data, which overrides the "real" stylesheet, even when the real stylesheet changes.

Proper solution is to go for a multiple-stylesheet system as per #89. However, this is nasty enough that it may warrant a quicker solution (check hash of real stylesheet and invalidate any stylesheets in the session config if that changes? Needs a bit of thought and parts of this would probably have to leak outside session.js).