Akinori MUSHA
2da33d2949
Prefer method_missing over defining individual methods.
2014-09-08 17:07:02 +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
Dominik Sander
3fa68bd1b3
Merge pull request #468 from dsander/job-management
...
Simple job management page
2014-09-07 14:16:50 +02:00
Dominik Sander
ad25568003
Sort queued jobs by next run time, allow to queue failed jobs
2014-09-07 13:28:08 +02:00
Andrew Cantino
0b732a7662
Merge remote-tracking branch 'origin/master' into event_update_should_not_touch_last_event_at
...
Conflicts:
app/models/event.rb
2014-09-06 10:54:13 -07:00
Dominik Sander
85bcc6c7d0
Just update the job list if no modal is shown
2014-09-06 16:07:37 +02:00
Brandon Hansen
f54788edd8
Extracting un-dry sql to scope for reuse
2014-09-05 21:06:10 -07:00
Andrew Cantino
142bb35d4e
Only update Agent's last_event_at on Event creation, not when Events are updated.
2014-09-05 20:19:39 -07:00
Brandon Hansen
4d7b89482c
Remove case statement as it is redundant in the else
2014-09-05 20:04:09 -07:00
Akinori MUSHA
23b074193f
When the control action is run
, control targets must be schedulable.
2014-09-04 14:15:15 +09:00
Akinori MUSHA
786b0f3d06
Oops, 30 is a multiple of fifteen.
2014-09-04 14:05:40 +09:00
Akinori MUSHA
38de860670
Make the "Controllers" field read-only.
2014-09-04 13:55:49 +09:00
Akinori MUSHA
8dc5244e6e
Merge remote-tracking branch 'origin/master' into scheduler_agent
...
Conflicts:
db/schema.rb
2014-09-03 16:59:57 +09:00
Akinori MUSHA
706ce8d997
Clone controller_target_ids too.
2014-09-03 13:17:47 +09:00
Akinori MUSHA
69d2273221
Add can_control_other_agents to the response hash of type_details.
2014-09-03 13:10:59 +09:00
Akinori MUSHA
46497f0b3f
Fix control-link-region display toggling.
2014-09-03 13:07:40 +09:00
Akinori MUSHA
06ae684ff7
Use length rather than count when the relation should already be materialized.
2014-09-03 12:50:01 +09:00
Akinori MUSHA
95a067a4de
Compare user_id's rather than user objects.
2014-09-03 12:48:09 +09:00
Akinori MUSHA
53067263cf
Allow multiples of fifteen as seconds.
2014-09-02 17:05:21 +09:00
Akinori MUSHA
8065721b77
Rename "chain" to "control link" for clarity.
2014-09-01 23:47:04 +09:00
Akinori MUSHA
c21bada226
WebsiteAgent: Provide a variable _response_ for interpolation.
...
* `_response_.headers.Header-Name` is expanded to the value of header
named _Header-Name_.
* `_response_.status` is expanded to the HTTP status as integer, which
is almost always 200, since currently the WebsiteAgent will only
create an event when a request succeeds, and the request method is
limited to GET.
2014-09-01 23:17:19 +09:00
Akinori MUSHA
e2f2ff5da8
Remove "locals" from Drop classes and introduce a real context class.
...
The Context class is capable of switching a self object and adding local
variables, and also hashable for the convenience of being used as a
cache key.
As for the thread safety, we give it up for now as we don't support it
or have concurrency tests yet anyway.
2014-09-01 21:53:44 +09:00
Andrew Cantino
5a8206401a
Merge pull request #473 from cantino/nullify_agent_log_event_refs
...
Cleanup event references on AgentLogs when Events are deleted
2014-08-31 21:19:44 -07:00
Andrew Cantino
2c820e8af2
allow separate events for each answer in the HumanTaskAgent
2014-08-31 20:25:11 -07:00
Andrew Cantino
32a2a77143
Cleanup event references on AgentLogs when Events are deleted
2014-08-31 20:03:06 -07:00
Dominik Sander
f27b6c5c21
Just keep the most recent 100 failed jobs + small improvements
2014-08-31 10:04:23 +02:00
Dominik Sander
830cf1bf3d
Simple job management page
...
Also added a seperate `job-indicator` for every job state
(pending/awaiting retry and failed)
The jobs page is automatically reloading when jobs are
enqueued, retried or failed.
2014-08-30 17:48:29 +02:00
Akinori MUSHA
3afd215457
Merge pull request #464 from knu/heroku_button
...
Add a "Deploy to Heroku" button.
2014-08-30 16:25:01 +09:00
Akinori MUSHA
3c9dd9a8a4
Update the Heroku instructions.
2014-08-30 15:55:54 +09:00
Akinori MUSHA
f84a9c24eb
Fix app_name.
2014-08-30 15:55:17 +09:00
Akinori MUSHA
05dd52dc3d
Fix a bug with edge line styling.
2014-08-29 17:26:38 +09:00
Akinori MUSHA
1cea2ba36e
Merge remote-tracking branch 'origin/master' into scheduler_agent
2014-08-29 17:18:28 +09:00
Akinori MUSHA
30041706ff
Rename "target" to "control target".
2014-08-29 17:17:57 +09:00
Akinori MUSHA
d0d9c8ecf1
Fix specs for the new stuff in DOT output.
2014-08-29 17:17:35 +09:00
Akinori MUSHA
4c938f14e5
Make to_xpath
stringize a non-string operand as the standard filters do.
2014-08-28 20:34:59 +09:00
Akinori MUSHA
d378795176
Merge pull request #462 from knu/liquid-to_xpath
...
Add a Liquid filter `to_xpath`, which quotes a string for use in XPath expression.
2014-08-28 18:49:58 +09:00
Akinori MUSHA
3cb29326fa
Merge pull request #465 from knu/move_save_button_up
...
Move the Save button right under the options.
2014-08-28 17:36:38 +09:00
Dominik Sander
daca2fd7b6
HipChatAgent: username length limit is 15 chars
...
Also try to use travis-cis bundle caching
2014-08-27 23:47:41 +02:00
Akinori MUSHA
806e41dd4c
Merge branch 'master' into scheduler_agent
...
Conflicts:
app/helpers/agent_helper.rb
db/schema.rb
2014-08-27 23:57:45 +09:00
Akinori MUSHA
64802bd457
uri_escape
: Do not fail when nil is given.
...
Do just the same as the standard filter `url_encode`.
2014-08-27 23:52:03 +09:00
Akinori MUSHA
c706bebcc1
Add a dedicated validator for interpolation.
...
We need this because not all agents perform interpolation in their
validate_options methods. Now that we have validate_interpolation,
interpolation failure in other validators are simply ignored.
2014-08-27 22:23:48 +09:00
Akinori MUSHA
3e0741d100
Agent#valid?: Rescue Liquid::Error and save it in errors.
...
Calling valid? should not raise any exception in general, and in our
case it is undesirable for a syntactically wrong Liquid template in
options to cause Internal Server Error in validation.
2014-08-27 22:08:32 +09:00
Akinori MUSHA
381a338c6c
Move the Save button right under the options.
...
It's nice for each Agent to have a good, detailed description, but
currently the Save button will be gone too far below when the
description is very long in height.
2014-08-27 21:13:30 +09:00
Akinori MUSHA
f722d646b7
Do not lose payload data when locals is given.
2014-08-27 20:52:14 +09:00
Akinori MUSHA
6691e6db98
Support installation via Heroku button.
2014-08-27 19:32:01 +09:00
Akinori MUSHA
0227496669
Clean up code with mode
.
2014-08-27 11:56:55 +09:00
Akinori MUSHA
212344ac3a
Merge pull request #463 from knu/website_agent-refactor-check_url
...
Refactor WebsiteAgent#check_url.
2014-08-27 10:21:22 +09:00
Dominik Sander
74ced66beb
Merge pull request #324 from dsander/omniauth
...
OAuth consumer
2014-08-26 23:17:22 +02:00
Dominik Sander
a144c2dae7
Also show the upgrade warning in the services page
2014-08-26 22:28:25 +02:00
Akinori MUSHA
a93bb2674e
Refactor Drop classes.
...
Not alone EventDrop but all subclasses now take a hash of "locals" which
could be referenced in interpolation. This will make it easier for
Agent classes to add custom "locals" for use in interpolation.
2014-08-26 21:31:38 +09:00