Commit graph

1638 commits

Author SHA1 Message Date
Andrew Cantino
577b441382 Handle removed events when rendering logs (#1634) 2016-08-15 11:50:54 -04:00
Akinori MUSHA
9b23c28049 Merge pull request #1444 from cantino/data_output_agent_limits_events_after_ordering
DataOutputAgent limits events after ordering
2016-08-08 14:12:25 +09:00
Andrew Cantino
ddb35e8236 Fix dependency check for Tumblr gem (#1615) 2016-08-04 22:05:52 -04:00
Sascha Hagedorn
d627a18f6d Added api_key option to UserLocationAgent (#1613)
* Added `api_key` option to UserLocationAgent

The `api_key` is used on the summary page of the UserLocationAgent
as well as the event detail page to display a location on a Google
Map which requires an API key. Closes #1612

* added link to Google API key documentation
2016-08-04 21:22:59 -04:00
Andrew Cantino
b765c0c3fb DataOutputAgent cannot create events (#1608) 2016-07-26 20:19:52 -04:00
Akinori MUSHA
26a11afb24 Rephrase the description of events_list_order as suggested by @cantino 2016-07-26 21:15:06 +09:00
Darren Cauthon
9d584b6ba4 Liquid output agent (#1587)
* Start with a stripped copy of the data output agent.

* Run the data from the last event through a liquid template.

* Flatten the secret logic to allow for an easier switch to FormConfigurable.

* Switch to form configurable, and allow the content of the page to be configured.

* Allow the mime type to be changed.

* Cleanup.

* Write how this template works.

* Better default values.

* Cleanup.

* Refactor.

* Start testing.

* Test the validation.

* Test receive.

* Test the happy path through the receive web events.

* Test the authentication.

* This is actually a match.

* Refactor.

* Refactor.

* Refactor for better testing.

* Create a mode that lets the logic change. Start with a merge behavior.

* Refactor.

* Create a form configurable setting to change the mode.

* Document how the modes work.

* Wording change.

* Go with a singular secret.

* Fix typo.

* Fix the tests.

* Test cleanup.

* If not one of two types that receive events, ignore all received events.

* Set up these tests for the next set of changes.

* Isolate the method that gets the data for the liquid template.

* Look up past events to render through the liquid template.

* Implement a limit of 2 events.

* Extract a method.

* Hook the limit to options.

* Implement a limit of X events.

* Implement a date limit.

* Refactor the count limit.

* Limit by date with sql, not in-memory objects.

* This ordering is already built into the scope.

* Refactor the dates a bit.

* Put in a few checks around the date limits.

* Add the last X event options to the form and the documentation.

* Missed one bit of documentation.

* Add a view for a liquid output agent that makes it easy to retrieve the generated URL.

* This agent cannot accept events.

* Hardcode the possibilities instead of inspecting the integer.

* Do not be case sensitive on the date filter.

* Hardcode a limit of 5000, just in case no limit was provided.

* Better checks around the time period parsing.

* Test the hardcodes, and rename for consistency.

* Nevermind on that rename.

* Do not be case sensitive on this mode.

* Test that it works even when the casing on the mode is wrong.

* Here is more descriptive default content.

* Text change.

* The if is no longer necessary.

* Refactor.

* Move the limit down to 1000.

* Put a hard limit of 1000.

* Note the new event limit... limit.

* Validate for a valid event limit.

* Do not throw an error if someone types in a non-integer into this field.

* Text update.

* Typo.

* Add a link to the Liquid Templating engine.
2016-07-25 21:23:33 -04:00
Andrew Cantino
cc72f79e0b Allow PostAgent headers to interpolate event data (#1606) 2016-07-25 19:59:14 -04:00
Akinori MUSHA
8aed682baa Allow dry-run of TriggerAgent 2016-07-25 19:42:16 +09:00
Akinori MUSHA
cc8e1bb9cc Remove an unnecessary call to save() 2016-07-25 17:46:00 +09:00
Alex Jordan
c1095330ea Make HttpStatusAgent provide redirect info (#1590)
* Make HttpStatusAgent provide redirect info

* Mock to_hash for HttpStatusAgent specs

* Refactor HttpStatusAgent spec mock responses
2016-07-20 08:29:09 -04:00
Darren Cauthon
29007c9019 Add an option to fire http status events only when a change occurs. (#1582) 2016-07-14 21:12:20 -04:00
Lloyd Pick
8c0a10fc4b attribute difference agent (#1572) 2016-07-09 19:51:08 -04:00
Paul Platenius
7f0ad0703b Rename setKey to setMemoryKey, changed setMemory description 2016-07-04 22:07:53 +02:00
Paul Platenius
da833b13bb Add setMemory function to Javascript Agent 2016-07-03 22:48:45 +02:00
Lloyd Pick
c3e263d3a4 allow decimal values to be shown on the peak graph (#1574) 2016-07-01 14:47:09 -04:00
Andrew Cantino
8aef73e253 Add clarifying text to fix #1558 2016-06-30 19:15:07 -04:00
Andrew Cantino
e1a2b5ae25 Heroku now makes an empty repo with the deployment button (#1570) 2016-06-30 00:45:53 -04:00
Enfop
d26015c62b Return to Agent Events after Event show (#1555) 2016-06-22 20:43:04 -07:00
Alex Jordan
3c8d6655a3 Expand HTTP status agent (#1521)
* Add WIP support for HTTP headers

* Actually pass the header to check_this_url

* Fix an unmerged hunk

* Fix some syntax errors

* Fix an outdated variable name

* Comment on which sections do what

* Get rid of (another) unmerged hunk

* Show a form element for the header field

* Fix event emitter conditional

* Adjust tests for header logic

* Test for not returning a header

* Refactor payload generation

* Rename 'header' to 'headers'

* Add multiple header support

* Update HttpStatusAgent docs

* Fix (some) failing tests

* Fix remaining tests

* Add specs for HttpStatusAgent's header code

* Super tiny cleanups
2016-06-20 00:37:15 -07:00
Akinori MUSHA
371bfa34b7 Merge pull request #1551 from cantino/jsagent_fix_memory
Fix `this.memory(key, falsy)` not working in JavaScriptAgent
2016-06-20 12:48:44 +09:00
Andrey Yantsen
3b4b4f3761 [fix #1512] add not in comparison into Trigger Agent (#1545) 2016-06-18 16:09:54 -07:00
Enfop
5cdc37f716 DryRunMemory (#1550) 2016-06-18 15:53:58 -07:00
Akinori MUSHA
806722b4f8 Fix this.memory(key, falsy) 2016-06-16 20:15:55 +09:00
Andrew Cantino
e4e2782ebe Fix whitespace 2016-06-15 23:55:11 -07: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
Enfop
2295875d81 Add deleteKey function to Javascript Agent (#1543)
* Add deleteKey function to Javascript Agent

* JSONifying return value of deleteKey
2016-06-15 23:30:33 -07:00
Dominik Sander
47715c3349 Merge pull request #1541 from kreuzwerker/permanent-dropbox-links
Permanent dropbox links
2016-06-14 09:30:07 +02:00
Judy Ngai
f57a3af521 enable disable all agents within a scenario (#1506)
* tentative work on enable disable all agents within a scenario

* more work with pr

* more work

* better names and save a line of code

* coffeescript to change modal text and hidden disabled value

* redoing coffeescript class to save some code

* initing the function

* updated coffeescript

* change text from specific modal, made names more specific

* updates disabled test and rubocop bug

* improved test and refactored method per rubocop warnings

* switched from 0 to false

* switched from 0 to false and 1 to true

* fixed null bug in postgresql database

* fixed ruby boolean bug

* moved instances into let lazy load and use proper agent fixture

* putting in a different fix

* using existing membership and agent and another version of test

* switch back to 2 not 3 after rm an agent in yml

* made test passed locally

* forgot to remove debuging pp

* small spacing bug

* trying to get rid of newline in file

* typo not agent but scenario

* minor changes to syntax and naming

* rm potential failure and changed update_all statement

* fixing new line issue

* removed unnecessary if else statement from method
2016-06-13 22:36:22 -07:00
Dominik Sander
d4008ba4d2 Add specs for permanent urls in the DropboxFileUrlAgent 2016-06-10 10:20:34 +02:00
bennlich
ab017ad2e2 Add support to dropbox_file_url_agent for permanent links 2016-06-09 10:38:21 +02:00
Akinori MUSHA
63c35c0832 Update RssAgent#events_order 2016-06-07 19:20:05 +09:00
Akinori MUSHA
978ec06199 Rename events_order to events_list_order and readd events_order
`events_order` determines how to select events for outputting, whereas
`events_list_order` determines how to list selected events in the
output.
2016-06-07 15:11:47 +09:00
Akinori MUSHA
adab96bb97 Allow SortableEvents to use keys other than events_order 2016-06-07 15:10:56 +09:00
Akinori MUSHA
9b96a6fe63 Improve the way DataOutputAgent digs past events
In the first run, it now checks `2 * events_to_show` events for each
source.

This also fixes the problem where older events are selected when
`events_order` is not specified by sorting events by the `id`.
2016-06-07 15:10:55 +09:00
Akinori MUSHA
fe50730033 DataOutputAgent should limit events after ordering
This should fix #1044.
2016-06-06 17:41:37 +09:00
Enfop
4b011a1370 Javascript Agent Hash and Array memory (#1524)
* Javascript Agent Hash and Array memory

* add specs
2016-06-04 17:28:37 -07:00
Dominik Sander
30fcfe1338 Merge pull request #1482 from kreuzwerker/feature/agent-icons
Add Agent connection status icons
2016-05-31 13:15:55 +02:00
Dominik Sander
506a70837f Determine agent connections with cached COUNT queries 2016-05-31 12:35:20 +02:00
Dominik Sander
96537fcd3a Add agent role icons in agent tables 2016-05-31 12:35:15 +02: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
Andrey Yantsen
c15a56989c add parse_mode to Telegram agent (#1509) 2016-05-20 07:49:59 -07:00
Andrey Yantsen
93c6a75cec Improve docs for Telegram agent (#1510) 2016-05-20 07:48:24 -07:00
Dominik Sander
d573b98a68 Show recently received events in dry run modal 2016-05-18 09:58:49 +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