Commit graph

1345 commits

Author SHA1 Message Date
Dominik Sander
96537fcd3a Add agent role icons in agent tables 2016-05-31 12:35:15 +02:00
Dominik Sander
af1c830d7f Ensure to only send supported agent connections
When switching between Agent types in the in the new Agent form we need to clear the select fields values (targets,
receivers, control targets) when the current Agent does not support the respective method.
2016-05-12 10:03:18 +02:00
Dominik Sander
53d4559f6e Improve agent and scenario forms
Allow to configure agent event target
Make select2 agent tags clickable
2016-05-12 09:15:49 +02:00
George Opritescu
ad4a15d6da Added button to toggle visibility of disabled agents (#1464)
Added button to toggle visibility of disabled agents

* Moved index code to separate file

* Added cookie to allow toggling visibility of disabled agents

* Filter disabled agents based on cookie

* Removed js and use correct cookie name

* CR changes
2016-05-10 22:52:30 +02:00
Dominik Sander
74d8ab9de0 Merge pull request #1492 from dsander/twitter-api-version
Use version 1.1 of twitter stream API endpoint
2016-05-09 23:39:39 +02:00
Dominik Sander
104dc29169 Use version 1.1 of twitter stream API endpoint
The v1 endpoint was discontinued at the end of april.

 #1490
2016-05-09 23:16:34 +02:00
Dominik Sander
679874b7f4 Merge pull request #1488 from International/typofix
Use localhost instead of locahost
2016-05-08 21:55:47 +02:00
George Opritescu
d61b96f915 Use localhost instead of locahost 2016-05-08 20:55:01 +03:00
George Opritescu
372db7a3d0 Fixed some n+1 queries 2016-05-07 17:35:26 +03:00
Irfan Charania
50aff67a8a Make itunes compatible optional (#1411)
* Make itunes compatible optional

in generated xml

* Add tests + migration

* Description change

as per comment
2016-04-30 13:44:09 -07:00
Dominik Sander
f1ecae6deb Fix internal jobs beeing shown as deleted
Show more information about previosly labeled "(internal)" jobs that are now available due to the switch to ActiveJob.

Fixes #1460
2016-04-29 16:58:45 +02:00
Jack Wilson
414743556f Twitter retweet agent (#1181)
* Agent to retweet all received tweet events

* Cache twitter rest client

* Update description, remove unused local

* Makes context strings more readable, style consistency

* to_h is not implemented in ruby 2.0

* In error case, include all agent_ids and event_ids

* Adds capability to favorite tweets

This restructures the Agent slightly to allow for retweeting and
favoriting. It is possible to do both at the same time.

- Renames the Agent from TwitterRetweetAgent
to TwitterActionAgent.
- Specs refactored
2016-04-25 20:16:37 -07:00
Enfop
9d2626dd4f validate agent option json on form submit (#1434)
* validate agent option json on form submit

check for textarea#agent_options after form submit

* added some specs

trailing new lines

fix specs
2016-04-25 20:04:06 -07:00
Dominik Sander
ea95a9d6c3 Merge pull request #1446 from kreuzwerker/feature/scenario-deletion
Allow user to delete the scenarios agents with it
2016-04-24 10:28:51 +02:00
Dominik Sander
98fae41421 Allow user to delete the scenarios agents with it 2016-04-23 22:18:02 +02:00
Andrew Cantino
491dace4a0 Merge pull request #1394 from Jngai/uploadcredentialsfeature
new credentials uploading feature
2016-04-21 20:13:47 -07:00
Judy Ngai
26e776db4d new credentials uploading feature
rm req json, not saving file, styled button a bit

skinny controller fat model

minor spacing mistake

build user credentials fixed mass assignment issue

undo mass assignment variables

spec in progress

spec

fixed exception issue

json fixtures

slight change to test

added test to assert credentials created for current user only

added tests to satisfy requirements

refined import method

added status 422

saving two lines of code

one more test

fixed small bug, words changed

minor change in test

styled file upload button

deleted unnecessary spec

switched to modal format

made modal more presentable

minor change to modal

fix indentation issue

ok nested correctly within form tag
2016-04-21 07:16:28 -04:00
Andrew Cantino
eae83df68c Merge pull request #1418 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 #1432 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
#1274 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 #1422 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 #1415 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 #1423 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 #1340 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 #1404 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 #1386 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 #1402 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.

 #1361
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 #1381 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