close
Warning:
BrowserModule failed with OperationalError: database is locked
- Timestamp:
-
08/22/12 05:07:38 (10 years ago)
- Author:
-
James O'Neill
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v30
|
v31
|
|
13 | 13 | A single model for holding information about the search query and the parameters that are saved by the user. This will be in `/modules/eden/pr.py` as a component of `pr_entity`. |
14 | 14 | |
15 | | ==== Saved Search ==== |
16 | 15 | name:: |
17 | 16 | Name of the saved search as specified by the user. |
… |
… |
|
28 | 27 | last_executed:: |
29 | 28 | The date and time the search was last executed by the subscription method. Set to match `modified_on` when record is first created. |
30 | | |
31 | | ==== Public Saved Searches ==== |
32 | | saved_search:: |
33 | | The saved search to make public. |
34 | | |
| 29 | public:: |
| 30 | Is this saved search viewable to everyone? This should trigger an authorisation process. Boolean, default is `False`. |
35 | 31 | |
36 | 32 | === Views === |
… |
… |
|
42 | 38 | Each person entity has a component for saved searches. This page will list all searches saved for this person entity, displaying the name of the search (as defined by the user when it was saved) and the query parameters. |
43 | 39 | |
44 | | (The any/all option will require special extraction) |
| 40 | Given the following search query string |
45 | 41 | |
46 | | Query parameters will be displayed as human-readable definition lists, e.g.: |
47 | | Page:: |
48 | | Search Organisations (?) |
49 | | Search:: |
50 | | search strings |
51 | | Type:: |
52 | | Any of |
53 | | * Red Cross / Red Crescent |
54 | | Sector:: |
55 | | Any of |
56 | | * DRR |
57 | | * Food Security |
58 | | Home Country:: |
59 | | Any of |
60 | | * New Zealand |
| 42 | {{{ |
| 43 | org_search_text_advanced=red+cross&org_search_type=3&org_search_sector_filter=any&org_search_sector=3&org_search_sector=2&org_search_home_country=NZ |
| 44 | }}} |
| 45 | |
| 46 | The user should see |
| 47 | |
| 48 | {{{ |
| 49 | Search=red cross AND Type=Red Cross / Red Crescent AND Sector=DRR,Food Security AND Home Country=New Zealand |
| 50 | }}} |
| 51 | |
| 52 | Any field that has no matching representation should be omitted. |
61 | 53 | |
62 | 54 | The user will have three options for each search record: |
… |
… |
|
76 | 68 | 1. Records with a `modified_on` value greater than `last_executed` are returned. |
77 | 69 | 1. `last_executed` field updated to when the request was made. |
78 | | 1. If the pr_entity is a group, fetch the appropriate contact details from each member. Recursively? |
79 | 70 | 1. Format the response for special media, e.g., Twitter, SMS. |
80 | 71 | |
… |
… |
|
83 | 74 | * Implement representation functions for query string |
84 | 75 | * Implement or update controllers |
| 76 | * `/msg/search_notifications/` to be called via cron, first argument is the frequency. |
| 77 | * Records with a `modified_on` value greater than `last_executed` are returned. |
| 78 | * Expand `/msg/search_notifications/` to notify all people within a pr_group by fetching the relevant contact details from all members. |
| 79 | * Add formatters/codecs to format the response for Twitter, SMS, etc. |
85 | 80 | * Extend OAuth implementation for Twitter and Facebook to allow posting to users account. |
86 | 81 | |
… |
… |
|
89 | 84 | * Save a search after performing a search with filters. |
90 | 85 | * Attempt to save a search with empty name; must fail. |
| 86 | * Delete a saved search. |
91 | 87 | * Edit and save a saved search. |
92 | 88 | * Executing a search from the saved search list page. |
93 | | * Sending the notification email |
| 89 | * Send notification email. |