Commit graph

65 commits

Author SHA1 Message Date
Andrew Cantino
ec0e10c50f initial effort on pulling Agents into gems 2014-09-27 22:12:19 -07:00
Akinori MUSHA
9defc7afb8 Refactor OmniAuth configuration and fix it with 37Signals. 2014-09-24 10:18:04 +09:00
Andrew Cantino
eb52eeeeea experimental branch to support using fewer gems for saving RAM 2014-09-21 17:53:04 -07:00
Akinori MUSHA
951648c94e Refactor the map_marker partial. 2014-09-19 10:48:33 +09:00
Akinori MUSHA
89754a1cb3 Integrate UserLocationUpdatesController into WebRequestsController. 2014-09-17 10:39:30 +09:00
Akinori MUSHA
f720291b49 UserLocationAgent: Receive events and accept POST via WebRequestsController.
Show the POST URL on the details page while at it.

The old user_location_updates URLs still work.

This addresses #490.
2014-09-16 20:56:08 +09: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
db792cdd82 Set charset/collation properly for each text column if using MySQL.
With this change, Huginn is able to store up to 4-byte UTF-8 characters
in its database.  This should fix #286.
2014-08-25 15:18:24 +09:00
Andrew Cantino
78f6150b26 Merge branch 'omniauth' of https://github.com/dsander/huginn into dsander-omniauth
Conflicts:
	Gemfile.lock
2014-08-06 21:04:35 -07:00
Dominik Sander
1daf1ddd2a Renamed 37signals environmental variable to not start with numbers 2014-08-04 20:46:21 +02:00
Akinori MUSHA
0c9c862c53 Turn the JavaScript code into a separate CoffeeScript file. 2014-08-01 15:56:27 +09:00
Alex Coomans
15e3f0a33d Break Diagram into it's own controller, nest resources
Conflicts:
	app/views/scenarios/show.html.erb
2014-07-31 16:42:58 -07:00
Dominik Sander
b71ea25418 Merge branch 'master' into omniauth
Conflicts:
	Gemfile.lock
	app/controllers/agents_controller.rb
2014-07-31 22:14:44 +02:00
Andrew Cantino
b9e7d6d617 trying to get Heroku working 2014-07-15 20:23:46 -07:00
Dominik Sander
cc0c18b1f5 Supress logging for requests to the /worker_status
Because the log level is set to ERROR exceptions will still be logged.
Added the 'quiet_assets' gem to remove noisy asset logging.
2014-06-22 11:03:45 +02:00
Dominik Sander
f07db9c97c Merge remote-tracking branch 'huginn/master' into omniauth
Conflicts:
	app/models/agents/basecamp_agent.rb
	app/models/user.rb
	db/schema.rb
	spec/fixtures/agents.yml
2014-06-20 19:07:06 +02:00
Dominik Sander
12c2af26bb Add omniauth to let huginn consume oauth endpoints
Created a service model which stores external account information.
Created a service controller which kicks off the oauth process and lets
the user manage their external accounts.
Oauthable concern connects a agent to a service and adds a drop down to the
agents edit page.
Added a migration which converts the existing twitter agents to use the
new service model.
2014-06-11 21:34:09 +02:00
Andrew Cantino
f3ffb33a7d Merge remote-tracking branch 'origin/master' into scenarios 2014-06-07 12:26:18 -07:00
Andrew Cantino
5c1fbdb997 upload and fetch by url, data object manages import; next step is actual import 2014-06-01 23:57:21 -07:00
Andrew Cantino
b91faf62a0 easier removal of agents from scenarios via the menu 2014-06-01 00:24:35 -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
Andrew Cantino
aaa4b7a155 add basic scaffold of scenarios, including the ability to add agents to scenarios, edit scenarios, and view scenarios. next step: import and export 2014-05-14 22:53:32 -07:00
Dominik Sander
8a51dbc4bd Provide an optional threaded background worker
Due to the three background workers (scheduler, twitter stream and delayed job)
huginn needs a lot of memory to run (about 520MB on my dev machine). This PR
introduces an optional threaded background worker which combines the three current
separated processed into one (reducing the memory footprint to ~260MB).
Since just one instance of the of every background processor is running at a time
there should not be any threading related issues.
The main gotcha of this is, that it's most likely not possible to run multiple
delayed job workers concurrently. The ultimate solution would probably be switching
to sidekiq with sidetiq as scheduler, but that is a different task :)

When running on MRI the GIL should not be an issue because it is released for most IO
bound operations (waiting for the database/website/sleeping).
2014-05-12 00:28:07 +02:00
Maximilian Clarke
bd1a01eb4d Upgrade to Bootstrap 3.1.1 2014-05-01 10:32:29 +02:00
Maximilian Clarke
5966ad30d8 Moved setting to .env 2014-05-01 05:06:10 +02:00
Dominik Sander
ed2f8e82d8 Make sure assets in ./vendor are precompiled 2014-04-24 16:30:00 +02:00
Dominik Sander
05bb31f557 Moved config.force_ssl to a ENV variable 2014-04-24 15:58:31 +02:00
Dominik Sander
2fd35a2daf Removed the staging environment 2014-04-22 16:55:19 +02:00
Dominik Sander
460e940c8a Removed unneeded config options, added gemnasium 2014-04-20 00:00:55 +02:00
Dominik Sander
b7b3460fd3 Update to rails 4.1 2014-04-18 23:55:15 +02:00
Andrew Cantino
25b62ae1f1 Merge pull request #203 from cantino/data_output_agent
Data output agent
2014-04-13 11:04:18 -07:00
Andrew Cantino
db0fbe4c93 rename WebhooksController to WebRequestsController; refactor and support deprecated methods for now 2014-04-08 09:38:06 -07:00
Andrew Cantino
671e190b35 disable DelayedJobWeb link when it is not enabled 2014-04-05 17:55:48 -07:00
Andrew Cantino
ea8963a8cf add show page for the new agent 2014-04-05 17:40:51 -07:00
Andrew Cantino
794ae69b91 Refactor webhook handling to accept all HTTP verbs 2014-04-05 17:05:42 -07:00
ms32035
e5c2cac42a Gem mysql2 + port for test environment 2014-03-13 23:50:46 +01:00
Andrew Cantino
c043a40868 add Ace editor for editing JavaScript in credentials 2014-02-09 23:16:52 -08:00
Andrew Cantino
ff758cc679 move user credentials to a primary route, update twitter agents and background job 2014-02-01 14:01:27 -08:00
Andrew Cantino
77882908c4 in order to avoid leaking memory, remove all symbolization 2013-12-22 15:36:29 -08:00
Andrew Cantino
21ccd6cc52 cleanup failed delayed_jobs by default (for table speed) 2013-12-22 14:32:35 -08:00
Albert Sun
9874e2b41a moving mail config into an initializer and a config/smtp.yml file 2013-09-27 01:15:28 -04:00
Albert Sun
0481c17dac updated based on comments from cantino 2013-09-24 23:38:10 -04:00
Albert Sun
198708baa5 adding ASSET_HOST config and a staging environment file 2013-09-24 12:43:55 -04:00
Albert Sun
a521695d6c initialize_on_precompile to false for asset compile 2013-09-24 12:17:38 -04:00
Andrew Cantino
82156f3c75 move RTurk setup to an initializer 2013-09-07 18:03:26 -07:00
Andrew Cantino
773a612dee Allow Events to be re-emitted for testing. 2013-09-07 13:53:58 -07:00
Andrew Cantino
8d7dde6fb5 Add a POST endpoint called handle_details_post that Agents' details views can use to send data to the Agent from the UI. Add a new ManualEventAgent that uses the handle_details_post functionality to create simple events on demand for testing / debugging. 2013-09-06 23:46:31 -07:00
Andrew Cantino
00727fbd4d add Agent Logs; add logging to WebsiteAgent; refactor flash notices and add event notices 2013-08-24 22:46:57 -06:00
Andrew Cantino
c5fb643832 remove rails_admin - let users install it if they want it 2013-06-29 18:44:53 -07:00
Ben Nappier and Parth Gandhi
cb25a087af use .env db settings for test environment 2013-06-18 11:23:45 -07:00