Skip to content

Support multi-part legal codes #533

Open

Description

@waldoj

Some legal codes (e.g., San Francisco) are actually a series of smaller legal codes, each codified separately. They might have different structures, in theory they might even use different section identifiers. At present, supporting such a legal code requires a series of parallel State Decoded installations, which is a mess.

In my own survey of municipalities, the existence of multiple codes that actually contain laws (e.g., not Dade County, which has a faux multi-code system, but really only has one set of laws) is relatively rare.

Therefore, this was a use case that I'm not terribly concerned about, but that I appreciate is important, mostly for very populous cities (not states or counties), again, from what I’ve seen.

My thinking is that a healthy multi-site hosting environment might render this problem moot. That is, like WordPress MU (or just WordPress, since its functionality has been merged into core), if it’s easy to have a series of sites hosted on a single instance, then it’s not difficult to host a series of sub-codes on subdomains. By defining a method of resource sharing, and writing some code to facilitate it, this might be easy.

The idea is that there'd be a master directory for /includes/ and /htdocs/ that would have the standard files for everything, save for a few resources, like /downloads/, /content/, and sitemap.xml. Then each installation would have soft links of those files and directories, but drop in their own localized files. I'm not sure if we could use one config.inc.php file for all of the sites, or if we'd need separate ones (or child ones) for each. We'd also need to sort out namespacing for APC/Memcached.

I haven't thought this through any more than what I've written here, but it's a start.

Activity

  1. added this to the Future milestone on Mar 6, 2014
  2. krusynth commented on Mar 11, 2014

    @krusynth
    Member

    Design-wise, we've got a hub site for San Francisco which has a slightly different design to deal with the many subsections, meanwhile on Baltimore we're just adding links to the nav bar until they don't fit. A single solution would be nice.

    Also also, with the multiple-editions, the hard drive space being eaten by SF is so large that it will probably grow to span multiple servers on its own, presenting a wholly other setup requirement (e.g. "only import these six parts of the code").

  3. waldoj commented on Mar 12, 2014

    @waldoj
    MemberAuthor

    Do you think this will solve your storage problem?

  4. krusynth commented on Mar 13, 2014

    @krusynth
    Member

    Not really, the exports will still be duplicative. That only reduces space usage by like half?

  5. waldoj commented on Mar 13, 2014

    @waldoj
    MemberAuthor

    Well, half is pretty good. :)

  6. krusynth commented on Mar 13, 2014

    @krusynth
    Member

    I'm really just tempted to stick all of this into a local git repo and be done with it. :p

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions