Open symroe opened 7 years ago
A hack for this would be to add a new multi-line field that allows a URL per line. It's not ideal, but it would allow for recording the information on people.
Niiice â this ties into my dream version of candidates*, which is that a person's page has any number of lines for dumping URLs into â by wombles (or in future, the Google-scraper/machine-learning thing) â and then the machines auto-sort them into 'Social, News, Bio, Homepage' etc, with womble help if not understood, in order to give some kind of structure...
I suppose this might just end up replicating Google...
*Not just mine; I think this has been discussed online somewhere, but not sure if there's an issue for it...
I think there are probably a couple of intermediate steps between "add ability to store an array of N arbitrary URLs against a candidate" and "robots automatically discover and categorise candidate data" :robot:
Yeah, but that's what @tfgg is for
On 10 May 2017 at 17:04, chris48s notifications@github.com wrote:
I think there are probably a couple of intermediate steps between "add ability to store an array of N arbitrary URLs against a candidate" and "robots automatically discover and categorise candidate data" đ€
â You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/DemocracyClub/yournextrepresentative/issues/198#issuecomment-300530910, or mute the thread https://github.com/notifications/unsubscribe-auth/AHuKMSiEfG0rWgX1WroGgUUgPmLjCX-fks5r4eABgaJpZM4NWzEb .
Here's some more detail about what we're currently doing:
We currently store the following information for people. This information is stored on a mixture of the Person
model or GenericForeignKeys to popolo.Link
, popolo.Identifier
, popolo.ContactDetail
. All of these allow any value as a note
, but in reality we only use a fixed list.
Fields in popolo.Link
:
Fields in popolo.ContactDetail
:
Fields in popolo.Identifier
:
Fields on Person
directly:
Statements I think are true:
I suggest we have a PersonLinks
model with the following:
Person
(FK)url
site_identifier
(for storing things like internal user ID â see Twitter)link_type
(a single tag for this site âtwitterâ, âlinkedinâ, âhomepageâ)extract
(for storing text from the site thatâs useful for embedding. Twitter profiles, wikipedia summaries, Facebook bio)Trying to define a âlinkâ as different to a âcontact detailâ seems odd, when Twitter or Facebook are clearly both. Email is a special case that should be on the person model (ignoring the debate about what data to store on candidacies).
Consumers of the data (including WCIVF) can decide how best to display the data.
Our CRM does something that looks like this:
Are there any other nice patterns we should look at?
Work here will also include something that addresses https://github.com/DemocracyClub/yournextrepresentative/issues/238
Some notes on how this might happen, in a rough order:
I see the top 3 as different but required prep work. I think I'll start there, and add more to this comment as I work through them and find more things.
a few TODOs on the data entry side:
value_type
is "email", chuk it through https://docs.djangoproject.com/en/1.11/ref/validators/#emailvalidator ) etc
It would be nice to have the ability to add
n
links to a person's profile.This is because there is a low chance of us being able to predict the URLs that might be interesting to others about a person.
For example, this article is a great profile of a candidate, but there's no obvious place to link to it:
https://www.theguardian.com/politics/shortcuts/2017/mar/13/mayor-northern-powerhouse-womens-equality-party-tabitha-morton-liverpool