theodi / shared

Repo that we use for non-repo-specific stories and other shared stuff.
22 stars 1 forks source link

Authorship assignment #43

Closed Floppy closed 11 years ago

Floppy commented 11 years ago

Extend govuk code to assign authorship and attribution for some content types.

pezholio commented 11 years ago

Do we think this needs to be at the Panopticon level (so, when we set up a piece of content). It's metadata, so I guess yes. Also, does this need to be free text, or pick from a list of users? Do we also need things like a photo? (I guess we could use an email + gravatar for this)

pezholio commented 11 years ago

Looking at what we already have, I think we need bios too.

Floppy commented 11 years ago

I think we'll need a full-on Person model in odi_content_models, and use those for these relations.

pezholio commented 11 years ago

Yeah, I thought we could use the Person model we already have

Floppy commented 11 years ago

That'll let us have contact details, image, bio, and everything. They'll be listed under a node, and eventually we will have content aggregation for a particular author, so I think they need to be first-class objects, probably not completely related to signonotron users.

Oh, also, guest authors are a thing, so there's definitely a need for a proper Person model.

Floppy commented 11 years ago

Oh, is there one already? Shiny.

pezholio commented 11 years ago

Yup, this badboy:

https://github.com/theodi/odi_content_models/blob/master/app/models/person_edition.rb

I'm thinking further down the line (not now), that we could optionally associate a User with a Person, and also create a new Person when a new user is created too.

Floppy commented 11 years ago

Sounds all very sensible. I forgot we had that already, feel free to ignore me completely, spamming up your comment thread.