[openstreetmap/openstreetmap-website] Microcosms microcosms (PR #3683)
Brian DeRocher
notifications at github.com
Sat Sep 24 14:14:06 UTC 2022
> Andy's point about the friendly ids is that the normal pattern is to include the numeric id as well, so something like `.../9999/friendly-slug` so that the routing can just ignore the text part and use the number - that also means people can change the textual name as much as they like without breaking URLs.
I've haven't seen that pattern (including ids). WSJ, NYT, The Guardian, CNN, AP don't include ids. When Using FriendlyId, the resource maintains it's original id attribute and is still accessible at the `GET /resource/:id route`. When using the slug, the developers use code like this to lookup objects.
```ruby
Article.friendly.find(params[:id])
```
> As to the question of organisers - what is the point of creating the table one way only to change it five minutes later?
Without an owner for the microcosm, there's no access control for edit and update. I wanted to include those CRUD features in this PR. Stage 2 adds membership which supports multiple organizers.
Since the PR was broken up into 4 stages, I'm not sure what the plan is. Here's my suggestion. I will branch (stage 2) from this branch can call it "microcosm - membership". After approval, we merge membership into this branch.
After stage 2, we can merge into master or wait for stage 3 (events and event organizers) and stage 4 (event attendance and rsvp). I leave that up to you. Membership alone does add some value, like seeing changesets of the area (which prompt for review), seeing traces, notes, and diary entries of the area. Members can see other members and add them as friends. And maybe even a message blast from the organizer to members.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3683#issuecomment-1256978278
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/3683/c1256978278 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220924/9c156aeb/attachment.htm>
More information about the rails-dev
mailing list