Commit Graph

565 Commits (de140d02a5a0a95b5a16cea619d2cd4b70494a26)

Author SHA1 Message Date
Rick Carlino 6cd8e50a15 Update tests for KeyGen 2018-09-27 11:13:37 -05:00
Connor Rigby e23512c16a
NervesHub Rabbit worker.
This stops http requests from blocking
2018-09-24 09:53:04 -07:00
Connor Rigby dff27ad8f2
Add temporary http endpoint 2018-09-20 13:28:29 -07:00
Connor Rigby f2b7054a16
Add NervesHub REST API implementation.
This is the all the code for the remote api calls
FarmBot API will need to make to NervesHub for
generating devices. No public access to this yet.
2018-09-20 12:53:21 -07:00
Rick Carlino 623258c50f
Send message fix for `email` cahnnel (#961)
* fix for send_message emails
* Update log filtering rules in log digest delivery mailer
* Cleanup log digest email query, add tests for it
2018-08-16 09:59:38 -05:00
Rick Carlino 971b711e4e
Rename `device_configs` to `farmware_envs` (#960) 2018-08-15 13:44:04 -05:00
Rick Carlino 303a3491f2
Variables phase II, part II (#958)
* re-enable type checker
* Update celery script `execute` node to accept nested variable declarations
* Disable test button on parameterized sequences
* Fix unnoticed NPE
* Add `deep-cover` for greater coverage accuracy
* Spec for bad variable assignment
* Fix tests to allow parameter_declarations
* Disale the X/Y/Z boxes for parameters
* [FAILING] Make the ::Checker context (device) aware.
* [STABLE] Better `point_id` leaf validation.
* Add Sequence.parameterized?(id) helper
* Disallow parameterized FEs/RIs on server side.
* Add tests for parameter prevention stuff
* Default movement_keep_active_* to `1`
* Enable encoders by default
* Clean up frontend de-parameterization logic in farmevent/regimen editors
* Update specs to reflect new defaults
* stop dangerous edits
* Tests for regimen updates
* Maybe fix blinky coverage issues?
* Test for getVariable()
* Tests for handleSelect
* <TileMoveAbsSelect/> tests
* Update FBOS version parser
* tests for executer in TileSendMessage
* Tests for catchErrors()
2018-08-15 09:50:21 -05:00
Rick Carlino 2caa1684d6
Variables phase II, part I (#954)
* re-enable type checker 4 realz
* Update celery script `execute` node to accept nested variable declarations
* Disable test button on parameterized sequences (for now)
* Fix unnoticed NPE
* Add `deep-cover` for greater coverage accuracy
* Spec for bad variable assignment
2018-08-09 18:31:22 -05:00
Rick Carlino 6191dde789 Better handling of NOT_FOUND, more tests 2018-08-01 10:37:11 -05:00
Rick Carlino f4a197514b Make interface of ::Update mutations consistent 2018-08-01 09:28:00 -05:00
Rick Carlino 23c8c0d262 Allow configuration / display of sensor_readings.mode 2018-07-20 10:37:09 -05:00
Rick Carlino dfd7170409 One last merge conflict (whoops) 2018-07-19 13:06:57 -05:00
Rick Carlino 486d927cb4 Merge conflicts 2018-07-19 11:42:40 -05:00
Rick Carlino 1c31f50735 Unborking part II 2018-07-19 11:23:41 -05:00
Rick Carlino 918e0926a5 Whoops 2018-07-19 11:17:34 -05:00
Rick Carlino cb409f0286 Update allowed MQTT channel regex 2018-07-19 10:53:54 -05:00
Rick Carlino dbf6b34f0b Fixed workers. NEXT: Deploy to staging. 2018-07-18 09:07:33 -05:00
Rick Carlino c2aafa9204 Stub out some batch operation classes 2018-07-09 09:51:15 -05:00
Rick Carlino 7ecf3ab575 Rename Sequences::Delete => Sequences::Destroy 2018-07-08 11:53:30 -05:00
Rick Carlino 5b8bee38e8 Create CleanOutOldDbItemsJob 2018-07-07 10:27:55 -05:00
Rick Carlino 020b2eab0e HTTP auth backend provides usertags 2018-07-05 13:57:19 -05:00
Rick Carlino 845c561b3e N+1 in RegimensController 2018-06-29 10:51:17 -05:00
Rick Carlino c413fd4075 More bug fixes 2018-06-25 14:44:50 -05:00
Rick Carlino cfa5acf274 Remove TODOs, add docs 2018-06-23 07:53:17 -05:00
Rick Carlino 3d99cf1089 ✔️ 2018-06-23 07:48:01 -05:00
Rick Carlino 9985ab3b76 Tests for RmqUtilController 2018-06-23 07:40:14 -05:00
Rick Carlino 9f2c27844b Add specs 2018-06-23 06:23:43 -05:00
Rick Carlino 1eef194d6e Minor updates to resource check action 2018-06-21 16:10:51 -05:00
Rick Carlino 6194416237 FIrst draft of auth endpoint for RabbitMQ 2018-06-21 16:05:07 -05:00
Rick Carlino d064ac8eef Check validity of MQTT channel 2018-06-21 12:56:00 -05:00
Rick Carlino 6dafbf61d8 WIP 2018-06-20 16:05:45 -05:00
Rick Carlino f342780f09 Almost works but whats up with the loopback issues? 2018-06-20 14:48:45 -05:00
Rick Carlino 63325a0706 http / cache backkends work! ✔️ 2018-06-20 12:42:52 -05:00
Rick Carlino 110d7acd87
Diagnostic Dumps - RC 1 (#889)
Add API side diagnostic reporting.
2018-06-18 16:12:00 -05:00
Rick Carlino 22eb614deb Merge branch 'staging' of https://github.com/FarmBot/Farmbot-Web-App into bug_fixes_wed 2018-06-13 08:41:03 -05:00
Rick Carlino 0c4efe3721 EDGE CASE: Dont process images if they were deleted before we can get to them. 2018-06-13 08:36:46 -05:00
Rick Carlino 35f5575e10
Rollbar Changes (#882)
* README updates

* Get rid of LogDispatch table

* More transactions.

* Prevent Log::RateLimitError errors after migration

* Re-raise errors to Rollbar in the log service

* Update rollbar stuff.

* Bundle outdated

* Yarn outdated

* Add test for current_device_id
2018-06-11 16:13:29 -05:00
Rick Carlino 12db3d7e26 DRY stuff up with pretty_ua 2018-05-11 16:13:57 -05:00
Rick Carlino 19175f48b7 More notes 2018-05-11 15:51:14 -05:00
Rick Carlino 286fa58668 Updates to fbos_version() helper 2018-05-11 15:47:36 -05:00
gabrielburnworth 8b7710bc8e token upgrade path fix 2018-05-10 16:10:10 -07:00
Rick Carlino d95f5b0791 Add CalculateUpgrade::NULL 2018-05-10 12:59:57 -05:00
Rick Carlino cb844bbbda Hotfix to enable local storage of images 2018-05-07 17:36:57 -05:00
Rick Carlino 27c730ea13
Merge branch 'staging' into docs_cleanup 2018-05-04 16:15:47 -05:00
Rick Carlino 75494a49db 🎉 2018-05-04 13:11:32 -05:00
Rick Carlino 424ab93aa2 Annotate source code 2018-05-04 11:36:43 -05:00
Rick Carlino 34a39f38fc Remove YAGNI stuff from corpus controller 2018-05-04 10:42:51 -05:00
Rick Carlino 0751e5f42f Specs for stub policy use case 2018-05-04 07:20:49 -05:00
Rick Carlino f2be71049c Its own mutation and minor fixes 2018-05-04 06:58:13 -05:00
Rick Carlino 320f902eb4 Stub out the `NO_EMAILS` version of data dump 2018-05-02 16:40:25 -05:00
Rick Carlino 5d314b61cc Fix query in ToolsController 2018-05-02 14:33:08 -05:00
Rick Carlino efa2f8bcfd DataDump#email_json_dump works, needs tests. 2018-04-30 09:03:09 -05:00
Rick Carlino 3a9edd9f2a ✔️ TODO: Email JSON attachment. 2018-04-28 12:00:58 -05:00
Rick Carlino caacc36f04 Merge branch 'garden_snapshot_ii' into data_dump 2018-04-28 10:13:46 -05:00
Rick Carlino 097f5b3ace Update test for devices#dump 2018-04-28 10:08:01 -05:00
Rick Carlino bcf913991f WIP 2018-04-27 11:49:59 -05:00
Rick Carlino 005bdd1fca WIP 2018-04-27 07:14:45 -05:00
Rick Carlino 30fdf4bc63 [UNSTABLE] De-singleton-ify `Transport` module 2018-04-26 11:02:11 -05:00
Rick Carlino 5718714202 Merge conflict, schema.rb 2018-04-26 10:10:53 -05:00
Rick Carlino 6a536b2cb4 Possible fix CC: @connorRigby 2018-04-23 14:37:51 -05:00
Rick Carlino 9f3c8d9c4d [UNSTABLE] TODO: Add `device_id` column to `InUsePoint` view. 2018-04-23 12:15:12 -05:00
Rick Carlino f948ca2911 Sort log search results 2018-04-21 08:47:30 -05:00
Rick Carlino 6abbf2a654 Fix HSTORE query to support partial matches 2018-04-21 08:39:40 -05:00
Rick Carlino adcd6f395c LEFT OUTER JOIN rather than INNER JOIN 2018-04-20 14:29:29 -05:00
Rick Carlino f977eb63da Cleanup tests 2018-04-20 12:30:44 -05:00
Rick Carlino f6cc8d7321 WIP 2018-04-20 10:53:13 -05:00
Rick Carlino a71024cbf6 Nondestructive #apply 2018-04-20 09:41:10 -05:00
Rick Carlino a22b4d761e Apply ✔️ 2018-04-20 08:49:21 -05:00
Rick Carlino 4f6636eed0 Merge branch 'saved_gardens_ii' into garden_snapshot_i 2018-04-19 15:50:30 -05:00
Rick Carlino 9a89338be5 start SavedGardens::SnapShot 2018-04-19 15:37:15 -05:00
Rick Carlino a6a68bc85e 56 2018-04-19 11:58:23 -05:00
Rick Carlino 6a01f7d9c0 remove logs cleanup 2018-04-19 10:44:52 -05:00
Rick Carlino 2e5f278f6a [STABLE] First batch of tests for PlantTemplates 2018-04-19 09:43:55 -05:00
Rick Carlino 7179e99759 Rename `garden` to `saved_garden` 2018-04-19 08:33:16 -05:00
Rick Carlino 492c601795 Test for Gardens#index 2018-04-18 17:17:00 -05:00
Rick Carlino 147262fcbe Stub out Garden and PlantTemplate 2018-04-18 16:50:20 -05:00
Rick Carlino da914b7d72 Allow legacy users to download corpuses, public keys 2018-04-15 14:25:17 -05:00
Rick Carlino fed516ea13 Merge branch 'staging' of https://github.com/FarmBot/Farmbot-Web-App into lockout_prep 2018-04-15 14:06:12 -05:00
Rick Carlino f804253449 Skip FBOS version check on `show` endpoint 2018-04-15 14:06:02 -05:00
Rick Carlino e5996da209 [UNSTABLE] WIP 2018-04-13 14:14:34 -05:00
Rick Carlino fefe41df27 Bump FBOS version 2018-04-13 13:46:56 -05:00
Rick Carlino 86f27b6ca2 Mostly working sequence_usage_report + remove N+1 from sequence index 2018-04-13 11:43:01 -05:00
Rick Carlino 2b768a7806 Add `SequenceUsageReport` view. 2018-04-13 08:15:59 -05:00
Rick Carlino 3b1ed30347 [UNSTABLE] Add more indexes, default verbosity 2018-04-12 14:16:06 -05:00
Rick Carlino 516828d3b3 Fix N+1 in `ToolSerializer` 2018-04-12 11:19:40 -05:00
Rick Carlino e8c670bfa0 Add indexes 2018-04-12 10:27:27 -05:00
Rick Carlino 5758d1d256 Add filter param to points controller. Next: Needs tests 2018-04-11 15:17:19 -05:00
Rick Carlino b0dba01adb Auto compact trash, remove unsaved from list 2018-04-10 15:43:10 -05:00
Rick Carlino 2040feece1 Ability to discard points 2018-04-10 13:37:23 -05:00
Rick Carlino 91aa7cc466 [UNSTABLE] Scrap ::LegacyMigration idea, set self.inheritence_column. TODO: Fix serialization issues 2018-04-09 18:13:44 -05:00
Rick Carlino 93727c8bf8 WIP 2018-04-08 21:52:11 -05:00
Rick Carlino 174e934f25 NEXT: pointer_id / pointer_type removal 2018-04-08 21:10:42 -05:00
Rick Carlino 235b0e2df5 Remove even more old refs to pointer_type/ pointer_id 2018-04-08 20:36:11 -05:00
Rick Carlino 72be854dcd Cleanup tests and error messages 2018-04-07 15:09:31 -05:00
Rick Carlino f3531ac7ac Remove code no longer used after introduction of SQL views 2018-04-06 07:56:15 -05:00
Rick Carlino e4aea4d0f4 Modifications in prep. for table changes 2018-04-04 16:24:25 -05:00
Rick Carlino 6a60d30ff3 WIP 2018-04-04 14:36:53 -05:00
Rick Carlino 81dec99a91 Try a JSON 404 page 2018-04-03 16:03:15 -05:00
Rick Carlino cd7d8186b0 Serverside filtering updates 2018-03-31 10:42:13 -05:00
Rick Carlino 2c80758282 🎉:question_mark: (Still needs tests) 2018-03-30 16:05:53 -05:00
Rick Carlino 1eb2f5b96a Start logs#search 2018-03-30 14:56:21 -05:00
Rick Carlino 5d717834b0 Fix funny beforeunload issues 2018-03-29 11:00:27 -05:00
Rick Carlino ef3259f664 Token issuance table (DRAFT) 2018-03-28 16:28:21 -05:00
Rick Carlino 4f65857e86 Merge conflicts 2018-03-26 13:00:02 -05:00
Rick Carlino 3bad3a29a1 Merge conflicts 2018-03-26 12:30:18 -05:00
Rick Carlino 6497971c44 Add `in_use` flag to Regimen models 2018-03-26 11:54:35 -05:00
Rick Carlino 623f660ee6 `critical_email` channel + mailers 2018-03-26 10:35:54 -05:00
Rick Carlino ed6fa145e4 Fix blinky test 2018-03-24 09:16:17 -05:00
Rick Carlino 46f471a03f Add API endpoint for `GlobalConfig` table. NEXT: Tests 2018-03-23 15:16:04 -05:00
Rick Carlino db3d3911ad Stop allowing email (string) in sub field (deprecated) 2018-03-18 10:38:52 -05:00
Rick Carlino 5af42b19f9 Remove deprecated ::Digest usage 2018-03-16 11:25:42 -05:00
Rick Carlino 45702da703 Add performance to sequences#index 2018-03-16 10:40:27 -05:00
Rick Carlino 035cab9ca5 Endpoint done 2018-03-12 08:48:27 -05:00
Rick Carlino f33652d545 Start idea #2 2018-03-11 19:11:24 -05:00
Rick Carlino 1328a10c67 Dead code removal 2018-03-01 15:39:49 -06:00
Rick Carlino 4013461c5a WIP part II 2018-03-01 15:00:54 -06:00
Rick Carlino d4ded90072 Mostly working pin_binding api endpoint 2018-02-28 11:08:41 -06:00
Rick Carlino 37a714f199 Begin pinbinding table work 2018-02-28 09:05:38 -06:00
Rick Carlino 2e7db6760e Specs for backend 2018-02-27 14:13:22 -06:00
Rick Carlino fd5aea8013 Add DeviceConfigs. NEXT: Tests, FE Integration 2018-02-27 13:15:02 -06:00
Rick Carlino 985b308c1a API Side: ✔️ 2018-02-26 11:40:26 -06:00
Rick Carlino 73bd6eece6 FarmwareInstallations#create 2018-02-26 11:20:38 -06:00
Rick Carlino 4b719c15e4 Add more tests, remove unreachable code 2018-02-25 09:06:47 -06:00
Rick Carlino 1635e146a6 [UNSTABLE][NEEDS TESTS] Sensor endpoint controller actions 2018-02-17 12:52:49 -06:00
Rick Carlino bd2919e29a [UNSTABLE] Begin `sensor` resource implementation. 2018-02-17 11:43:46 -06:00
Rick Carlino abf8371aa5 Minor updates, fix CI 2018-02-15 17:28:36 -06:00
Rick Carlino 3052a3fd74 update_attributes => update_attributes! 2018-02-15 16:55:23 -06:00
Rick Carlino a8d09cbcbd Debug points 2018-02-15 16:27:55 -06:00
Rick Carlino 34e74bf8f4 Add mode column back, add fbos_version to devices table + TS interfaces. 2018-02-15 15:43:08 -06:00
Rick Carlino 2ea0eae81e First draft of SensorReadingsController (needs tests) 2018-02-15 11:37:03 -06:00
Rick Carlino aa0d401128 Last set of ruby tests 2018-02-13 13:49:53 -06:00
Rick Carlino 504a083077 WIP 2018-02-12 14:34:32 -06:00
Rick Carlino cb1e91a89c (API Only) Allow peripherals for `read_pin`, disallow deletion of peripherals in use 2018-02-12 10:38:19 -06:00
Rick Carlino 3dadb77cc8
Introduce a "Flat IR" for sequence nodes (#655)
This is the first release of the Flat IR storage mechanism.
2018-02-11 13:33:46 -06:00
Rick Carlino 290aed5355
Remove manual SSL renewal endpoint (#629)
* Remove old ACME endpoints

* PublicKeysController spec

* Bring back tests for Peripherals::Edit

* Dead code removal
2018-01-20 10:17:20 -07:00
Rick Carlino 1f564d6df2 Tests for firmware config endpoint 2018-01-08 14:12:56 -06:00
Rick Carlino c0cba9b47a Implement deletion endpoint 2018-01-08 13:44:50 -06:00
Rick Carlino 6a6a39db68 config#update 2018-01-08 13:22:16 -06:00
Rick Carlino 8cf318d30a Change pluralization to be more railsy 2018-01-08 11:45:54 -06:00
Rick Carlino 5572db6ba1 Add config controller(s) 2018-01-08 11:03:18 -06:00
Rick Carlino afeba49e45 ✔️ 2018-01-04 17:22:08 -06:00
Rick Carlino 9bf396bb56 Heroku is doing something with x-Request-Id. Try X-Farmbot-Rpc-Id instead 2017-12-29 12:57:32 -06:00
Rick Carlino 420500362b Comment and breakpoint removal 2017-12-22 11:46:51 -06:00
Rick Carlino 5a99421d10 [UNSTABLE] Fix echo overwrite issue when editing resources locally on fe 2017-12-22 10:24:40 -06:00
Rick Carlino 917a3e69fc Try echo cancelation on prod box 2017-12-21 15:20:37 -06:00
Rick Carlino 70476d5780 noMethodError 2017-12-11 15:22:30 -06:00
Rick Carlino ad5af07583 Add GET api/devices/dump endpoint 2017-12-11 15:08:16 -06:00
Rick Carlino 1bc9cf98e5 Add fbos_version as a param to token creation 2017-12-05 16:17:22 -06:00
Rick Carlino b8dba84706 Breakage is fixed. NEXT: Cleanup 2017-12-04 13:27:08 -06:00
Rick Carlino 44283e020c
Sequence tool updates (#545)
interim_email JWT claim due to FBOS v6 upgrade (temporary)
Stop users from removing tools from slots when in use
Stop users from deleting slots in use by tools in use by sequences
Remove inactive tools from sequence selection list in the editor.
2017-11-29 13:50:17 -06:00