ActoKids / AD440_W19_CloudPracticum

3 stars 1 forks source link

Creating additional fields for the crawler data #116

Closed MikeJLeon closed 5 years ago

MikeJLeon commented 5 years ago

After getting feedback from Erik I believe we need to add additional required fields to the OFA, SSScraper, and Google. Glance at this - 54332654-6324f980-45dc-11e9-9f88-20136dd491e4

                  <span className="card-title">{event.event_name}</span>
                    <a href={event.event_link}>Event Link</a><hr/>
                    <p>{event.description}</p>
                    <p>Activity Type - {event.activity_type}</p>
                    <p>Location - {event.location_name}, {event.location_address}</p>
                    <p>Dates & Times - {event.start_date_time} to {event.end_date_time}</p>
                    <p>Frequency - {event.frequency}</p>
                    <p>Ages - {event.min_age} to {event.max_age}</p>
                    <p>Price - ${event.cost}</p>
                    <p>Disibilities - {event.disability_types}</p>

@erikNeville btw theres a typo with "Disibilities"

@rberry206 @daonguyen81 @MikeJLeon We need to add the fields that we do not currently have, if we do not have it we will put in "Contact Organizer for Details."

IN ADDITION: Because more fields are better to satisfy as many requirements as possible

"event_id": "string - this is the event id"
"user_name": "string - this is the name of the user that is entering the event"
"event_name": "string - this is the short-name for the event, e.g., Fun with Yoga, Soccer, Art Walk"
"event_link": "string - this is the website for the event(s)"
"activity_type": "enum string - this is an activity type, event title, based on activity filter including: Outdoors & Nature, Music, Art, Museum, Sports, Zoo, Camp, Other for this event"
"description": "string - this is a long description of the event being held"
"org_name": "string - this is the organization name holding the event"
"location_name": "string - this is the name of the location where the event is being held"
"location_address": "string - this is the street address, city, state & zip for the event being held"
"contact_name": "string - this is the contact name for the event"
"contact_phone": "string - this is the event contact's phone number"
"contact_email": "string - this is the event contact's email address"
"start_date_time": "datetime - event date and start time"
"end_date_time": "datetime - event date and end time"
"frequency": "enum string - one time versus recurring (weekly, monthly, etc)"
"cost": "number - this is the cost of the event"
"picture_url": "string - this is the url for the image displayed with the event information"
"min_age": "number - this is the minimum age of the event participant"
"max_age": "number - this is the maximum age of the event participant"
"disability_types": "array string - this is a list of the disability types based on the filters including: Cognitive, Sensory, Vision, Mobility, Hearing, Wheelchair bathrooms, adaptive equipment, etc targeted-available for this event"
"inclusive_event": "boolean - if the event is inclusive or not"
"event_status": "enum string - pending, approved, cancelled, deleted"
"approver": "string - this is the name of the admin that approved the event"
"created_timestamp": "datetime - this is the date/time stamp from when an event record was created"

If we are able to add any of these fields to the crawlers, it would be ideal I believe. Again if anything is missing then we specific "Contact Organizer for Details."

@erikNeville @ActoKids/webui @ActoKids/api @mrvirus9898 let us know if theres anything more in particular we need to worry about.

I will close this issue personally once we are happy with the results.

rberry206 commented 5 years ago

Added fields. You can close when you're done @MikeJLeon .

MikeJLeon commented 5 years ago

Added fields to SSscraper and OFA. @rberry206 I checked dynamo and it looks like you are missing some fields. Also I've modified some of my default values based off the actual fields.

contact_name | contact_phone | location_name | picture_url | user_name

This is what i've noticed is missing. Please review whats on Dynamo for whats needed. If you cant see all columns click the gear symbol when viewing the table. And make sure all columns are shown.

rberry206 commented 5 years ago

Updated.

MikeJLeon commented 5 years ago

Looks like were done with the fields. this is now closed.