Commit graph

47 commits

Author SHA1 Message Date
Gergely Brautigam
073ae10332
Removing obsolete test and environment property. 2017-05-29 20:48:50 +02:00
Dominik Sander
811f9c27d1 Allow specifing Agent gem in the Gemfile 2016-06-20 10:37:33 +02:00
Judy Ngai
1abcd947f5 Uploadicons (#1427)
* checking in work for glyph upload

* checking in icon selections

* added more icon options

* work on upload icon

* fix issue

* switched to options for select

* removed wrapper and removed commment

* add migration to support icon

* remove right floating

* rm params session add it to model

* rebuilt the menu

* rm extra div

* converted js to coffee

* quick change in indentation

* using the view helper

* submitting icons and loading into form

* added icon to both scenario export and import

* added icon to spec

* low level caching the icons

* tentative work in making a new coffee class

* renamed js page

* switched to cache in memory and worked on coffee class

* made pathsmatching compatible for all scenarios

* switched to rails root

* fixed all rubocop stylings

* fixed line is too long styling

* rm private method definition

* patch to avoid having no icon

* blank or nil?

* reordering the lines
2016-06-15 23:52:50 -07:00
Pablo Carranza
74a3c88608 Add time tracking to http status agent (#1517)
* Add time tracking to http status agent

* Replace time tracking to monotonic

* Add tests for time tracker
2016-05-29 19:13:40 -04:00
Dominik Sander
ee1ebea830 Allow to configure various devise settings in .env 2016-03-17 20:47:45 +01:00
Dominik Sander
a958b15f18 Add no_bulk_receive! option to ensure each event is processed individually
no_bulk_receive! ensures that agents which connect to an external only receive
one event per job this ensures that failed and retried jobs do not run twice
for the same event.

Fixes #1226
2016-02-07 23:37:43 +01:00
eric
d233946feb Export Agents in GUID order so that the result is amenable to version control tracking 2015-12-07 10:30:14 -07:00
Andrew Cantino
ff05700458 Prevent buildup of threads in specs 2015-11-19 21:39:03 -08:00
Dustin Miller
c5766d2086 Update for rspec3 rails_helpers config, fix shoulda matchers 2015-10-20 18:50:52 -05:00
Dominik Sander
0f64e4e6b9 Add AgentRunner and LongRunnable to support long running agents
This changes HuginnScheduler and TwitterStream to use the new
AgentRunner

TwitterStream now uses the `twitter` gem to access the streaming API
which removes the `eventmachine` dependency (in production).

Make JabberAgent FormConfigurable and LongRunnable

Expect LongRunnable::Worker#run to be overridden
2015-08-23 16:58:44 +02:00
Akinori MUSHA
8c2b11a567 Make TupleSorter#sort! never fail
If comparison of two objects fails, they are compared as strings.
2015-07-30 02:06:56 +09:00
Akinori MUSHA
06554eaf31 Implement Utils.sort_tuples! for user-defined sorting 2015-07-22 23:13:40 +09:00
Andrew Cantino
9ad49fbf03 Merge remote-tracking branch 'origin/master' into scenarios_contain_control_links 2015-07-20 20:50:38 -07:00
Andrew Cantino
e0fe5aafb4 scenarios can contain control links 2015-07-18 23:07:50 -04:00
Andrew Cantino
b31a0ec3e7 fix specs and add support for translation in Scenario exports 2015-05-25 11:38:51 -07:00
Chris Eidhof
ed778fcfe0 Added specs for the latlng property 2014-11-06 09:18:08 +01:00
Dominik Sander
842528ab3e Fixes postgres and DST related spec issues 2014-11-02 01:03:53 +01:00
Akinori MUSHA
2d790b54ea Make action a mandatory option in preparation for making it interpolated. 2014-10-09 20:08:59 +09:00
Akinori MUSHA
5031cbbbac Migrate to RSpec's new expect syntax using Transpec.
We set `config.infer_spec_type_from_file_location!`, so the command I
ran is `transpec --no-explicit-spec-type`.
2014-10-03 16:16:15 +09:00
Akinori MUSHA
be4dc34f8e Apply a correct fix for the flonum issue. 2014-09-21 23:02:39 +09:00
Akinori MUSHA
dd507e3cbf Make Event's location accessible from Liquid templates. 2014-09-19 21:57:45 +09:00
Akinori MUSHA
edcd80f228 OK, Ruby 2.1 has introduced flonum, so do not expect identity. 2014-09-19 21:01:03 +09:00
Akinori MUSHA
b25142e793 Introduce a Location class. 2014-09-19 19:06:55 +09:00
Akinori MUSHA
10ce9d598b Merge remote-tracking branch 'knu/scheduler_agent'
Conflicts:
	db/schema.rb
	spec/lib/huginn_scheduler_spec.rb
2014-09-08 17:03:14 +09:00
Akinori MUSHA
51f8c8b805 Add some specs for our Rufus::Scheduler extension. 2014-09-03 13:20:18 +09:00
Dominik Sander
250a244de5 Added specs for the HuginnScheduler 2014-09-01 00:41:53 +02:00
Guilherme J. Tramontina
8b8fdb5f56 Export/import scenario tag colors. 2014-08-20 03:03:29 -03:00
Andrew Cantino
dfa71d1f45 upgrade RSpec 2014-08-08 19:59:19 -07:00
Andrew Cantino
ebe302492d fix some more XPaths 2014-07-30 14:05:40 -07:00
Andrew Cantino
827b62356a the import process now allows you to merge your agents with the incoming ones; next step is better UI 2014-06-08 23:37:15 -07:00
Andrew Cantino
64564eb120 Importing of Scenarios now works, creating any needed Agents by global guid 2014-06-04 22:26:56 -07:00
Andrew Cantino
663250227d allow exporting of a set of Agents with their links from a Scenario; Scenario guid is now generated and copied to export, as well as a source link when public 2014-05-31 23:36:33 -07:00
Dominik Sander
56324c87e2 Migrated HumanTask, Trigger and PeakDetectorAgent to Liquid
Made LiquidInterpolatable#interpolate_options recursive
Really interpolate the `message` options attribute of the PeakDetectorAgent
Merged all previous liquid migrations into one new migration
Added support for the `Agent#make_message` format to the liquid migrator
2014-05-06 10:50:20 +02:00
Dominik Sander
da137aaeb8 Made migration irreversable, support '$variable' syntax 2014-05-05 22:00:55 +02:00
Dominik Sander
28931f2126 Migrated DataOutputAgent to use liquid 2014-05-01 21:25:56 +02:00
Dominik Sander
b4b9939b7d LiquidMigrator is checking for complex JSONPaths
If a complex JSONPath like '$.text[*]' is found the migration will
fail with an exception and keep the database intact
2014-05-01 17:32:45 +02:00
Dominik Sander
d9bd6a991b Added liquid templating and migrated first agents 2014-05-01 17:32:45 +02:00
Dominik Sander
b7b3460fd3 Update to rails 4.1 2014-04-18 23:55:15 +02:00
Andrew Cantino
63a42fff3c Add option to treat strings starting with $ as JSONPath 2014-04-05 17:04:06 -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
0120ccb9c1 Basic HuamnTaskAgent with specs 2013-08-28 18:02:47 -06:00
Andrew Cantino
86b5b1f203 Use select2 for type selection; switch to showing JSON for event information 2013-08-08 12:30:17 -07:00
Andrew Cantino
306237c306 Allow escaping of JSONPath outputs; demonstrate in the formatting agent. 2013-08-08 09:56:22 -07:00
Andrew Cantino
52a1c1208a Don't allow JSONPath eval 2013-03-17 23:25:59 -07:00
Andrew Cantino
b876759b7b Add JSONPath for hash paths and add JSON parsing to the WebsiteAgent. 2013-03-17 15:56:02 -07:00
Andrew Cantino
620acffa5a initial commit 2013-03-09 22:36:12 -08:00