1
0
Fork 0
mirror of synced 2024-07-05 06:31:08 +12:00
Commit graph

108 commits

Author SHA1 Message Date
Jake Barnby 37522ea66f
Merge branch '1.5.x' into fix-catch-exception 2024-02-13 12:47:36 +13:00
Jake Barnby 18f7168160
Merge main 2024-02-12 14:18:19 +13:00
Steven Nguyen 4ace8ed027
Replace catching \Exception with \Throwable
\Exception doesn't work as a catch-all because not everything extends
\Exception. For example, there was a problem where the messaging worker
didn't catch an exception here:

} catch (\Exception $e) {
    $deliveryErrors[] = 'Failed sending to targets ' . $batchIndex + 1 . '-' . \count($batch) . ' with error: ' . $e->getMessage();
} finally {

As such, $deliveryErrors stayed as an empty array. In this case, the
$adapter->send() threw a TypeError which extends Error which implements
Throwable. Updating the catch to catch \Throwable ensures the error is
caught and $deliveryErrors gets updated.
2024-02-08 01:17:54 +00:00
Khushboo Verma 7902defe69 Addressed PR comments 2023-11-17 19:29:57 +05:30
Khushboo Verma c34dc4dae0 Add flag to send logs to logger 2023-11-16 23:51:09 +05:30
Matej Bačo 967854d34a Fix grammar 2023-11-13 14:39:33 +01:00
Matej Bačo a029287e5a Implement health tresholds 2023-11-13 14:07:11 +01:00
Christy Jacob d33b8c2ce1
Merge branch '1.4.x' into fix-null-password-history 2023-11-09 07:44:44 -08:00
shimon dd9d8010c1 db health api throws an error when ping fails 2023-11-08 15:20:50 +02:00
Steven Nguyen 9f7bbe4869 Fix the Health service's get X queue endpoints
Before this, the endpoints called $client->sumProcessingJobs() which
only gets the currently processing jobs, but this endpoint should return
what's currently in queue, pending to be processed. This should be
retrieved using $client->getQueueSize().
2023-11-03 16:57:30 +00:00
Christy Jacob 18dc8749d5 chore: update health API 2023-10-19 09:25:38 +00:00
Steven Nguyen 1d7c9d84d2
Fix get database queue endpoint params
A path param cannot be optional so change it to a query param.
2023-10-18 17:42:27 -07:00
Christy Jacob 3d7cd91176 chore: fix injections 2023-10-18 19:54:56 +00:00
Christy Jacob be26e4b729 chore: remove resque library and update health check endpoints 2023-10-18 19:44:06 +00:00
Christy Jacob 9fa93e0449 chore: review comments 2023-09-27 22:13:03 +00:00
Matej Bačo e58bf7f695 Rename audits back to logs 2023-09-27 21:24:56 +00:00
Matej Bačo 5120152369 Add all worker health endpoints 2023-09-27 21:24:41 +00:00
Vincent (Wen Yu) Ge 86f0e6008c
Merge branch 'master' into sentence-case 2023-09-27 11:11:58 -04:00
Dakshi 16a2135d4a updated based on review 2023-08-02 02:19:20 +05:30
Dakshi 12228ccef4 converted desc to sentence case 2023-08-01 20:56:48 +05:30
Matej Baco 91de1cbcf3 Fix bug 2022-11-18 15:22:46 +01:00
Matej Baco 762d52bca8 Fix failing tests 2022-11-16 20:39:35 +01:00
Eldad Fux d51c379514 Fixed linter errors 2022-10-19 11:35:30 +03:00
Eldad Fux 65e004f145 Fixed health API and add new test endpoints 2022-10-17 14:43:57 +03:00
Christy Jacob 3b802e9ba6 Merge branch 'master' of github.com:appwrite/appwrite into feat-db-pools 2022-09-27 20:59:50 +05:30
Christy Jacob d2bf8b25de feat: update db pools 2022-08-13 13:27:04 +05:30
Bradley Schofield 96c6c0ff00 Migrate all exceptions to new signature 2022-07-26 15:24:32 +01:00
Christy Jacob 42f0bddd60 feat: merge and fix conflicts 2022-07-15 13:54:27 +04:00
Christy Jacob 1c1a635d5a feat: rename db to consoleDB 2022-06-30 13:01:29 +02:00
Everly Precia Suresh 19300ccdd7 format files in app, src, tests 2022-05-23 14:54:50 +00:00
Torsten Dittmann 3990ef7fa2 Merge branch 'master' of https://github.com/appwrite/appwrite into 0.14.x 2022-05-08 17:15:25 +02:00
Everly Precia Suresh 2729237edc retrigger build 2022-05-02 15:04:14 +00:00
Everly Precia Suresh fd3a802a30 regroup namespaces 2022-05-02 14:34:01 +00:00
Everly Precia Suresh d2008d33a5 refactor health.php 2022-05-02 14:28:36 +00:00
Torsten Dittmann 224c34b6a6 fix: remove usage queue 2022-04-19 15:28:30 +02:00
Christy Jacob da7512e050 Merge branch '0.13.x' of github.com:appwrite/appwrite into feat-add-error-codes 2022-02-17 02:25:29 +04:00
Damodar Lohani 17c3491d27 use storage from resource instead 2022-02-15 08:43:57 +00:00
Christy Jacob 6e88817831 feat: use general server errors in health API 2022-02-07 00:55:45 +04:00
Christy Jacob 53807ab47c feat: update error codes in the health API 2022-02-06 21:21:47 +04:00
Torsten Dittmann 753824428a fix: throw exception when antivirus is not available 2022-01-03 10:50:52 +01:00
Matej Baco c8d7148903 Tests fixed 2021-12-20 12:34:48 +01:00
Matej Baco e065470ffc Merge branch 'feat-database-indexing' into feat-health-api-response-models 2021-12-20 12:09:50 +01:00
Matej Baco 29076758ac Updated tests, fixed response models 2021-12-16 13:19:04 +01:00
Matej Baco 24c2ef67d4 Updated antivirus spelling 2021-12-15 12:02:01 +01:00
Matej Baco ea7b5970c3 Post-PR review fixes 2021-12-15 11:19:29 +01:00
Matej Bačo 5b1378d324
Apply suggestions from code review
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
2021-12-15 11:09:43 +01:00
Matej Bačo 77d6ea8890
Apply suggestions from code review
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
2021-12-15 11:06:26 +01:00
Matej Baco 5d373e1ce7 Created Response models + applied them 2021-12-14 15:17:55 +01:00
Torsten Dittmann d099b0133c Merge branch 'master' of https://github.com/appwrite/appwrite into feat-database-indexing 2021-11-17 11:39:03 +01:00
Torsten Dittmann 3741786e07
Merge pull request #2225 from PineappleIOnic/health-improve-db-test
Improve health check for Database
2021-11-08 10:42:55 +01:00