Commit Graph

368 Commits

Author SHA1 Message Date
Douglas Barone
6332f297cb Replaced all console.log with new logger function 2020-12-18 12:07:33 -04:00
Douglas Barone
4d836c2260 Log function created 2020-12-18 10:53:04 -04:00
Douglas Barone
6aaad16a78 Bugfix 2020-12-18 10:00:45 -04:00
Douglas Barone
4928dd3a73 Refatored UserPrecense functionality 2020-12-17 17:45:12 -04:00
Douglas Barone
9945b58fb1 Added RECENT status 2020-12-17 16:28:09 -04:00
Douglas Barone
ea5e698264 v2.5.0 DB schema 2020-12-17 13:47:43 -04:00
Douglas Barone
b4d0f7af13 Use same date for all entries 2020-12-17 13:15:47 -04:00
Douglas Barone
79d3bc47b9 Extract method 2020-12-17 13:15:22 -04:00
Douglas Barone
a47f05ab18 Handle the zero device case 2020-12-17 13:04:38 -04:00
Douglas Barone
cf21f1534d Better log message 2020-12-17 13:04:06 -04:00
Douglas Barone
738bae1a15 Better filtering 2020-12-17 08:57:38 -04:00
Douglas Barone
ed65680a3b Fix: properly sort itens 2020-12-16 11:24:52 -04:00
Douglas Barone
acbe13a0b1 Sort result 2020-12-16 11:18:45 -04:00
Douglas Barone
37d7f94141 Added prisma-dev script 2020-12-16 09:34:05 -04:00
Douglas Barone
f7cc0f3f07 Update prisma migration 2020-12-15 16:01:39 -04:00
Douglas Barone
9c1c78a4b3 Update prisma 2020-12-15 11:35:45 -04:00
Douglas Barone
c605734d8f Refactor 2020-12-15 11:13:18 -04:00
Douglas Barone
c39c2a7d3a Rename folder 2020-12-14 16:51:43 -04:00
Douglas Barone
d77e131385 Code refactoring 2020-12-14 16:42:38 -04:00
Douglas Barone
58369b0df6 Fix sessionId for cache 2020-12-14 16:22:36 -04:00
Douglas Barone
e872afaf35 Organize project struture 2020-12-14 16:18:28 -04:00
Douglas Barone
6bd6049c02 Fix: set working state properly 2020-12-14 10:42:35 -04:00
Douglas Barone
6ee96e7f16 Bump version to 2.4.0 2020-12-11 11:59:41 -04:00
Douglas Barone
58a7a70040 Optimize query 2020-12-10 20:18:06 -04:00
Douglas Barone
dae45fe928 Extract timeout from entry 2020-12-10 20:09:02 -04:00
Douglas Barone
b77716ebc6 Clean unused variables 2020-12-10 19:56:05 -04:00
Douglas Barone
a7322693d3 Improve Palo Alto user-id mapping using a single POST req 2020-12-10 16:29:14 -04:00
Douglas Barone
3200b8624b Added StatsWidget 2020-12-10 10:11:36 -04:00
Douglas Barone
1cd561bd62 Initialize var properly 2020-12-10 08:28:07 -04:00
Douglas Barone
12db9c49b2 Prevent unnecessary user-id update 2020-12-09 08:30:17 -04:00
Douglas Barone
6599707386 Added totalWifiDevices to stats query. 2020-12-07 14:13:11 -04:00
Douglas Barone
a9d515d1f4 Rename vars 2020-12-05 13:11:59 -04:00
Douglas Barone
f38f358fca Debounce upsertUser 2020-12-05 12:11:44 -04:00
Douglas Barone
05db879b27 Added authUpdated subscription 2020-12-04 18:40:47 -04:00
Douglas Barone
30422ccb24 Adjust userPresence slice 2020-12-04 10:55:12 -04:00
Douglas Barone
2e454ea88f Added onlineUsers to Stats 2020-12-04 10:38:08 -04:00
Douglas Barone
472982a97f Bumped version to 2.3.0 2020-12-03 18:27:51 -04:00
Douglas Barone
023dc39076 UserPresence subscription OK 2020-12-03 17:50:25 -04:00
Douglas Barone
43a2638d18 Refactor authorization extraction 2020-12-03 17:30:35 -04:00
Douglas Barone
fea7befa8a Added support to Subscriptions 2020-12-03 17:27:03 -04:00
Douglas Barone
3f1355c8b8 Added env var 2020-12-03 16:10:20 -04:00
Douglas Barone
87f7ed4cd8 Decouple updateDevicesInfo: delegate to cronTasks 2020-12-02 15:54:49 -04:00
Douglas Barone
5de1bb4f0b Bump version to 2.2.0 2020-12-02 13:54:40 -04:00
Douglas Barone
eccdca4f29 Initial support for user-id mappings 2020-12-02 11:20:27 -04:00
Douglas Barone
52d561f396 Minimal refactoring 2020-12-01 15:19:03 -04:00
Douglas Barone
04a2fb01cb Optimized AD user import 2020-12-01 14:56:20 -04:00
Douglas Barone
95364dc8a7 Removo TODO 2020-11-30 14:56:05 -04:00
Douglas Barone
72a6e577bc Added a cron task to update OUIs 2020-11-30 14:53:43 -04:00
Douglas Barone
73fb2c49ae Added isOnline property to WifiDevice 2020-11-30 14:30:50 -04:00
Douglas Barone
adb6289e99 Wifi views OK 2020-11-30 14:15:19 -04:00
Douglas Barone
94773e52bf Added wifiUsers query 2020-11-27 15:01:55 -04:00
Douglas Barone
d2d6a3a28a WiFi devices page OK 2020-11-27 10:37:28 -04:00
Douglas Barone
63126777cf Minimal refactoring 2020-11-27 08:19:34 -04:00
Douglas Barone
31d067f99d Update Prisma. Bugfix: set user correct in non identified devices 2020-11-26 14:56:01 -04:00
Douglas Barone
8891e40250 Added OUI finder 2020-11-25 14:41:18 -04:00
Douglas Barone
98c743a296 Added fallback firstSeen on create 2020-11-23 15:01:46 -04:00
Douglas Barone
40f6e2875c Bump version 2020-11-20 16:28:45 -04:00
Douglas Barone
4e0d244477 Added initial support to wifi devices listing 2020-11-20 16:17:35 -04:00
Douglas Barone
2abc723d00 Added filtering by IP address 2020-11-20 15:21:23 -04:00
Douglas Barone
b1594643c2 Rename User relation wifiDevices 2020-11-20 15:16:38 -04:00
Douglas Barone
cb6ba1999f Refactor filtering 2020-11-20 15:07:04 -04:00
Douglas Barone
c65b1530b9 Improve wifiDevices query 2020-11-20 11:21:45 -04:00
Douglas Barone
5f9861d932 Added sAMAccountName search to userPresence query 2020-11-20 10:38:48 -04:00
Douglas Barone
de32791c97 Update Babel 2020-11-20 10:19:31 -04:00
Douglas Barone
7ff8a74143 Install correct dependencies 2020-11-20 09:53:52 -04:00
Douglas Barone
639961a73d Replace Puppeteer method for a configured axios 2020-11-20 09:50:57 -04:00
Douglas Barone
f8df9a96b2 Minimal refactor 2020-11-19 15:38:49 -04:00
Douglas Barone
210e5a9b93 Added debounce time constant 2020-11-19 11:38:44 -04:00
Douglas Barone
259678e100 Catch all 2020-11-19 11:34:31 -04:00
Douglas Barone
10a990c5e3 User presence improvements 2020-11-19 11:23:31 -04:00
Douglas Barone
bfa7ec4573 Update README.md 2020-11-19 08:54:27 -04:00
Douglas Barone
86c37cc0b5 Debounce wifiDevices updates 2020-11-18 19:51:16 -04:00
Douglas Barone
72161ff4d0 Improve filtering 2020-11-18 19:43:18 -04:00
Douglas Barone
0431ec1db6 Cisco controller listing OK 2020-11-18 18:34:21 -04:00
Douglas Barone
419d91950b Added initial support to Cisco controller 2020-11-18 17:25:57 -04:00
Douglas Barone
dc442f6d26 Updated READMEs 2020-11-17 17:01:41 -04:00
Douglas Barone
52f39c0fdf Release: 2.0.0 2020-11-17 16:25:00 -04:00
Douglas Barone
61792a0dc5 Minor changes 2020-11-17 15:59:16 -04:00
Douglas Barone
674b66ff19 Change Dockerfile build order 2020-11-17 14:59:50 -04:00
Douglas Barone
76a276fb99 Updated Dockerfile 2020-11-17 14:41:14 -04:00
Douglas Barone
a635589b19 Fix typo 2020-11-17 14:09:16 -04:00
Douglas Barone
5eeb3cdf67 Reflect new enviorement 2020-11-17 12:15:01 -04:00
Douglas Barone
12a3086a22 Added captain-definition file 2020-11-17 11:25:56 -04:00
Douglas Barone
a82f3e037d Fix typos 2020-11-17 10:57:13 -04:00
Douglas Barone
80f9460e52 Catch wifiDevice update inconcistencies 2020-11-16 16:04:21 -04:00
Douglas Barone
5b5dbf61d6 Fix incorrect timestamp 2020-11-16 11:14:22 -04:00
Douglas Barone
f61a50dc83 Updated uuid 2020-11-16 10:03:20 -04:00
Douglas Barone
99a355a456 Updated node-unifi and unifiController.js 2020-11-16 09:16:07 -04:00
Douglas Barone
7a3bab7c61 Updated packages with minor impact 2020-11-16 08:46:14 -04:00
Douglas Barone
3f2966e344 Wait Promisse to logout 2020-11-14 12:36:47 -04:00
Douglas Barone
b5b3c7e301 Remove unnecessary Promisse.All() 2020-11-14 10:10:40 -04:00
Douglas Barone
8f82ea268e Updated bcrypt 2020-11-13 16:07:22 -04:00
Douglas Barone
18880905df Token stats fix 2020-11-13 10:51:42 -04:00
Douglas Barone
51d8bd886d Don't wait update, return db results 2020-11-12 10:34:37 -04:00
Douglas Barone
54cef16f5a Minor fixes 2020-11-11 17:12:37 -04:00
Douglas Barone
a051a6d075 Changed return value of updateDBWithOnlineDevices() 2020-11-11 11:36:40 -04:00
Douglas Barone
ce29ae06e6 Pull merge 2020-11-11 08:47:03 -04:00
Douglas Barone
2e1c579097 Merge branch 'master' of github.com:douglasvbarone/ifms-portal-de-ti 2020-11-11 08:45:43 -04:00
Douglas Barone
e1a9024339 Format cron log 2020-11-11 08:45:04 -04:00
Douglas Barone
1c2d4cedee Format cron log 2020-11-11 08:40:34 -04:00
Douglas Barone
970be4c29c Replace forEach with for of 2020-11-10 17:22:50 -04:00
Douglas Barone
3a29df5df2 Refactor wifiUtils 2020-11-10 17:02:39 -04:00
Douglas Barone
f470be38cb Fixed wifiDevices query 2020-11-10 16:59:48 -04:00
Douglas Barone
1a69ad12e0 Fixed DateTime properties 2020-11-10 16:35:54 -04:00
Douglas Barone
5d86d2785d Typo fix 2020-11-10 15:15:34 -04:00
Douglas Barone
4f5c9d8011 Make user optional in WifiDevice schema 2020-11-10 15:01:59 -04:00
Douglas Barone
f11a39f0e4 Fix updateDBWithOnlineDevices 2020-11-09 22:23:17 -04:00
Douglas Barone
e11967f8f3 Better datetime format on cron jobs timestamps 2020-11-09 22:22:36 -04:00
Douglas Barone
dc4f22853d Added a entry parser for extensionAttribute7 2020-11-09 12:33:27 -04:00
Douglas Barone
07aaf99c17 Replaced momentjs with date-fns in web. 2020-11-09 12:05:21 -04:00
Douglas Barone
55743014e7 Replace momentjs with date-fns 2020-11-09 09:48:24 -04:00
Douglas Barone
3eb905ff6b Refactor prisma imports 2020-11-09 09:38:24 -04:00
Douglas Barone
11ab2f91e8 Refactor for back to forEach 2020-11-09 09:19:36 -04:00
Douglas Barone
27b8875604 Removed unused AND 2020-11-07 09:16:43 -04:00
Douglas Barone
680fb910e2 Optimized userPresence query 2020-11-07 09:14:23 -04:00
Douglas Barone
77c5e7117b Some refactoring 2020-11-06 20:22:26 -04:00
Douglas Barone
7baa5097f9 Migrate to Prisma 2 2020-11-06 16:34:32 -04:00
Douglas Barone
07b607e991 Version 2 initial commit 2020-11-06 09:31:28 -04:00