Zaid Abdulla
306193e6e9
Don't remove root Tags when empty
...
It unnecessarily complicates things.
2017-07-30 04:54:55 -07:00
Zaid Abdulla
9dd6980da2
Further fixes related to the previous commit
2017-06-30 03:55:50 -07:00
Zaid Abdulla
ec1360217b
Some fixes on fetchDevice function
...
Includes a fix for issue where timestamp for nonexisting root params is
not reported which can result in an unnecessary GPN request.
2017-06-27 01:06:02 -07:00
Zaid Abdulla
624cf01270
Support caching in MongoDB instead of Redis
2017-05-08 10:44:42 -07:00
Zaid Abdulla
ca2cce8ab6
Fix exception when adding and removing tags
...
Only happens if adding and removing tags within the same session.
Resolves : #229
2017-04-21 15:05:08 -07:00
Zaid Abdulla
0d9ca3486b
Gracefully handle invalid dateTime param values
2017-04-12 11:03:28 -07:00
Zaid Abdulla
f639435a09
Missing convert Date to timestamp in fetchDevice
2017-03-22 04:08:08 -07:00
Zaid Abdulla
475e3fffbe
Fix bug discovering params if path timestamp is 1
2017-03-17 16:14:27 -07:00
Zaid Abdulla
e137645286
Update license headers
2017-03-10 16:04:28 -08:00
Zaid Abdulla
acaebc729c
Recognize _instance DB field from v1.0
2017-03-07 21:39:42 -08:00
Zaid Abdulla
38e83d8544
Rename some config options
...
Original names are still supported for compatibility.
2017-03-07 11:38:56 -08:00
Zaid Abdulla
2d66da7e9b
Remove deprecated MongoClient connection options
2017-02-15 12:01:42 -08:00
Zaid Abdulla
3223e9733a
Optimize PathSet for V8
...
PathSet.find has been rewritten without using ES6 generators in order
to avoid V8's TurboFan/Crankshift optimization bailout.
2017-02-15 02:19:02 -08:00
Zaid Abdulla
5a5fe0bf19
Fix bug in fetching 1_BOOT event from DB
2017-01-30 07:32:21 -08:00
Zaid Abdulla
310114a500
Some fixes in tasks
2017-01-10 01:54:04 -08:00
Zaid Abdulla
771917a7a6
Clean up old unused code
2017-01-03 21:18:20 -08:00
Zaid Abdulla
d82c2bb350
Do not attempt to close server before it's up
2017-01-01 17:31:31 -08:00
Zaid Abdulla
63407be19b
Generate faults in precondition testing stage
...
Also, queue applicable provisions to any existing fault in order to
be processed later.
2016-12-21 19:44:56 -08:00
Zaid Abdulla
68798b5b12
Add missing new keyword
2016-11-30 16:38:22 -08:00
Zaid Abdulla
3d221afc27
Implement support for download RPC
...
This uses special parameters (Downloads.) to trigger file download
making it poossible to use from scripts declaratively.
Resolves : #171
2016-11-30 16:27:01 -08:00
Zaid Abdulla
044734b567
Some events related fixes
2016-11-03 14:42:38 -07:00
Zaid Abdulla
d50fd3d614
Read/write tags in scripts
2016-11-01 18:14:48 -07:00
Zaid Abdulla
7b0ea61596
Load available timestamp for parameters that don't exist
2016-10-28 16:27:40 -07:00
Zaid Abdulla
600ca58b99
Major restructuring and optimization
2016-10-24 18:26:19 -07:00
Zaid Abdulla
739d215a92
Improve paramter set and load routines
2016-09-21 17:26:21 -07:00
Zaid Abdulla
de1a62b481
Remove some old code
2016-09-21 16:52:15 -07:00
Zaid Abdulla
036368172c
Remove obsolete aliasing feature
2016-09-15 20:52:28 -07:00
Zaid Abdulla
a254ebbe0c
Fix bug where faults in new devices never get saved
2016-09-12 02:26:04 -07:00
Zaid Abdulla
8e450f6ad0
Save _object field when _value is not available
...
When saving device, some parameters may not have _value field. In
such cases, save _object field (false) to avoid type ambiguity.
2016-09-06 01:55:24 -07:00
Zaid Abdulla
89e78b1335
Fix bug when fetching entire device data model
2016-08-29 20:00:32 -07:00
Zaid Abdulla
67bcd7e526
New and improved fault management
...
This introduces the concept of "channel". Presets may belong to different
channels such that if one preset causes a fault, only presets belonging
to the same channel will be paused. Presets in other channels will continue
to be applied.
2016-08-23 01:06:25 -07:00
Zaid Abdulla
12a6cd7d8b
Clear any overlap when using Mongo's $unset operator
2016-08-16 13:12:27 -07:00
Zaid Abdulla
1537603945
Implement path alias unpacking
2016-07-20 03:29:19 +03:00
Zaid Abdulla
788bd98c8c
Some fixes on the last commit
2016-07-13 02:33:39 +03:00
Zaid Abdulla
e5a21d2b40
Massive restructuring to use flat data model representation
...
Good luck reading this commit!
2016-07-12 04:51:24 +03:00
Zaid Abdulla
aee33809b5
Fix bug in DB fetching of root timestamp
2016-04-20 02:14:01 +03:00
Zaid Abdulla
7b18cb3bbf
Virtual parameters
...
Implemented support for user-defined parameters driven by Javascript
code. Renamed scripts collection to provisions.
2016-04-17 18:54:48 +03:00
Zaid Abdulla
48d9adbaff
Scripting in presets
...
User defined scripts can now be used in presets allowing dynamic values
and complex provisioning workflow.
2016-03-26 02:16:37 +03:00
Zaid Abdulla
dff95c3c80
Update dependencies
2016-03-06 06:19:50 +03:00
Zaid Abdulla
c3a956ad27
Remove obsolete code
2016-03-06 04:41:10 +03:00
Zaid Abdulla
19fea2ac72
Use the new session implementation
2016-03-06 04:41:10 +03:00
Zaid Abdulla
89e323ae7c
Stand-alone functions to fetch/save parameters
2016-03-06 04:41:10 +03:00
Zaid Abdulla
ee9a35b9b3
Ability to specify per device, per product class, or per oui configuration. Reimplemented Libxmljs options on the new configuration system.
2014-08-06 00:45:24 +03:00
Zaid Abdulla
d5dc7b36df
Flush redis after configuration changes that could affect cache integrity.
2014-08-01 22:30:03 +03:00
Zaid Abdulla
32c56f8ff1
Accept configuration from environment variables or command line arguments. Unified cluster and HTTP server code for CWMP, NBI, and FS.
2014-07-31 01:44:53 +03:00
Zaid Abdulla
5d0f398bf7
Using a single connection URL to configure MongoDB connection.
2014-07-28 18:44:36 +03:00
Zaid Abdulla
1c902af363
Wait for connections to MongoDB and redis to be established on startup. Added configuration option to specify redis DB.
2014-07-19 06:54:09 +03:00
Zaid Abdulla
a4f1d0dc2a
Added copyright and permission header to source files.
2014-07-12 23:53:01 +03:00
Zaid Abdulla
236a0241ba
Better file structure and naming
2014-03-09 19:59:34 +03:00