0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-08 18:38:40 +00:00
Commit Graph

757 Commits

Author SHA1 Message Date
Trevor Buckner 134fe7d372 Remove /ip path 2024-10-11 23:15:56 -04:00
Trevor Buckner 52a7ce9866 Merge branch 'master' into v3.15.2 2024-10-11 23:08:41 -04:00
G.Ambatte 4291284252 Merge branch 'master' into experimentalDeploymentIdentification 2024-10-11 11:10:28 +13:00
Víctor Losada Hernández 27f939201d Merge branch 'master' of https://github.com/naturalcrit/homebrewery into fix-vulnerability-admin-pages 2024-10-10 22:54:22 +02:00
Víctor Losada Hernández db618fe2ad linting changes 2024-10-10 22:42:47 +02:00
G.Ambatte d5cda45d4d Merge branch 'master' into addIndexedDM-#3763 2024-10-10 08:50:39 +13:00
Trevor Buckner a9aab5bb0c Add test for error handling deleting notifications 2024-10-09 14:52:56 -04:00
Trevor Buckner 5ca970bdee Typo 2024-10-09 14:46:18 -04:00
Trevor Buckner 9635e1a8eb Change another return to throw 2024-10-09 14:41:37 -04:00
Trevor Buckner 23e3c98a0d Add test for adding notification without dismissKey 2024-10-09 14:40:38 -04:00
Trevor Buckner 346bb0086e Should throw, not return errors, so they land in catch 2024-10-09 14:40:11 -04:00
Trevor Buckner e873dcf3a8 Fix error messages crashing page 2024-10-09 14:35:16 -04:00
Trevor Buckner 269dd6107c Merge branch 'master' into experimentalNotificationDB 2024-10-09 11:12:23 -04:00
G.Ambatte 0bd3b53dd1 Merge branch 'master' into addIndexedDM-#3763 2024-10-09 19:00:45 +13:00
G.Ambatte 291e16b124 Revert to use local consts instead of config vars 2024-10-09 14:57:04 +13:00
David Bolack c4b754e467 Lost a stray ) on update 2024-10-07 14:45:33 -05:00
David Bolack e82411d3d2 Merge branch 'master' into Issue_1958 2024-10-07 14:35:19 -05:00
Trevor Buckner 2a523c4955 Fix links to google drive files in user page
User page was not marking Google Brews as "stubbed" if the brew belongs   to another users' Google Drive or your own credentials are expired (it searches the current user drive for google files and checks if those are stubbed)

This now sets *every* file found on Mongo as "Stubbed", whether the Drive file belongs to the current user or not.
2024-10-06 15:48:10 -04:00
Víctor Losada Hernández 64dd71601c last changes 2024-10-06 19:59:58 +02:00
Víctor Losada Hernández 4968300e7a return correct data 2024-10-06 19:54:41 +02:00
Víctor Losada Hernández 3acb25ce3a adress comments 2024-10-06 19:43:51 +02:00
Víctor Losada Hernández 5eb1456915 fix tests 2 2024-10-03 09:15:08 +02:00
Víctor Losada Hernández a82e9758b3 fix test errors 2024-10-03 09:08:24 +02:00
Víctor Losada Hernández 6adac74f76 updated test 2024-10-03 09:01:12 +02:00
Víctor Losada Hernández 3c3b4d8466 "Updated mock implementation for deleting a notification in admin API test" 2024-10-03 09:00:57 +02:00
Víctor Losada Hernández 9cc4d2d7c5 add last test 2024-10-03 08:53:27 +02:00
Víctor Losada Hernández d216216df7 remove unnecessary methods and comments 2024-10-03 08:48:54 +02:00
Trevor Buckner 84f49aebce Add test for "add notification" 2024-10-01 21:54:22 -04:00
Trevor Buckner 8949248bc4 Example test
Added an example test that queries /admin/notification/all and checks if the response returns a list of notifications.

Since we don't have a real database, we overwrite (mock) NotificationModel to just return some fake data, otherwise the test would crash.
2024-10-01 17:15:36 -04:00
Víctor Losada Hernández d6ca6592a2 remove rateLimiter 2024-10-01 21:58:42 +02:00
Trevor Buckner 0110c6afed Remove duplicate error log for googleActions.list 2024-10-01 15:06:11 -04:00
Trevor Buckner 0e29620710 Remove delayMiddleware and ratelimiter 2024-10-01 14:13:15 -04:00
Trevor Buckner c33b44855a Go back to service account for brew updates 2024-10-01 12:17:30 -04:00
Trevor Buckner e7e35294c6 disable rate limiter 2024-09-30 10:59:43 -04:00
Trevor Buckner e9c45b216c Add retryconfig and forward user ip 2024-09-30 08:31:39 -04:00
Trevor Buckner 66433d9e77 5 requests 2024-09-30 00:45:10 -04:00
Trevor Buckner 3a6750613b express proxy settings 2024-09-30 00:31:58 -04:00
Trevor Buckner a7361f8450 add delay between get and update 2024-09-30 00:14:37 -04:00
Trevor Buckner 32fa272947 reduce rate limit to 60 requests in 5 minutes 2024-09-30 00:03:27 -04:00
Trevor Buckner 68895bdca2 Rate limit /api requests from each IP address
100 requests each 5 minutes.
2024-09-29 23:37:26 -04:00
Trevor Buckner 8ab6a8599d Use personal auth if logged in via google. 2024-09-29 21:47:45 -04:00
Trevor Buckner 58b0e12fcc Update app.js 2024-09-27 00:34:35 -04:00
Trevor Buckner 51f4c83ec0 Update app.js 2024-09-27 00:34:12 -04:00
Trevor Buckner 15fde76209 Merge branch 'master' into v3.15.1 2024-09-27 00:13:32 -04:00
Trevor Buckner 2ba160fe65 Re-remove extra error log for new google brews. 2024-09-27 00:08:23 -04:00
Trevor Buckner c8424e0b10 Remove test that no longer applies 2024-09-26 19:12:19 -04:00
Trevor Buckner ff9a75f6b6 Remove duplicate error logs for google drive update / new
Errors are now logged once in the central error handler in app.js
2024-09-26 19:00:07 -04:00
Trevor Buckner 971be6375e lint 2024-09-20 16:02:09 -04:00
Trevor Buckner 4353c01032 Update server/vault.api.js 2024-09-20 16:01:29 -04:00
Víctor Losada Hernández d09cecedd7 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into sort-in-vault 2024-09-20 20:54:14 +02:00