Git Product home page Git Product logo

foodborne's People

Contributors

cgansen avatar danxoneil avatar srobbin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

foodborne's Issues

Submission and Tweet relationship

Comment on Rails code:

Right now, the Submission model refers to a tweet_id, but does not have a true ActiveRecord relationship. At some point, we'll want to reconcile that.

Set up event tracking and conversion metrics

Events: landing, start form, complete form
Conversion = complete form
An important component of this is to set a tracking code in the URL that is tweeted to the user, so that each has a unique ID.

"not a food poisoning tweet" showing up in foodborne feed

I don't think it's a classifier or mongo issue. I worked with Joe to look at this tweet...

tweet.id_str:"334866148690632704"
RT @ChurrosNRainbws: I have food poisoning &My dad took apples and caramel ( my favorite) and started rubbing it in my face saying "haha look what I got" -.-
by user @Stephanaaayyy

It is labeled as "not a food poisoning tweet" in mongo. If I cut and paste that text into my classifier service, it is also labeled as "not a food poisoning tweet".

Changes to the display of tweets in admin tool

Here are some possible improvements to the /admin screen

-- Make the "Screen name" field of the admin tool, clickable to the user's Twitter page, opening in a new window
-- Display the user's Twitter short bio along with their screen name. This can be a quick piece of info to help us decide whether to tweet at the person
-- Create a view for Replied=Yes
-- Allow for the Bulk action of "Archive" rather than "Delete", so that we can view
-- List count for replies

Change text of "How can we reach you?"

We don't reach anybody, the City does. Should change text to "How can the City reach you?

Also change "To let you know when the City responds, we need your email. No spam, promise."

The City requires an email address for an possible followup.

application error

This seems to happen about 1 out of 5 times that I try to access the admin page.
foodborne_error

Incorrect Stats in "About" Section

Need correction in the sentence from the "About" section (3rd Paragraph, 1st Sentence) to read as follows:

"The CDPH Food Protection Division fielded 1859 complaints in 2013, leading to 174 restaurant investigations for suspected food poisoning per year."

Matching scanned information to Patterns profile

In Patterns, we currently have profiles building for each participant.

(example: https://patterns.smartchicagoapps.org/people/1356)

After an event takes place, we'd like to scan in documents regarding that individual (for example, their particular waiver form for the event) and have that automatically sync up with their Patterns profile (to continue building their profile in our database).

I scanned in a few waivers into Dropbox, but I'm wondering if there's a way to automatically link each document with the appropriate person in Patterns.

Add City, 311, and CDPH Logos to homepage

From our CUTGroup test, testers wanted to see more official representation from the City, 311, and Chicago Department of Public Health on the homepage. We are considering adding those respective logos to the home page under the text. Here is an example image:

image

@RaedMan - Are these the correct logos to use? Can you please provide the correct logos and the appropriate order of those for this page?

Change "How can the City reach you?" language on the form

From CUTGroup test findings, we want to change the language of the form to add more clarity of the process.

Instead of "How can the City reach you?" title, we should potentially use "How can the Chicago Department of Public Health reach you?"

We also want to replace the description text with "We use the City's Open311 system to directly submit your information to make a request about your food poisoning incident. The Chicago Department of Public Health requires some info for a possible follow-up."

Twitter no longer supports REST API V1

Getting the following from Twitter:

{"errors": [{"message": "The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.", "code": 68}]}

I've got v1.1 code, I'll get it up and running ASAP (sometime today).

No food poisoning tweets until then

Add link to Privacy Policy on Form

From our recent CUTGroup test, testers felt more comfortable submitting the form after reading information on the Q&A page and seeing the privacy policy. There should be a link to the privacy policy information at the bottom of the form.

Add stats data to header on homepage

From our CUTGroup test of Foodborne Chicago, testers were interested in seeing a tracker of quantitative data as a way of impact of what this site has done.

We are interested in showing the number of food inspections resulting from Foodborne prominently on the homepage.

@RaedMan - can you provide this data?

No new tweets in about 48 hours

No new tweets since June 4 in the system. This seems to happen every month or so. If it's a classifier issue where everything is being labeled as junk, please let me know.

Pre-populate responses

Create a pulldown menu in the admin tool (http://foodborne.smartchicagoapps.org/admin/tweets/1672/edit,for instance), with the following phrases:

Sorry to hear you're sick. We can help you by clicking on this link to file a report.
Sorry to hear you're ill. The Chicago health department can help.
Sorry to hear you're ill. The City can help by
That doesn't sound good. Let us help you here:
Where did you eat? Please let us know here:
That doesn't sound good. This might help:
Where did you eat? Report it!:

Place this between the "Text" and "Reply" boxes.

While you're at it, please reduce the height of the text fields on this page to better reflect a Twitter-like interface.

Edit Tweet - Foodpoison

Add stats to about page

The same stats displayed at the bottom of our admin page...

Total Tweets Classified: 1896 Tweets out of 11,450,000 Total Tweets (since April 26, 2013)*
Total Tweets Replied To: 249
Total Reports Submitted: 157

If you are feeling super ambitious... maybe a graph of submissions per week over time.

[email protected] isn't working

Not a bug in the app, per se, but we ref this email address in the Q&A and it doesn't work.

I'll work with DXO and Kyla to rectify.

c.

Define project metadata tracking and publishing schema

Researchers may be interested in our project. Let's develop a schema for the exact types of info we want to collect and publish about the system. Here's a start:

-- Number of tweets reviewed
-- Number of tweets classified (i.e. tweets that hit the Admin tool)
-- Number of tweets replied to in Admin tool
-- Number of Twitter users who clicked/ landed/ took action (related to #5)

ensure address is in chicago

We've had a few submissions recently where the restaurant address is not in Chicago. Can we grep for "Chicago" in the address and throw a popup or something if it's not there? I don't think we need to block submission if it's not there, just a warning or something.

Infographic feedback

Need different colors or some way to differentiate the random food poisoning facts from the path representing the foodborne app process.

Tweet graphic: would be nice to have this be more twitter themed. Maybe instead of a text bubble, make it a tweet authoring bubble. Maybe something like this... http://chrisheffer.files.wordpress.com/2012/11/tweet-preview.jpg or the mobile version.

Last line... "feel better since you did a good thing". Maybe include something about helping to prevent the spread of food borne diseases. "feel better that your report will help the spread of food borne diseases" or something. I'm not a good author of this kinda stuff.

Here's some more edits in MS Paint format... http://i.imgur.com/5MQ11eX.jpg Basically, like Raed said, make the arrows bigger and the other things I've mentioned above.

This is looking good.

Create content for Tech Q + A Question

Please answer this question for insertion into the website's Q & A section. I provided some answers to get the ball rolling.

I’m interested in the technology behind this thing. Can you tell me more?
How do you determine that a tweet came from Chicago?

There’s a number of ways we’ve trained the algorithm to think that a tweet came from Chicago:

The user gave “Chicago” as their location
The tweet was geocoded to a place in Chicago
etc, etc, etc.

Add Twitter Card Support

In order to get more information about Foodborne when we send outbound tweets, we can use Twitter Cards in order to display an image, text, and a link to the form.

The way the Twitter Cards work is that we add metadata to the site's header, then submit the site for validation to Twitter. We'd probably just need the Summary Card (https://dev.twitter.com/docs/cards/types/summary-card) which is what most of the news websites use.

The example text is here:

<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@nytimes">
<meta name="twitter:creator" content="@SarahMaslinNir">
<meta name="twitter:title" content="Parade of Fans for Houston’s Funeral">
<meta name="twitter:description" content="NEWARK - The guest list and parade of limousines with celebrities emerging from them seemed more suited to a red carpet event in Hollywood or New York than than a gritty stretch of Sussex Avenue near the former site of the James M. Baxter Terrace public housing project here.">
<meta name="twitter:image" content="http://graphics8.nytimes.com/images/2012/02/19/us/19whitney-span/19whitney-span-article.jpg"> 

I imagine we could set up our site like the following:

<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@foodbornechi">
<meta name="twitter:creator" content="@foodbornechi">
<meta name="twitter:title" content="Foodborne Chicago">
<meta name="twitter:description" content="If you think you have food poisoning in Chicago, please complete this form. The info will be sent through the Chicago 311 service to the Chicago Department of Public Health so they can take any necessary action including sending a food inspector to that restaurant.">
<meta name="twitter:image" content="https://foodborne.smartchicagoapps.org/assets/logo-ccaea6464d2721e73bde30306ca959a1.png">

If we place that in the header, we should be able to validate it and get it going.

"press" page on the website

Can we include a page on the website with recent press articles relating to the project and include things like Chris's technical blog post, Dan's WBEZ interview, city of Chicago press releases, etc.?

Change header information to include Chicago Department of Public Health

From our CUTGroup test, testers wanted to see more official city representation (logos and text) to show that their information would be going to the Chicago Department of Public Health. We want to include the text "Report food poisoning to the Chicago Department of Public Health" in the header. An example image is below:

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.