Hitchwiki / hitchwiki

The Hitchhiker's Guide to Hitchhiking the World
https://hitchwiki.org
32 stars 9 forks source link

Think about spot names #125

Closed simison closed 5 years ago

simison commented 7 years ago

Now Municipality, Country (lat, lon)

Could be just spot-123

omelnyk commented 7 years ago

In the migration script, I'm using eg. Spot 123, where 123 is the spot id in the old database.

But this scheme isn't easy to replicate for the new spots, because:

simison commented 7 years ago

It's probably possible to hook to it on pre save, get latest page id+1 and store that instead of whatever else that is sent to the API.

On 18 Dec 2016 02:22, "Olexandr Melnyk" notifications@github.com wrote:

In the migration script, I'm using eg. Spot 123, where 123 is the spot id in the old database.

But this scheme isn't easy to replicate for the new spots, because:

  • not possible to know the page_id before it gets saved.
  • old spot id != new page_id

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/Hitchwiki/hitchwiki/issues/125#issuecomment-267795659, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFUgNylpyWoaj8eFgb-WR8p1CQ-DT8Hks5rJHzdgaJpZM4LMaAP .