Zaid Abdulla
89e78b1335
Fix bug when fetching entire device data model
2016-08-29 20:00:32 -07:00
Zaid Abdulla
41fb97adef
Use variable to store active sessions
...
Keep session data in process for as long as the TCP connectoin is
open. Use redis if connection closes before the session is over.
2016-08-29 00:17:01 -07:00
Zaid Abdulla
e6aab4229d
A few fixes
2016-08-26 00:14:29 -07:00
Zaid Abdulla
1fe46061e0
Fix bug in GetParameterNames method
2016-08-24 19:00:24 -07:00
Zaid Abdulla
3fe418e0c8
Include channel, events, and schedule when hashing presets
2016-08-23 23:29:19 -07:00
Zaid Abdulla
96286b9d10
Implement API to delete faults
2016-08-23 21:01:56 -07:00
Zaid Abdulla
62fca64268
Include device ID and channel in faults
2016-08-23 21:01:03 -07:00
Zaid Abdulla
b8012c8698
Generic function to sanitize value types in Mongo query
2016-08-23 20:59:12 -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
0a5697f06a
Implement creating and deleting instances
2016-08-16 13:28:50 -07:00
Zaid Abdulla
ac759e1d04
Clear descendants when a parameter is deleted
2016-08-16 13:17:14 -07:00
Zaid Abdulla
0b70658cd3
Unpacked parameters are now sorted
2016-08-16 13:12:52 -07:00
Zaid Abdulla
12a6cd7d8b
Clear any overlap when using Mongo's $unset operator
2016-08-16 13:12:27 -07:00
Zaid Abdulla
5fd869c6b9
Convert collection name to camel case in query API
2016-07-21 06:14:36 +03:00
Zaid Abdulla
d4ce4afcb3
Bumped version number to 1.1.0-alpha
...
And updated dependencies.
2016-07-20 09:04:58 +03:00
Zaid Abdulla
2ec8addacc
Add missing var keyword
2016-07-20 08:50:11 +03:00
Zaid Abdulla
a1ce53bf03
Implement preset triggers on device events
2016-07-20 08:47:37 +03:00
Zaid Abdulla
d9f8b1c695
Implement cron-like scheduling for presets
2016-07-20 07:03:24 +03: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
18e7e9e615
Add missing "new" operator to create Script objects
2016-07-12 04:13:27 +03:00
Zaid Abdulla
6a5a31eb72
VersionedMap class
...
This is a map class similar to ES6 Map but with support for revisioning and
diff'ing.
2016-07-12 04:00:57 +03:00
Zaid Abdulla
5bd2b115ee
PathSet class
...
This class holds a set of paths represented as a string array. It makes it
possible to efficiently search paths using wildcards.
2016-07-12 03:53:45 +03:00
Zaid Abdulla
78ecbba875
Fix a couple of edge cases in parsePath
2016-04-22 12:54:35 +03:00
Zaid Abdulla
1f7fa7f1b3
Support aliased paths in parsePath
2016-04-21 14:43:46 +03:00
Zaid Abdulla
4187b812f3
Implement compatibility shim for tasks
...
Tasks need to be deprecated and replaced with a better solution. This
patch adds support for tasks until a better approach is implemented.
2016-04-20 02:35:56 +03:00
Zaid Abdulla
eb20581033
Fix bug in generateRpc causing infinite GPN
2016-04-20 02:19:14 +03:00
Zaid Abdulla
aee33809b5
Fix bug in DB fetching of root timestamp
2016-04-20 02:14:01 +03:00
Zaid Abdulla
7ced8fef3d
Fix bug in set value configuration
2016-04-19 13:18:14 +03:00
Zaid Abdulla
27e9882071
Initial implementation of user extensions
2016-04-19 03:18:48 +03:00
Zaid Abdulla
8ac94474aa
Few fixes in RPC generation routines
2016-04-19 03:07:32 +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
359ff44819
Use 1 instead of 0 if no declaration timestamp is given
2016-04-17 18:04:53 +03:00
Zaid Abdulla
3ebab84e56
Fix bug in traverse function in device
2016-04-17 18:02:06 +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
ba33fc0fe0
Add CONTRIBUTING.md
2016-03-16 21:08:38 +03:00
Zaid Abdulla
1bdfef1537
Fix crash caused by wrong variable name
...
Resolves #137 .
2016-03-07 14:53:01 +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
5acfa206f2
New session implementation
...
A new implementation of a TR-069 session that takes a declarative
approach and makes use of the new data model functions.
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
2012004299
Device data model functions
...
A set of functions for efficiently querying and manipulating a data
structure representing a device. The data structure also holds
declarations which are used to indicate what needs to be synced from
and to the device.
2016-03-06 04:41:10 +03:00
Zaid Abdulla
53baa8dc78
Fix null value type bug in simulator
2016-03-06 04:41:02 +03:00
Zaid Abdulla
973e82cf94
Fix alias unpacking bug in queries with $ne operator
2016-03-04 22:01:42 +03:00
Zaid Abdulla
7606d25e4b
Merge pull request #133 from rplatel/download-arbitrary-url
...
Allow downloads from arbitrary URLS
2016-02-24 01:44:09 +03:00
Richard Platel
cfc04ee77a
Allow downloads from arbitrary URLS
...
If the download task contains a 'url', instruct the device to download
from that URL instead of genieacs-fs.
2016-02-19 18:45:21 +00:00
Zaid Abdulla
2aaec7bde5
Fix sorting bug in API
2016-01-13 18:14:21 +03:00
Zaid Abdulla
f99cf20580
Fix bug preventing saving of boot and bootstrap timestamps
2016-01-06 22:40:24 +03:00