Commit graph

299 commits

Author SHA1 Message Date
prateek banga
549dcc493d lint fix 2023-11-16 01:33:05 +05:30
prateek banga
c24664f5d9 removes internal provider 2023-11-16 01:30:47 +05:30
prateek banga
161bbfb822 Merge branch '1.4.x' of https://github.com/appwrite/appwrite into sync-1.4.x-to-1.5.x 2023-10-20 14:55:17 +05:30
Christy Jacob
be26e4b729 chore: remove resque library and update health check endpoints 2023-10-18 19:44:06 +00:00
shimon
593e5ab316 some fixes 2023-10-17 22:08:01 +03:00
shimon
56f565bf30 addressing some comments 2023-10-17 07:23:33 +03:00
shimon
e8dbd043ec addressing some comments 2023-10-17 07:02:54 +03:00
shimon
9a6d88a819 addressing some comments 2023-10-17 06:44:36 +03:00
shimon
0e2cf14e12 minor fix 2023-10-16 18:17:13 +03:00
Shimon Newman
710ac707e3
Update src/Appwrite/Event/Audit.php
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
2023-10-16 18:11:29 +03:00
Prateek Banga
0b1b7646d5 review changes 2023-10-13 18:26:54 +05:30
Jake Barnby
1ac3372239
Set queue name per worker 2023-10-12 17:55:30 +13:00
Jake Barnby
096a529618
Revert "Merge branch 'feat-db-per-process' of github.com:appwrite/appwrite into feat-db-per-process"
This reverts commit 6f42305484, reversing
changes made to 69abd222e8.
2023-10-12 15:30:01 +13:00
Jake Barnby
6f42305484
Merge branch 'feat-db-per-process' of github.com:appwrite/appwrite into feat-db-per-process
# Conflicts:
#	bin/worker-databases
#	src/Appwrite/Event/Database.php
#	src/Appwrite/Platform/Workers/Databases.php
2023-10-12 15:28:52 +13:00
Jake Barnby
69abd222e8
Simplify 2023-10-12 15:26:01 +13:00
Jake Barnby
7a78f49eb9
Allow multiprocess for db queue 2023-10-12 15:23:16 +13:00
Jake Barnby
5d845208d9
Simplify 2023-10-12 15:02:53 +13:00
Jake Barnby
d238d79e29
Allow multiprocess for db queue 2023-10-11 21:28:29 +13:00
Prateek Banga
a77a212e2c adds scheduling for messaging worker 2023-10-09 17:29:26 +05:30
Prateek Banga
d842191cc6 Merge branch '1.5.x' of https://github.com/appwrite/appwrite into feat-mailgun-provider 2023-10-06 03:53:16 +05:30
Prateek Banga
22d445587e review changes 2023-10-05 16:57:48 +05:30
Prateek Banga
48b91e39a8 review changes 2023-10-04 16:15:59 +05:30
shimon
b02d51c794 migrations worker 2023-10-01 20:39:26 +03:00
shimon
c4bd6e008e Merge branch 'master' of github.com:appwrite/appwrite into refactor-workers
 Conflicts:
	.env
	app/cli.php
	app/config/collections.php
	app/console
	app/controllers/api/account.php
	app/controllers/api/databases.php
	app/controllers/api/functions.php
	app/controllers/api/projects.php
	app/controllers/api/storage.php
	app/controllers/api/teams.php
	app/controllers/api/users.php
	app/controllers/general.php
	app/controllers/shared/api.php
	app/init.php
	app/worker.php
	app/workers/audits.php
	app/workers/builds.php
	app/workers/certificates.php
	app/workers/databases.php
	app/workers/deletes.php
	app/workers/functions.php
	app/workers/mails.php
	bin/worker-usage
	composer.json
	composer.lock
	docker-compose.yml
	src/Appwrite/Event/Delete.php
	src/Appwrite/Event/Mail.php
	src/Appwrite/Platform/Tasks/Maintenance.php
2023-09-27 18:51:17 +03:00
Prateek Banga
234f7f003b updated test cases for msg91 provider, moves worker to use provider from settings 2023-09-27 18:58:00 +05:30
Binyamin Yawitz
5cb03da001 Extracting function event validator to its own class. 2023-09-11 23:24:11 -04:00
prateek banga
38d81c058b lint fix 2023-09-05 23:10:33 +05:30
prateek banga
78a53aee37 adds messaging event and updates messaging worker 2023-09-05 22:40:48 +05:30
shimon
ec93239630 Merge branch 'master' of github.com:appwrite/appwrite into refactor-cache-poc
 Conflicts:
	app/config/collections.php
	app/controllers/api/storage.php
	app/controllers/shared/api.php
	app/init.php
	app/workers/deletes.php
2023-09-05 19:19:59 +03:00
Matej Bačo
c98d5bd3cd Fix SMTP after QA 2023-08-29 11:40:30 +02:00
Bradley Schofield
77aa48c22a Update Mail.php 2023-08-28 06:53:29 +01:00
Bradley Schofield
608b6b3847
Continue work 2023-08-27 23:45:37 +01:00
Matej Bačo
596e59f2cc response format fix, smtp QA fixes 2023-08-25 17:13:25 +02:00
Matej Bačo
ec82fec59f Re-enable assistant 2023-08-12 21:08:44 +02:00
Matej Bačo
c24e2786fb Even more PR review changes 2023-08-11 18:52:13 +02:00
Matej Bačo
f0125ac3bb PR review changes 2023-08-11 18:44:05 +02:00
Matej Bačo
c6684ee7f8 PR review changes 2023-08-11 16:45:36 +02:00
Matej Bačo
899bc38069 Merge branch 'cl-1.4.x' into feat-git-integration 2023-08-10 01:12:09 +02:00
Bradley Schofield
91c82f0d7d Merge remote-tracking branch 'origin/cl-1.4.x' into feat-implement-migrations 2023-08-07 16:09:28 +01:00
Matej Bačo
906f86fbb8 Merge branch 'cloud-1.4.x' into feat-git-integration 2023-08-06 09:31:32 +02:00
Steven Nguyen
d960f85da6
Merge branch '1.4.x' into cloud-1.4.x 2023-08-04 18:07:33 -07:00
Bradley Schofield
8f5d79e668 Move to new branch 2023-08-04 17:21:41 +01:00
Matej Bačo
280b2fc994 Rename repositories and installation IDs 2023-07-30 11:51:13 +02:00
Khushboo Verma
1ed5d395be Add vcs prefix to variable names 2023-07-28 13:11:26 +05:30
shimon
2f7b0c9938 added bucketId to cache::deleteByResource 2023-07-22 17:31:33 +03:00
shimon
bed88baa6c added bucketId to cache::deleteByResource 2023-07-22 17:08:28 +03:00
Damodar Lohani
f59d3563f4 Merge remote-tracking branch 'origin/feat-db-pools-master' into feat-db-pools-db-pools-master-sync 2023-07-10 03:06:48 +00:00
Matej Bačo
3a8f4e5039 Fix failing builds 2023-06-28 13:31:35 +02:00
Khushboo Verma
860b4fb1c0 WIP: Build from template 2023-06-17 17:43:02 +05:30
shimon
d820d93ac7 databases worker 2023-06-04 19:25:56 +03:00
shimon
0d2987620c refactor workers 2023-06-04 11:19:49 +03:00
Christy Jacob
36f1791a92 chore: linter 2023-06-02 17:59:20 +05:30
shimon
6e7c160249 changing event signature 2023-06-02 06:54:34 +03:00
Steven Nguyen
2ee7a3a356
Prevent triggering a function off of a function 2023-05-31 16:02:46 -07:00
shimon
f1466c05cf refactor workers 2023-05-29 16:58:45 +03:00
shimon
432ee72071 Merge branch 'feat-db-pools' of github.com:appwrite/appwrite into refactor-workers
 Conflicts:
	app/cli.php
	app/console
	app/controllers/api/account.php
	app/controllers/api/functions.php
	app/controllers/api/teams.php
	app/controllers/shared/api.php
	app/init.php
	app/worker.php
	app/workers/builds.php
	app/workers/certificates.php
	app/workers/deletes.php
	app/workers/functions.php
	app/workers/mails.php
	src/Appwrite/Event/Event.php
	src/Appwrite/Event/Mail.php
2023-05-22 18:41:24 +03:00
Matej Bačo
18105d4999 Remove repository owner 2023-05-22 15:02:55 +02:00
Matej Bačo
6e515e3cc4 Copy Khushboo's integration from feat-peach-q1-kh 2023-05-22 12:58:13 +02:00
Damodar Lohani
518c177c23 fix error 2023-05-11 07:51:39 +00:00
Damodar Lohani
472265497b fix formatting and error 2023-05-11 06:12:39 +00:00
Damodar Lohani
b147cadaa2 don't overwrite the paused state from the event 2023-04-26 08:41:22 +00:00
Damodar Lohani
b5379f0f0c feature to pause events 2023-04-26 08:37:38 +00:00
Damodar Lohani
0177ddccb3 use custom templates to send email when enabled 2023-04-19 08:29:29 +00:00
Matej Baco
ed610fcdd4 Address TODOs 2023-03-14 11:13:03 +00:00
Damodar Lohani
82498459db update project smtp using hook 2023-03-13 09:21:16 +00:00
Damodar Lohani
68aed2c691 update getter and setter 2023-03-13 06:23:23 +00:00
Damodar Lohani
3b900c5dfb get and set SMTP config in mail event 2023-03-12 02:12:09 +00:00
Damodar Lohani
5acd78463a Merge remote-tracking branch 'origin/feat-db-pools' into feat-db-pools-master-sync 2023-02-16 00:44:29 +00:00
Matej Bačo
e4d784c871 Add new V3 parameters 2023-02-14 11:01:38 +00:00
shimon
9a2f734d3a compose.lock 2023-01-12 18:06:20 +02:00
Damodar Lohani
f41e3b1e8f Merge remote-tracking branch 'origin/master' into feat-db-pools-master-sync 2023-01-12 07:25:23 +00:00
shimon
4198cbfca5 moved reduce after delete document to usage-worker 2022-12-28 18:27:26 +02:00
shimon
5e394fed5d refactor usage worker 2022-12-21 21:03:09 +02:00
Bradley Schofield
c0daed3644 Refactor names and cleanup code 2022-12-20 16:11:30 +00:00
Bradley Schofield
1cd84aacc7 Update Event.php 2022-12-20 13:06:57 +00:00
Bradley Schofield
b0c8e8980d Continue removing resque 2022-12-20 12:48:55 +00:00
Bradley Schofield
886a1a2abb Port Deletes and Builds worker 2022-12-20 12:22:58 +00:00
Bradley Schofield
f2e8a619da Merge branch 'refactor-scheduler-messaging' into refactor-schedulers-workers 2022-12-20 11:24:58 +00:00
Bradley Schofield
6f3a057608 Merge branch 'refactor-scheduler-emails' into refactor-schedulers-workers 2022-12-20 11:24:26 +00:00
Bradley Schofield
11bd518b6a Merge branch 'refactor-scheduler-database' into refactor-schedulers-workers 2022-12-20 11:23:26 +00:00
Bradley Schofield
169386d0b3 Merge branch 'refactor-sceduler-certificates' into refactor-schedulers-workers 2022-12-20 11:20:52 +00:00
Bradley Schofield
d52fa1169a Merge Audits 2022-12-20 11:11:36 +00:00
Bradley Schofield
a09e23d0b9 Start work on porting webhooks 2022-12-20 11:07:49 +00:00
shimon
18f192ed65 benchmarks 2022-12-19 10:25:49 +02:00
Bradley Schofield
ab7c04074c Update Phone.php 2022-12-17 21:23:15 +00:00
Bradley Schofield
a8595eaca2 Port Messages worker to Utopia queue system 2022-12-17 20:45:58 +00:00
Bradley Schofield
2e49666ee6 Port Mail Worker from resque to Utopia Queue 2022-12-17 19:19:41 +00:00
shimon
7601c9047b e2e tests 2022-12-15 11:45:43 +02:00
shimon
285bfe9fd7 e2e tests 2022-12-15 09:56:06 +02:00
Damodar Lohani
42c855cb41 feat: make mails event and worker general 2022-12-14 06:23:14 +00:00
Bradley Schofield
6e6a6d5518 Migrate Database worker to Utopia Queue system 2022-12-13 15:54:01 +00:00
Bradley Schofield
21afa43127 Port Certificates to new Queue system 2022-12-13 11:16:12 +00:00
shimon
4c6b6d00e8 functions api usage 2022-12-07 19:56:38 +02:00
Bradley Schofield
84f1a15a4c Refactor Audit Worker to use Utopia Queue system 2022-12-06 15:06:40 +00:00
shimon
f44ee4ec90 updates 2022-12-06 13:36:17 +02:00
shimon
b71bba2a9c updates 2022-12-04 19:06:23 +02:00
Eldad Fux
db345fae41 WIP 2022-11-24 09:53:52 +02:00
Matej Baco
418a432d6c Merge branch 'feat-db-pools' into fix-init-retry 2022-11-18 08:10:11 +01:00
Christy Jacob
080abbbb79 Merge branch 'master' of github.com:appwrite/appwrite into feat-add-console 2022-11-17 20:26:10 +05:30
Matej Baco
2220222f48 Merge branch 'feat-db-pools' into fix-init-retry 2022-11-16 20:43:31 +01:00
Matej Baco
762d52bca8 Fix failing tests 2022-11-16 20:39:35 +01:00
Christy Jacob
a34223748b fix: return types 2022-11-16 17:32:35 +00:00
Matej Baco
5f8d3ff6ee More PR reviews 2022-11-16 14:50:12 +01:00
Christy Jacob
e976bd3cb1 fix: event triggers 2022-11-16 11:22:19 +05:30
Christy Jacob
8b0a78bb36 fix: function events and linter 2022-11-16 11:00:57 +05:30
Matej Baco
44a82de09b Refactor func event triggering 2022-11-15 19:13:17 +01:00
Damodar Lohani
60f2d10a50 update variable namings 2022-10-28 09:54:56 +00:00
Damodar Lohani
a0a0ef2386 update docblock comments and naming 2022-10-28 08:40:04 +00:00
Damodar Lohani
c8b5301267 update maintenance to delete only hourly metrics older than 3 months 2022-10-23 07:29:13 +00:00
Damodar Lohani
3ed3ef9d71 rename variable 2022-10-23 04:46:23 +00:00
shimon
1d382cc542 small fix 2022-09-13 10:42:42 +03:00
shimon
f63c740917 decouple audits log from events 2022-09-04 11:45:53 +03:00
shimon
dab844308b dateTime bug fix in the deletes worker
dateTime small fix
2022-08-31 16:07:27 +03:00
Jake Barnby
7019be987c Merge remote-tracking branch 'origin/0.16.x' into origin/datetime-attributes
# Conflicts:
#	app/config/specs/open-api3-latest-client.json
#	app/config/specs/open-api3-latest-console.json
#	app/config/specs/open-api3-latest-server.json
#	app/config/specs/swagger2-latest-client.json
#	app/config/specs/swagger2-latest-console.json
#	app/config/specs/swagger2-latest-server.json
#	app/controllers/api/account.php
#	app/controllers/api/users.php
#	app/controllers/shared/api.php
#	app/workers/deletes.php
#	composer.lock
#	docker-compose.yml
#	phpunit.xml
#	src/Appwrite/Event/Delete.php
2022-08-19 16:20:19 +12:00
shimon
0dc485d8d7 some fixes 2022-08-15 12:05:41 +03:00
fogelito
7e08575245 builds, stats 2022-07-11 18:12:41 +03:00
Torsten Dittmann
6931116561 fix: assoc events array from events class 2022-06-22 16:44:30 +02:00
Damodar Lohani
8f14f5aa21
Database layer (#3338)
* database response model

* database collection config

* new database scopes

* database service update

* database execption codes

* remove read write permission from database model

* updating tests and fixing some bugs

* server side tests are now passing

* databases api

* tests for database endpoint

* composer update

* fix error

* formatting

* formatting fixes

* get database test

* more updates to events and usage

* more usage updates

* fix delete type

* fix test

* delete database

* more fixes

* databaseId in attributes and indexes

* more fixes

* fix issues

* fix index subquery

* fix console scope and index query

* updating tests as required

* fix phpcs errors and warnings

* updates to review suggestions

* UI progress

* ui updates and cleaning up

* fix type

* rework database events

* update tests

* update types

* event generation fixed

* events config updated

* updating context to support multiple

* realtime updates

* fix ids

* update context

* validator updates

* fix naming conflict

* fix tests

* fix lint errors

* fix wprler and realtime tests

* fix webhooks test

* fix event validator and other tests

* formatting fixes

* removing leftover var_dumps

* remove leftover comment

* update usage params

* usage metrics updates

* update database usage

* fix usage

* specs update

* updates to usage

* fix UI and usage

* fix lints

* internal id fixes

* fixes for internal Id

* renaming services and related files

* rename tests

* rename doc link

* rename readme

* fix test name

* tests: fixes for 0.15.x sync

Co-authored-by: Torsten Dittmann <torsten.dittmann@googlemail.com>
2022-06-22 12:51:49 +02:00
Torsten Dittmann
70c98b0cfc feat: messaging worker 2022-06-08 15:57:34 +02:00
Everly Precia Suresh
3b14ccb7d4 fix linting issues 2022-06-02 13:09:04 +00:00
Everly Precia Suresh
d41aff1861 fix linting issues 2022-06-02 13:03:37 +00:00
Everly Precia Suresh
19300ccdd7 format files in app, src, tests 2022-05-23 14:54:50 +00:00
Torsten Dittmann
8290d1a562 fix: event return type 2022-05-16 19:16:08 +02:00
Torsten Dittmann
20c7b931ef fix: phpdocs 2022-05-16 19:15:38 +02:00
Torsten Dittmann
2d98401b62 fix: 0.14.x review 2022-05-16 14:22:06 +02:00
Torsten Dittmann
4b632b13ea fix: merge sync leftover 2022-05-11 19:05:43 +02:00
Torsten Dittmann
7dc5d0e2be fix: event class 2022-05-10 15:03:34 +02:00
Torsten Dittmann
0f89e28116 docs: fix php delete class phpdocs 2022-05-10 14:33:31 +02:00
Torsten Dittmann
28588d83cf docs: fix php docs in event classes 2022-05-10 14:31:20 +02:00
Torsten Dittmann
54dd808232 docs: fix audit class phpdocs 2022-05-10 14:28:06 +02:00
Torsten Dittmann
95317d87b8 fix: event validator 2022-05-08 16:31:32 +02:00
Torsten Dittmann
12557f7143 Merge branch '0.14.x' of https://github.com/appwrite/appwrite into feat-new-event-model 2022-04-25 16:40:59 +02:00
Torsten Dittmann
d85c341875 fix: events config 2022-04-20 15:34:55 +02:00
Torsten Dittmann
224c34b6a6 fix: remove usage queue 2022-04-19 15:28:30 +02:00
Torsten Dittmann
033bbec261 fix: usage and build 2022-04-19 15:13:55 +02:00
Torsten Dittmann
7790d72c0c fix: realtime, tests and webhooks 2022-04-18 18:21:45 +02:00
Torsten Dittmann
8ec435ed1f sync: changes 2022-04-17 22:34:32 +02:00
Torsten Dittmann
87b8fc3c41 feat: event classes for different cases 2022-04-13 14:39:31 +02:00
Torsten Dittmann
2f9b9445dd sync with devices 2022-04-04 08:30:07 +02:00
Torsten Dittmann
6de577191b feat: event model parsing 2022-03-29 11:30:57 +03:00
Christy Jacob
fa006e9963 feat: replace strings with constant 2022-01-31 13:46:24 +04:00
Eldad Fux
f7497784d3 Backward compatibility 2021-08-01 16:37:59 +03:00
Eldad Fux
95dacecf3a Removed the tasks service 2021-07-27 17:16:12 +03:00
kodumbeats
90b280a014 Outline database resque worker 2021-06-17 14:22:06 -04:00
Christy Jacob
dce89663b0 patch: review comments 2020-12-27 23:27:35 +05:30
Christy Jacob
fab01abe33 patch: added classname and queue names as constants in event 2020-12-22 18:21:46 +05:30
Eldad Fux
49aed67ad9 Fix for events memory management +
merged functions and webhooks events
2020-12-07 10:51:12 +02:00
Eldad Fux
c3c6a5fea0 Reset event after trigger 2020-07-04 16:06:23 +03:00
Eldad Fux
8d3465e29f Added a vendor namespace to all local libs 2020-03-24 19:56:32 +02:00