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
Create a method of populating or managing the editions table #382
When adding new versions of editions, or managing a just-imported edition, we need to provide a mechanism for setting the names of those editions, as will appear in URL slugs and navigation elements. Of course, this must be compatible with #362 ("Establish a method of viewing old versions of a law").
We'll need to limit the labels for editions to URL-viable descriptors. I suggest all lowercase, no spaces. By allowing something other than years, we're going to have to start URL encoding it when output within a URL.
So, do we expect editions to always be a year? Or should we change that into an open-text entry of some sort? It seems to me we want to have an edition name and edition slug ? And then we can allow the user to enter their own at the time of import - choose an existing edition to overwrite, or create a new one.
I'm just going to comment here, though this affects all of #355#362#382
I've added a few new tricks to the admin panel, so a user can choose to insert a new edition or update an old one, just by importing data. There probably needs to be a whole new view to handle edition management, but that would be a next step here. #402
One thing I've done here is allow the user to enter their own name and slug for new editions - though we should probably generate that slug the same way that Wordpress does (and using javascript). #401
This also creates the proper permalinks to the edition in question. The next step would be to modify the permalinks table to allow many permalinks to a single resource, and have a "preferred" url flag that is used to show the best link available. #400
We're not checking to see if there's a duplicate edition slug. #399
This probably will have a few issues generated from it, but I'll be happy to take a look at those moving forward. 🚫 🎤 ⬇️
Everyone - you'll probably want to blow away your database and start from scratch, as there are new versions of the editions, laws, and structure tables. (And shouldn't we rename that to structures for consistency?)
Activity
krusynth commentedon Sep 9, 2013
So, do we expect editions to always be a year? Or should we change that into an open-text entry of some sort? It seems to me we want to have an edition
nameand editionslug? And then we can allow the user to enter their own at the time of import - choose an existing edition to overwrite, or create a new one.waldoj commentedon Sep 9, 2013
Definitely not, as per #355 ("Rename EDITION_YEAR constant"). I've been thinking a name/slug approach would be a good one.
Adding whole new workflow to handle editions. #355 #362 #382
krusynth commentedon Sep 10, 2013
I'm just going to comment here, though this affects all of #355 #362 #382
I've added a few new tricks to the admin panel, so a user can choose to insert a new edition or update an old one, just by importing data. There probably needs to be a whole new view to handle edition management, but that would be a next step here. #402
One thing I've done here is allow the user to enter their own name and slug for new editions - though we should probably generate that slug the same way that Wordpress does (and using javascript). #401
This also creates the proper permalinks to the edition in question. The next step would be to modify the permalinks table to allow many permalinks to a single resource, and have a "preferred" url flag that is used to show the best link available. #400
We're not checking to see if there's a duplicate edition slug. #399
This probably will have a few issues generated from it, but I'll be happy to take a look at those moving forward. 🚫 🎤 ⬇️
waldoj commentedon Sep 10, 2013
Dude. You've made the most of today. :) I look forward to trying this out in the morning!
krusynth commentedon Sep 10, 2013
Everyone - you'll probably want to blow away your database and start from scratch, as there are new versions of the
editions,laws, andstructuretables. (And shouldn't we rename that tostructuresfor consistency?)jathayde commentedon Sep 10, 2013
Cool. the
state decoded.sqlfile in admin still the authoritative schema?krusynth commentedon Sep 10, 2013
@boboroshi Yup!
Improve sample edition slug
krusynth commentedon Apr 25, 2015
This is now complete on the
edition-updatebranch.