Closed Bug 874269 Opened 12 years ago Closed 12 years ago

Allow filtering of Events using GET query-params.

Categories

(Webmaker Graveyard :: Events, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: hike, Assigned: hike)

References

Details

(Whiteboard: s=2013w22)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.63 Safari/537.31
Currently you can list Events via GET /events.json or GET /events with Accept: application/json header. The relevant code is in /app/controllers/events_controller.js (https://github.com/AmoebaConsulting/webmaker.org-compound/blob/master/app/controllers/events_controller.js).
GET /events?<field>=<val>&... should allow the user to filter the map display or json output (depending on Accept header or .json) on a subset of the Event-model's fields.
Assignee: nobody → hike
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Blocks: 871878
Whiteboard: s=2013w21
* Should the "Where" be required when a user fills out the "When" field? It doesn't seem to make a lot of sense showing events on a map filtered to a date since a map shows location. ** On that point, how does a user enter a "When" date? Should we use a calendar dropdown? Can they filter by times as well? I know the old mockup had a calendar dropdown, so we could use that convention of expanding the "When" box to show both a start time and end time.
(In reply to cbarton from comment #3) > * Should the "Where" be required when a user fills out the "When" field? It > doesn't seem to make a lot of sense showing events on a map filtered to a > date since a map shows location. The "where" will always be defined by the region indicated by the map, so I guess the answer is "yes"? > ** On that point, how does a user enter a "When" date? Should we use a > calendar dropdown? Can they filter by times as well? I know the old mockup > had a calendar dropdown, so we could use that convention of expanding the > "When" box to show both a start time and end time. I think a date-based filter is all we need.
Whiteboard: s=2013w21 → s=2013w22
The 'Where?' filter has been implemented on the client-side. Eventually we might want to allow GET query filtering for performance reasons, but I don't think it's a priority right now.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.