Commit graph

1378 commits

Author SHA1 Message Date
Andrew Cantino
eae83df68c Merge pull request from albertsun/feature/twilio-receive-texts
Twilio receive text message agent
2016-04-19 19:55:01 -07:00
Albert Sun
4061f6ef56 remove unneeded comment 2016-04-19 09:34:39 -05:00
Dominik Sander
708961ca40 Merge pull request from dsander/fix-job-duplication
Do not run/enqueue event propagation when a AgentPropagateJob is already enqueued
2016-04-19 09:51:43 +02:00
Matt O'Gorman
fa338a981f Update mqtt_agent.rb 2016-04-18 22:33:55 -04:00
Matt O'Gorman
ecfc89e4d7 this solves mqtt publishing bug
 bug  fix
2016-04-18 22:04:13 -04:00
Albert Sun
29d4691781 An agent for creating events from text messages received from Twilio
don't need securerandom

don't assume ENV['DOMAIN'] exists

update TwilioReceiveTextAgent to use new receive_web_request method signature
2016-04-17 16:38:29 -04:00
Dominik Sander
73bcd927e3 Do not run/enqueue event propagation when a AgentPropagateJob is already enqueued
Fixes the creation of duplicated events caused by Agent.receive! running multiple times concurrently.
2016-04-17 17:15:50 +02:00
Andrew Cantino
4140fa62f9 Merge pull request from brianpetro/master
replace delayed_job queue methods with ActiveJob counterparts
2016-04-15 21:16:01 -07:00
Andrew Cantino
ee504ba067 Merge pull request from albertsun/feature/request-headers-in-web-request
Pass request headers to receive_web_request
2016-04-15 20:55:57 -07:00
Albert Sun
6a9ad21f13 format.to_s based on @cantino review 2016-04-13 16:35:52 -04:00
Judy Ngai
2c412ce56f bug fix jobs controller 2016-04-13 12:28:30 -04:00
Albert Sun
5da40533c6 modify receive_web_request to take either 1 or 3 arguments 2016-04-13 11:19:19 -04:00
Andrew Cantino
35bbd2a492 Merge pull request from Jngai/queuedjobpatch
retry queued job patch
2016-04-12 21:07:42 -07:00
Judy Ngai
d8df930da0 retry queued job patch
quick rewording

changed glyphicon

skip failed jobs locked at and using update all

spec ready as well

rm without protection modify spec

rm unnecessary lines

work on delayed job feature

fixed render json

switched from ok to success

revert render json change for other methods

checking in work

test passed

reverting render and saving a line of code

add back sign in an user

run this on github

altered format.json

rm comment

prevent ajax error head no content
2016-04-12 11:04:10 -04:00
Brian Petro
b941f740e5 replace delayed_job queue methods with ActiveJob counterparts 2016-04-12 09:49:49 -04:00
Akinori MUSHA
4280bdc5e0 Merge pull request from cantino/post_agent_downcase_response_headers
Downcase header names in Events that PostAgent emits
2016-04-12 16:31:04 +09:00
Akinori MUSHA
b095317e4c Add an option event_headers_style to PostAgent
It is defaulted to `capitalized`, normalizing emitted headers by
capitalizing the names so downstream agents don't need to bother with
the letter cases.

Previously, the style of header names in an emitted event would vary
depending on the server and the backend HTTP library.  Most notably, the
`net_http` backend downcases header names whereas other backends do not.

For backward compatibility, preexisting PostAgents are automatically
configured to have `event_headers_style` set to `raw` via migration.
2016-04-12 16:08:19 +09:00
Albert Sun
a4e01126d1 use the simpler version of receive_web_request for data_output and user_location agents 2016-04-11 18:16:24 -04:00
Albert Sun
9ddb4e97de receive_web_request can also now receive the ActionDispatch request object 2016-04-11 18:16:24 -04:00
Albert Sun
758573f522 convert Agents' receive_web_request to have headers optional 2016-04-11 18:16:24 -04:00
Albert Sun
58f6307e2c Pass request headers through to agents that implement receive_web_request 2016-04-11 18:16:24 -04:00
Dominik Sander
15622e2c7e Merge pull request from omniscopeio/onboarding
Sets the new user up with an example set of agents
2016-04-11 09:28:56 +02:00
Will Read
98f50de06b Sets the new user up with an example set of agents
- gives them a place to start from
- leverages existing code to import scenarios
- adds test coverage to seeds to ensure sees can run multiple times against the same db as is the case for Docker
- adds env variable to set if importing is turned on for new user
- adds env variable to point to a custom scenario for new users
2016-04-10 16:03:21 -07:00
Albert Sun
97d7c799bb sms.messages is being deprecated from twilio 2016-04-08 16:59:04 -04:00
Judy Ngai
697167b15a no implicit conversion of nil into string 2016-04-05 14:46:43 -04:00
Akinori MUSHA
90cd771c5a Merge pull request from cantino/simplify_log_format
Simplify the log format for Dry Run
2016-04-05 20:44:30 +09:00
Akinori MUSHA
30e3104553 Avoid potential name collision as suggested by @cantino 2016-04-05 17:11:31 +09:00
Dominik Sander
8bb715382f Merge pull request from dsander/post-agent-raw
PostAgent: allow sending arbitrary string data
2016-04-04 11:48:19 +02:00
Dominik Sander
eecd67c378 PostAgent: allow sending arbitrary string data
When `content_type` contains a MIME type and `payload` is not a Hash the string in `payload` will be send as the HTTP
body and `content_type` is send as the `Content-Type` header.

 
2016-04-04 10:41:39 +02:00
Tom König
d4daf356dd escape the otherwise omitted auth_token within the getUpdates address 2016-04-01 08:57:28 +02:00
Andrew Cantino
85d901b403 Merge pull request from tomknig/telegram_agent
add telegram agent
2016-03-30 19:35:55 -07:00
Tom König
2995029890 Minor refactoring regarding feedback of @cantino:
- minor improvements of the description
- use HTTMultiParty directly, instead of including it
- ensure that tempfiles are closed and unlinked
2016-03-30 09:28:05 +02:00
Andrew Cantino
2a9ff37c08 Minor whitespace 2016-03-29 21:30:32 -07:00
Andrew Cantino
6c63d63373 Fix 2016-03-29 21:30:26 -07:00
Andrew Cantino
e216686cf8 Merge branch 'master' of github.com:cantino/huginn 2016-03-29 21:25:45 -07:00
Andrew Cantino
cc92181745 Merge pull request from thiagotalma/agent-menu
Menu actions on more screens
2016-03-29 21:25:39 -07:00
Andrew Cantino
abbc04daa0 Minor grammar 2016-03-29 21:20:45 -07:00
Andrew Cantino
99e709f2b0 Merge pull request from Jngai/flightapi
added round trip option to google flight agent
2016-03-29 21:18:39 -07:00
Andrew Cantino
b156e525b3 Merge pull request from thiagotalma/clone-fix-scenario
Fix missing scenario clone
2016-03-29 21:13:15 -07:00
Judy Ngai
519ce8853b grammar change and changed spec accordingly 2016-03-29 10:28:51 -04:00
Akinori MUSHA
cb6f77f858 Simplify the log format for Dry Run
- Omit the severity initial and progname
- Show the elapsed time in HH:MM:SS instead of full date-time
2016-03-29 18:50:23 +09:00
Akinori MUSHA
a0f886690d Set the default focus on the Dry Run button 2016-03-29 18:42:41 +09:00
Tom König
c54b68ddff remove dependency to telegram client; migrate the according code to httmultiparty 2016-03-29 08:48:48 +02:00
Andrew Cantino
e92258bf05 Merge pull request from thiagotalma/source-colummn
Events - Display the column Sources only when show all
2016-03-28 22:01:16 -07:00
Judy Ngai
d465cbffb5 added round trip option to google flight agent 2016-03-28 15:24:28 -04:00
Thiago Talma
0556374bcd Indent with 2 spaces 2016-03-28 09:23:39 -03:00
Tom König
adc1dee4fb implement basic telegram agent 2016-03-27 15:56:31 +02:00
Thiago Talma
c668e28f49 Fix missing scenario clone 2016-03-27 01:44:18 -03:00
Andrew Cantino
d13edc2b53 Merge pull request from thiagotalma/dry-tabs
Show Dry Run Result with tabs
2016-03-26 20:08:04 -07:00
Thiago Talma
5c9b8b7f27 Show Sources column only when sowing all events 2016-03-27 00:03:04 -03:00