Skip to content

Establish a method of viewing old versions of a law #362

Closed

Description

@waldoj

This issue is two-part:

  1. Define the URL structure by which old versions will be identified.
  2. 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.

Activity

  1. krusynth commented on Nov 13, 2014

    @krusynth
    Member

    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.

    screen shot 2014-11-12 at 9 45 07 pm
    screen shot 2014-11-12 at 9 45 13 pm

  2. waldoj commented on Nov 13, 2014

    @waldoj
    MemberAuthor

    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?

  3. krusynth commented on Nov 13, 2014

    @krusynth
    Member

    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.

  4. waldoj commented on Nov 13, 2014

    @waldoj
    MemberAuthor

    Sounds good to me!

  5. krusynth commented on Apr 25, 2015

    @krusynth
    Member

    This is now complete on the edition-update branch.

  6. krusynth commented on Apr 25, 2015

    @krusynth
    Member

    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?

  7. waldoj commented on Apr 25, 2015

    @waldoj
    MemberAuthor

    You know my feelings on the matter: :shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions