govwiki / govwiki-dev.us

Development Branch of govwiki.us
http://govwiki.github.io/govwiki-dev.us/
1 stars 2 forks source link

Improvements to Text URLs #37

Open joffemd opened 9 years ago

joffemd commented 9 years ago

Users need to be able to enter URLs in the form of:

http://civicprofiles.californiapolicycenter.org/ (for governments)

http://civicprofiles.californiapolicycenter.org/ / (for elected officials)

When they do so, they should be taken right to the appropriate page (the home page should not show up first) and the URL in the address box should be the same as what they entered; names should not be replaced by numbers.

joffemd commented 9 years ago

Vadim suggests changing the govs_.id field from numeric to string and then dumping the contents of alt_name into that field. This is because the URLs are based on the _id field.

I would consider this option but it has drawbacks. I don't have unique names for all entities in the database yet and am only concerned about properly supporting approximately 2000 rows in California.

igor-po commented 9 years ago

Marc,

Could you please check the URLs you wrote above. It seems that you mistyped and now the task is not quite clear.

Thank you in advance.

Igor

vadim-ivlev commented 9 years ago

Marc, for records that don't have unique human readable names we can left numbers. 2000 rows will have names. IDs for other records can be changed gradually at a later stages.

On 19 August 2015 at 20:33, Marc Joffe notifications@github.com wrote:

Vadim suggests changing the govs_.id field from numeric to string and then dumping the contents of alt_name into that field. This is because the URLs are based on the _id field.

I would consider this option but it has drawbacks. I don't have unique names for all entities in the database yet and am only concerned about properly supporting approximately 2000 rows in California.

— Reply to this email directly or view it on GitHub https://github.com/govwiki/govwiki-dev.us/issues/37#issuecomment-132874732 .