Commit graph

1189 commits

Author SHA1 Message Date
Akinori MUSHA
23f04ef822 Add endl. 2014-09-08 17:07:02 +09:00
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
b8afdd2983 Another attempt on travis bundler caching 2014-09-07 13:52: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
cfef98d468 Merge pull request #481 from cantino/event_update_should_not_touch_last_event_at
Only update Agent's last_event_at on Event creation, not when Events are updated.
2014-09-06 11:24:25 -07: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
Andrew Cantino
47db27a003 reload to be clear 2014-09-06 10:35:50 -07:00
Dominik Sander
85bcc6c7d0 Just update the job list if no modal is shown 2014-09-06 16:07:37 +02:00
Andrew Cantino
9eee3dd922 Merge pull request #482 from ready4god2513/chores/dryup-code
Chores/dryup code
2014-09-05 21:26:24 -07: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
7c37fea1c5 Merge pull request #478 from knu/spring
Introduce Spring for faster development.
2014-09-05 09:00:05 +09:00
Akinori MUSHA
8d3159a9f7 Introduce Spring for faster development. 2014-09-04 18:30:29 +09: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
10ecc8b7d2 Merge pull request #466 from knu/website_agent-response_drop
Give access to response status and header values in WebsiteAgent.

Closes #445.
2014-09-04 12:52:42 +09:00
Akinori MUSHA
12f18398f1 Squash migrations during the development of the scheduler_agent branch. 2014-09-03 17:07:29 +09:00
Akinori MUSHA
99c3fc0309 Update db/schema.rb. 2014-09-03 17:03:39 +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
2b493f548b Add specs for interpolation_context#[]= and interpolate_with. 2014-09-03 14:46:53 +09:00
Akinori MUSHA
77f03da94c Parenthesize the argument. 2014-09-03 14:25:53 +09:00
Akinori MUSHA
53eb531f50 Set a created job's scheduler_agent_id before it is first triggered. 2014-09-03 13:22:11 +09:00
Akinori MUSHA
51f8c8b805 Add some specs for our Rufus::Scheduler extension. 2014-09-03 13:20:18 +09:00
Akinori MUSHA
9a7f7fe6b6 Add NOT NULL contraints. 2014-09-03 13:19:14 +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
1d3fbfbe52 Merge pull request #475 from cantino/human_task_agent_separate_events
allow separate events for each answer in the HumanTaskAgent
2014-08-31 21:19:08 -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
250a244de5 Added specs for the HuginnScheduler 2014-09-01 00:41:53 +02: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
ac7cd8ce5e Merge pull request #414 from knu/set_charset_for_mysql
Set charset/collation properly for each text column if using MySQL.
2014-08-30 16:03:31 +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