Commit graph

130 commits

Author SHA1 Message Date
Andrew Cantino
6a276e0d76 add new JSONSerializedField Concern and better specs around handling of json string assignment to memory and options 2013-12-29 22:28:10 -08:00
Andrew Cantino
d4703f7acd Merge remote-tracking branch 'origin/optimizations' into do_not_symbolize 2013-12-29 22:26:52 -08:00
Andrew Cantino
73e8406d4f Merge branch 'master' into do_not_symbolize
Conflicts:
	app/models/agents/human_task_agent.rb
	spec/models/agents/human_task_agent_spec.rb
2013-12-29 12:45:45 -08:00
Andrew Cantino
5461ec3d2f Merge pull request #98 from cantino/human_task_agent_makes_polls
HumanTaskAgent can now validate answers with a poll
2013-12-29 12:07:50 -08:00
Andrew Cantino
00b7423dd7 add cached columns for event creation and last errors, reducing the number of SQL queries 2013-12-26 20:15:29 -05:00
Andrew Cantino
bca562513b Only load the fields we need for the autocomplete. 2013-12-26 18:49:15 -05:00
Andrew Cantino
ba0967e449 puts 2013-12-25 00:08:39 -05:00
Andrew Cantino
a408ae48ea globally avoid using symbols since we're moving to json storage 2013-12-24 17:37:26 -05:00
Andrew Cantino
77882908c4 in order to avoid leaking memory, remove all symbolization 2013-12-22 15:36:29 -08:00
j-wilkins
dff2bc68f4 configurable webhook payload , update description, improve tests 2013-12-20 22:41:54 -10:00
j-wilkins
66054f92c0 a webhook agent to create events from webhooks. 2013-12-18 21:03:34 -10:00
Albert Sun
1f7dee3c72 renaming EventEmailAgent to EmailAgent 2013-12-11 19:28:27 -05:00
Albert Sun
3ea7b322ff pull some email logic into an EmailConcern 2013-12-11 18:22:27 -05:00
Albert Sun
fa1fd0b04d adding an event_email_agent which immediately sends emails instead of queueing them 2013-12-11 15:47:30 -05:00
Albert Sun
53bd992279 have digest email log out event ids 2013-12-11 15:46:02 -05:00
Andrew Cantino
9157a2a190 Merge pull request #106 from cantino/refactor_peak_detecter
Update PeakDetectorAgent
2013-11-23 21:20:30 -08:00
Andrew Cantino
fa492b75c8 Merge pull request #104 from cantino/transactionally_schedule
Add better event handling (expiration) and transactions
2013-11-23 21:17:59 -08:00
Andrew Cantino
39ffa2fcee Merge pull request #103 from cantino/refactor_twitter_stream
Cleanup TwitterStreamAgent and add specs
2013-11-23 21:17:24 -08:00
Albert Sun
f0741359a6 DRYed up website_agent code a bit 2013-11-22 18:14:55 -05:00
Albert Sun
43194c3c1b in website agent with type json, allow extract to be blank; in which case, the entire json object will be stored as the payload 2013-11-22 13:19:00 -05:00
Andrew Cantino
7526f01ba4 Update PeakDetectorAgent options and change it so that it detects peaks on the rise instead of fall. 2013-11-06 23:38:56 -08:00
Andrew Cantino
a2486b6785 allow filter aliases (groups) 2013-11-05 23:57:08 -08:00
Andrew Cantino
484e1210c3 add expires_at as attr_accessible 2013-11-05 20:54:12 -08:00
Andrew Cantino
86bcc465a4 allow events to expire; fix spec 2013-11-05 00:31:58 -08:00
Andrew Cantino
f32c6f0f7c add a transaction around event receiving 2013-11-04 22:28:32 -08:00
Andrew Cantino
0dcee80cba use TwitterConcern in the twitter_stream_agent; cleanup unused memory; add specs 2013-11-04 21:03:13 -08:00
Albert Sun
bf54542242 make TwitterUserAgent and TwitterPublishAgent share a TwitterConcern 2013-10-26 17:32:06 -04:00
Albert Sun
88043dc348 starting a concerns pattern with a WeiboConern. concerns can encapsulate common functionality between related agents 2013-10-26 17:17:02 -04:00
Andrew Cantino
b32cef09c9 doc 2013-10-05 11:33:33 -07:00
Andrew Cantino
0eb956e110 HumanTaskAgent can now accept combination_mode and poll_options which are used to generate a poll from the HITs answers. The poll asks additional Mechanical Turk users to rate the responses, and then the best one is returned. This allows for an additional step of validation on user generated content / data. 2013-10-04 22:24:21 -07:00
Andrew Cantino
403db15b35 Fix a bug where JSON was lost when saving invalid options 2013-09-30 21:42:20 -07:00
Andrew Cantino
9fb53c4f64 silence a log 2013-09-07 21:03:21 -07:00
Andrew Cantino
22e950214b cleanup HITs when they have been reviewed 2013-09-07 20:52:57 -07:00
Andrew Cantino
c9b4d1b1f0 allow the HITs lifetime to be set 2013-09-07 20:17:30 -07:00
Andrew Cantino
82156f3c75 move RTurk setup to an initializer 2013-09-07 18:03:26 -07:00
Andrew Cantino
773a612dee Allow Events to be re-emitted for testing. 2013-09-07 13:53:58 -07:00
Andrew Cantino
31cdf610ac Rename max_assignments to assignments; add lots of validations and tests 2013-09-07 13:11:41 -07:00
Andrew Cantino
e24f940ac8 Merge branch 'master' into human_task_agent 2013-09-07 00:51:28 -07:00
Andrew Cantino
3eaa9272b1 Prevent some possible XSS attacks where user input makes its way into JSON and contains </script> tags. 2013-09-07 00:34:51 -07:00
Andrew Cantino
d766eb6cd3 Merge branch 'master' into human_task_agent 2013-09-06 23:57:23 -07:00
Andrew Cantino
8d7dde6fb5 Add a POST endpoint called handle_details_post that Agents' details views can use to send data to the Agent from the UI. Add a new ManualEventAgent that uses the handle_details_post functionality to create simple events on demand for testing / debugging. 2013-09-06 23:46:31 -07:00
JT Zemp
56cbe8bd68 current_user.agents fails if current_user == nil
I didn't want to mess with organization and style too much, so I didn't do a full-on refactor, but this might want to live as an AJAX call, or if not, maybe a helper.
2013-09-06 10:54:25 -07:00
Andrew Cantino
c2fa67dd9b Allow the quick navigation menu to run propagation and show the diagram. 2013-09-03 20:25:54 -07:00
Andrew Cantino
c2990c7c4b Fix HTML email sending 2013-09-03 19:45:15 -07:00
Andrew Cantino
08701a25ac merge 2013-09-02 13:00:54 -07:00
Andrew Cantino
f8ee5e3ec4 merge 2013-09-02 12:44:16 -07:00
Andrew Cantino
03be5fedb0 Merge branch 'master' into annotate_agents_that_do_not_make_events 2013-09-01 19:43:02 -06:00
Andrew Cantino
dddf607692 Add about link 2013-09-01 17:52:16 -06:00
Andrew Cantino
a0484f9153 Update Agent Index to hide impossible fields. 2013-09-01 17:32:25 -06:00
Andrew Cantino
700209155a When an Agent isn't working, the "No" links to either the Agent's details tab, or its Logs tab, depending on if the most recent log is an error. 2013-09-01 17:18:22 -06:00