You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Establish a method of viewing old versions of a law #362
Define the URL structure by which old versions will be identified.
Create the interface to actually display those, and to indicate when one is viewing an old version.
I'm strongly tempted to do this with URL fragments, e.g. http://code.example.org/1.23-45.6/#2011. What appears after the fragment is the unique identifier for the edition in which it appears, from the editions table. The only scenario in which this would be problematic is if the edition identifier is coincidentally the same as a subsection identifier URL fragment, leading to anchor confusion. That strikes me as unlikely, since edition identifiers are very likely to be time-bound, whether years, years and months, or years months and days.
The alternatives seem to consist of a) http://code.example.org/1.23-45.6/2011/ or b) http://code.example.org/2011/1.23-45.6. The former isn't terrible, but it strikes me as semantically inferior. The latter is actively bad, because it either creates an inconsistent URL structure or unnecessarily complicates all URLs by requiring the insertion of a year.
Turning to the interface to look at old versions, I think this might be good cause to use a slider. Left is older, right is newer. How that works on a touch device is unclear to me, but I think HTML5 wound up with a slider element, so if we could just use that, then this is a problem for the browser makers to deal with or have already dealt with.
So, here's what I've got so far, but it could probably do with some suggestions from @boboroshi Whatever we end up doing, the name of the edition, the date last updated, and whether the edition is current should be really easy to understand. I'm personally not a fan of sliders because of the fine motor control needed to use them, which isn't friendly to motor-handicapped and older users.
So the concept you're working with now is not a law-specific edition selector, but one on which one selects the version of the entire code that one wants to browse?
Yes and no. Laws belong to an edition (because they're never updated solo unless we're talking revisionary), so there's a complete set for each edition (at the moment) - similar to most online documentation (e.g. MySQL). Once we have the diff capability ( #363 ) we can easily use that to show when a law has actually changed (like archive.org wayback machine or more sophisticated). This is a rather stopgap measure to get to any historical edition. Also, my naming there is not very good, just what happened to be in the database at the time - I imagine "Nov 2014", etc. will be more likely.
Considering the size and complexity of the editions update, once these last few tickets are complete, I would propose we mark it as a 0.9 release? @waldoj any thoughts?
Activity
Adding whole new workflow to handle editions. #355 #362 #382
Adding edition handling to structure and law pages. Part of #362
krusynth commentedon Nov 13, 2014
So, here's what I've got so far, but it could probably do with some suggestions from @boboroshi Whatever we end up doing, the name of the edition, the date last updated, and whether the edition is current should be really easy to understand. I'm personally not a fan of sliders because of the fine motor control needed to use them, which isn't friendly to motor-handicapped and older users.
waldoj commentedon Nov 13, 2014
So the concept you're working with now is not a law-specific edition selector, but one on which one selects the version of the entire code that one wants to browse?
krusynth commentedon Nov 13, 2014
Yes and no. Laws belong to an edition (because they're never updated solo unless we're talking revisionary), so there's a complete set for each edition (at the moment) - similar to most online documentation (e.g. MySQL). Once we have the diff capability ( #363 ) we can easily use that to show when a law has actually changed (like archive.org wayback machine or more sophisticated). This is a rather stopgap measure to get to any historical edition. Also, my naming there is not very good, just what happened to be in the database at the time - I imagine "Nov 2014", etc. will be more likely.
waldoj commentedon Nov 13, 2014
Sounds good to me!
Continuing search work on editions #362 #500
Continuing search work on editions #362 #500
Allow users to go to a different edition of the current page. #362 #500
krusynth commentedon Apr 25, 2015
This is now complete on the
edition-updatebranch.krusynth commentedon Apr 25, 2015
Considering the size and complexity of the editions update, once these last few tickets are complete, I would propose we mark it as a 0.9 release? @waldoj any thoughts?
waldoj commentedon Apr 25, 2015
You know my feelings on the matter: