1
0
Fork 0
mirror of synced 2024-09-20 03:17:30 +12:00
Commit graph

295 commits

Author SHA1 Message Date
Prateek Banga
35d842171c review changes 2023-09-20 23:37:10 +05:30
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
prateek banga
1762c81b8d Merge branch 'feat-messages-event-config' into feat-mailgun-provider 2023-08-31 18:32:26 +05:30
Jake Barnby
3d0ae4b9d9
Remove invites codes 2023-08-30 00:31:38 -04:00
prateek banga
2c4e90d660 removes unnecessary test case 2023-08-25 19:48:21 +05:30
prateek banga
d7c8562260 removes target controllers from account service 2023-08-25 16:02:46 +05:30
Matej Bačo
293e44e91e Introduce SMTP ping timeout 2023-08-24 13:04:49 +02:00
prateek banga
a87745f685 fix tests 2023-08-24 15:37:59 +05:30
prateek banga
a95c29d546 lint fix 2023-08-24 01:55:08 +05:30
prateek banga
ec54000263 adds test for target controllers 2023-08-24 01:54:25 +05:30
prateek banga
ac33d7828f Revert "Pint linter ran"
This reverts commit bf5f0a8419.
2023-08-24 01:53:52 +05:30
wess
bf5f0a8419 Pint linter ran 2023-08-23 13:12:43 -04:00
Jake Barnby
e8ae7fb49a
Fix test wrong depends 2023-08-23 01:17:14 -04:00
Jake Barnby
a84e669a1f
Add missing accessedAt values when creating users 2023-08-22 21:34:23 -04:00
Steven Nguyen
d960f85da6
Merge branch '1.4.x' into cloud-1.4.x 2023-08-04 18:07:33 -07:00
Steven Nguyen
aa3c2faed9
Merge tag '1.3.8' into cloud-1.3.x-2 2023-08-04 13:55:07 -07:00
Steven Nguyen
611524476b
Merge branch 'master' into feat-master-to-1.4.x 2023-07-26 13:33:49 -07:00
Steven Nguyen
2befa60350
Track a user's last activity
A user will have an accessedAt timestamp that will update at most once
per day if they make some API call. This timestamp can then be used
find active users and calculate daily, weekly, and monthly active users.

To ensure consistent updates to the user the $user from the resource
is always updated to the user making the request, including requests
like Create Account, Update Team Membership Status, and Create Phone
Session (confirmation). This ensures the shutdown can update the
accessedAt timestamp if there was a $user set.
2023-07-19 22:22:58 -07:00
Steven
cc42700299
Fix test after session expire format was updated 2023-07-19 23:52:33 +00:00
Damodar Lohani
9289ec1959 fix date format in test 2023-07-19 08:49:20 +00:00
Damodar Lohani
4fd5c72f34 Merge branch 'master' into feat-1.4.x-with-1.3.x-master 2023-07-19 07:39:37 +00:00
Eldad A. Fux
7a2c789c6b
Merge pull request #5745 from vaibhavagarwal220/fix-5220-handle-null-name
fixed null $name error for anonymous user
2023-07-19 00:21:09 +03:00
Torsten Dittmann
74308b445e
Merge pull request #5587 from appwrite/feat-user-labels
Add a new labels attribute to the Users collection
2023-07-18 14:59:18 +02:00
vaibhavagarwal220
48fc58d365 fixed linting errors 2023-07-11 09:33:02 +05:30
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
vaibhavagarwal220
4e24b7eb42 update e2e test for anonymous user verification 2023-07-07 00:20:13 +05:30
Steven Nguyen
85a40bf82d
Add a new labels attribute to the Users collection
This labels attribute can be used apply labels to users. These labels
can eventually be used:

* with permissions to grant access
* to filter users in the Users collection
2023-06-05 14:12:28 -07:00
Prateek Banga
5dc65ea374 fix updated test case to check if expire is valid iso string or not 2023-06-02 15:15:06 +05:30
Prateek Banga
1475497ffb Merge branch 'master' of https://github.com/fanatic75/appwrite into fix-4846-added-expiry-value-to-account-sessions 2023-06-02 14:53:26 +05:30
Steven Nguyen
9d13d72c71
Update the Update Account Status API to clear the cookie
After a user updates their status, their session no longer works
however, the cookie may still exist in their browser, preventing other
API calls from completing successfully.
2023-05-23 10:40:31 -07:00
Prateek Banga
5cb9cc9dfd fix expire field in list account sessions api 2023-05-20 02:36:45 +05:30
Steven Nguyen
9961609d71
Update the Update Account Status API to clear the cookie
After a user updates their status, their session no longer works
however, the cookie may still exist in their browser, preventing other
API calls from completing successfully.
2023-05-19 11:58:17 -07:00
Damodar Lohani
41d22fb50b Merge remote-tracking branch 'origin' into feat-db-pools-master-sync-2 2023-03-30 08:02:31 +00:00
Matej Bačo
c01fcb130c Merge branch 'feat-db-pools-master' into feat-db-pools-sync 2023-03-14 12:58:54 +01:00
Torsten Dittmann
2178bfc126 Merge branch '1.3.x' of https://github.com/appwrite/appwrite into feat-database-update-attribute 2023-03-10 18:39:11 +05:30
Torsten Dittmann
6e5b8fab4b fix: implement new framework changes 2023-03-01 17:30:36 +05:30
Torsten Dittmann
dacb713450
Merge branch 'master' into fix-4982-email-session-expire-string-formattz 2023-02-24 15:23:33 +05:30
Eldad A. Fux
6696373d28
Merge pull request #4974 from appwrite/lohanidamodar-patch-3
Oauth2 check if provider is enabled
2023-02-19 08:53:41 +02: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
Damodar Lohani
171f30adb1 Merge remote-tracking branch 'origin/master' into feat-db-pools-master-sync 2023-02-16 00:29:37 +00:00
Damodar Lohani
3f171fbdb9 fix error code 2023-02-14 06:07:06 +00:00
Damodar Lohani
637e4098be provider disabled test 2023-02-14 05:56:14 +00:00
shimon
69bdb105be addressing comments 2023-02-06 17:20:14 +02:00
shimon
8d795ef483 addressing comments 2023-02-05 22:39:41 +02:00
shimon
5850a454e0 addressing comments 2023-02-05 22:07:46 +02:00
munyoudoum
63b54ead62 chore(tests): assert expire key has formatTz in POST email session 2023-01-30 00:32:05 +07:00
Christy Jacob
222421d8f3 feat: update account codes 2023-01-19 17:41:15 +05:30
Christy Jacob
4142ffdb70 feat: update account codes 2023-01-19 17:26:41 +05:30
Damodar Lohani
d53456c6ed fix test 2023-01-17 01:17:37 +00:00
fogelito
c4ae047833 Merge branch 'master' of github.com:appwrite/appwrite into feat-technical-debt-2
 Conflicts:
	app/init.php
	composer.json
	composer.lock
2023-01-16 10:24:37 +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
Christy Jacob
a2dfd692f1 feat: add tests 2023-01-11 18:09:56 +05:30
Christy Jacob
71150ced1a feat: add tests 2023-01-11 18:05:07 +05:30
Christy Jacob
d7104d9cd6 feat: add tests 2023-01-11 17:54:37 +05:30
Jake Barnby
e86994b597
Add retries for flaky tests 2022-12-22 16:12:45 +13:00
fogelito
b301a64dc4 clean up some use classes not in use 2022-12-21 10:02:22 +02:00
fogelito
91db596b42 remove static $dateValidator 2022-12-19 13:21:09 +02:00
fogelito
bdc3e9f935 $dateValidator 2022-12-15 10:51:27 +02:00
fogelito
f96128e14f Changing Id 2022-12-14 17:42:25 +02:00
Jake Barnby
608f1532a6
Merge remote-tracking branch 'origin/1.0.x' into feat-integrate-messaging
# Conflicts:
#	app/workers/messaging.php
#	src/Appwrite/SMS/Adapter/Mock.php
#	tests/e2e/Services/Account/AccountCustomClientTest.php
2022-10-10 14:01:59 +13:00
Jake Barnby
a247cc614f
Increase sleep 2022-10-10 11:28:26 +13:00
Jake Barnby
2bb8854f61
WIP integrate messaging library
(cherry picked from commit 9a25f77e3e7e76f6c93cc3ce1985f43426a0debf)

# Conflicts:
#	app/workers/messaging.php
#	src/Appwrite/SMS/Adapter/Mock.php
#	tests/e2e/Services/Account/AccountCustomClientTest.php
2022-10-03 13:28:30 +13:00
Matej Bačo
6e8a4cc97b Update sms mock to use request catcher 2022-09-19 08:09:48 +00:00
shimon
75c4662c0b small fix 2022-09-13 11:08:15 +03:00
shimon
834e4e03e3 Merge branch '0.16.x' of github.com:appwrite/appwrite into feat-audits-label-desc-decoupling
 Conflicts:
	app/controllers/api/storage.php
2022-09-08 15:13:22 +03:00
Jake Barnby
6ac2493445
Add retry for update account recovery 2022-09-08 10:37:58 +12:00
shimon
1362902082 audit event name reformation 2022-09-05 11:00:08 +03:00
shimon
eabc90ec49 decouple audits log from events 2022-09-04 17:53:37 +03:00
Christy Jacob
7591f68970
Merge pull request #3702 from appwrite/feat-list-endpoints-queries
Feat: List endpoint queries
2022-08-30 14:56:09 +02:00
Jake Barnby
22f0468c8e
Merge remote-tracking branch 'origin/0.16.x' into feat-allow-automatic-test-retries
# Conflicts:
#	app/controllers/api/teams.php
#	package-lock.json
#	package.json
#	tests/e2e/Services/Teams/TeamsBase.php
2022-08-30 23:14:28 +12:00
Jake Barnby
f4d916a4d2
Rename FlakyTest attribute to Retry 2022-08-30 23:10:15 +12:00
Jake Barnby
3a5db3e45f Add flaky test to account update password 2022-08-28 12:45:37 +12:00
Matej Bačo
bd7395cb44 Bug fixing, upgrade tests to new syntax 2022-08-24 09:22:13 +00:00
Steven
c1cdad5566 Merge branch 'refactor-permissions-inc-console-fix' into feat-list-users-queries 2022-08-19 14:50:50 +00:00
Jake Barnby
cb6fc7f618 Merge branch 'origin/datetime-attributes' into refactor-permissions-inc-console-fix
# Conflicts:
#	.gitignore
#	app/config/collections.php
#	app/controllers/api/account.php
#	app/controllers/api/databases.php
#	app/controllers/api/storage.php
#	app/controllers/api/users.php
#	composer.lock
#	tests/e2e/Services/Account/AccountCustomClientTest.php
2022-08-19 16:49:34 +12: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
Steven
f0d66985f7 Consolidate List Users API params
Replace search, limit, offset, cursor, cursorDirection, and orderType
params with a single queries param since the Queries V2 change now
allows for different types of queries.
2022-08-18 19:30:39 +00:00
Matej Bačo
2814a6f680 Linter fix 2022-08-16 13:03:38 +00:00
Matej Bačo
1e96f8c3d9 Revert changes regarding AccountAPI createAccount 2022-08-16 12:05:46 +00:00
fogelito
9c82a842b6 tests for database + account 2022-08-15 19:08:17 +03:00
Eldad Fux
95181546b4 Adpated tests 2022-08-14 21:09:24 +03:00
Jake Barnby
613a0f8006 ID and test fixes 2022-08-15 02:22:38 +12:00
Eldad Fux
b36c24c508 Decouple Auth code from SMS provider adapter 2022-08-14 17:19:58 +03:00
Eldad Fux
25f176875d Changed provider name from phone to sms 2022-08-14 16:43:41 +03:00
Jake Barnby
6a5de3e0b6 Merge remote-tracking branch 'origin/fix-datetime-attributes' into refactor-permissions-inc-queries-update-datetime-fixes
# Conflicts:
#	app/config/collections.php
#	app/controllers/api/databases.php
#	app/controllers/api/projects.php
#	app/controllers/api/teams.php
#	composer.json
#	composer.lock
#	tests/e2e/Services/Account/AccountBase.php
#	tests/e2e/Services/Databases/DatabasesBase.php
#	tests/e2e/Services/Functions/FunctionsCustomServerTest.php
#	tests/e2e/Services/Projects/ProjectsConsoleClientTest.php
#	tests/e2e/Services/Storage/StorageBase.php
#	tests/e2e/Services/Storage/StorageCustomClientTest.php
#	tests/e2e/Services/Storage/StorageCustomServerTest.php
#	tests/e2e/Services/Teams/TeamsBase.php
#	tests/e2e/Services/Webhooks/WebhooksBase.php
#	tests/e2e/Services/Webhooks/WebhooksCustomClientTest.php
#	tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php
#	tests/unit/Auth/AuthTest.php
2022-08-14 23:11:05 +12:00
Jake Barnby
b007acfa95 ID updates 2022-08-14 22:33:36 +12:00
fogelito
169fb4d6f4 audit + abuse datetime changes 2022-07-19 17:52:06 +03:00
Torsten Dittmann
5604a6837f Merge branch '0.16.x' of https://github.com/appwrite/appwrite into origin/datetime-attributes 2022-07-14 14:14:05 +02:00
fogelito
45ac40cc85 change function names 2022-07-13 17:02:49 +03:00
fogelito
f676a0bf9e change test validations from strings to datetime 2022-07-12 19:44:58 +03:00
fogelito
f384a3352b change class from database:: to dateTime:: 2022-07-12 16:32:39 +03:00
Steven
3666d0ab73 Add alias for POST /v1/account/sessions/email
Add /v1/account/sessions as an alias for POST /v1/account/sessions/email
for backwards compatibility.
2022-07-07 22:23:52 +00:00
fogelito
d7244bd9ba Tests 2022-07-06 17:47:34 +03:00
fogelito
ae4cb685c0 expire 2022-07-05 21:55:20 +03:00
fogelito
2630d0b56c certificate getRenewDate 2022-07-05 19:29:12 +03:00
fogelito
903ca342cb Model changes 2022-07-04 13:11:38 +03:00
fogelito
8628105eef Model changes 2022-07-04 12:55:11 +03:00
Torsten Dittmann
6dd41b52c3 Merge branch '0.15.x' of https://github.com/appwrite/appwrite into feat-phone-authentication 2022-06-20 13:38:39 +02:00
Torsten Dittmann
8d465c67c2 feat: account sessions for emails 2022-06-14 10:17:50 +02:00
Jake Barnby
c0cf93494c Remove var dump 2022-06-09 11:23:06 +12:00
Jake Barnby
c368c5cae3 Fix ratelimit remaining header test casing 2022-06-09 11:17:15 +12:00
Torsten Dittmann
dc25883685 feat: add update and verification method for account and users 2022-06-08 14:50:31 +02:00
Torsten Dittmann
8ce669da6f feat: initial phone authentication 2022-06-08 11:00:38 +02:00
Jake Barnby
742b49723f Check for ratelimit remaining in create jwt test 2022-06-07 09:53:09 +12:00
Everly Precia Suresh
e95be7d922 fix linting issues AccountBase.php 2022-06-02 12:47:07 +00:00
Everly Precia Suresh
19300ccdd7 format files in app, src, tests 2022-05-23 14:54:50 +00:00
Torsten Dittmann
c61108b4ef fix: tests and generate specs 2022-05-16 12:11:37 +02:00
Torsten Dittmann
2cc2a40377 Merge branch '0.14.x' of https://github.com/appwrite/appwrite into feat-new-event-model 2022-05-08 15:11:14 +02:00
Torsten Dittmann
487d38db95 fix(user): search integrity 2022-04-26 12:07:33 +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
501563f8c4 tests: adapt magic url tests 2022-04-25 15:07:39 +02:00
Bradley Schofield
37d0de8291 Add tests 2022-04-13 10:27:58 +00:00
Torsten Dittmann
2f9b9445dd sync with devices 2022-04-04 08:30:07 +02:00
Matej Baco
56bf7a51df Refactored 'sum' to 'total' 2022-02-27 10:57:09 +01:00
Matej Baco
b05301aaf3 Implement new test for oauth and improve mocks 2022-02-04 11:23:06 +01:00
Torsten Dittmann
49e9e1b9cd fix: tests 2022-01-04 16:50:48 +01:00
Torsten Dittmann
972ce959b6 fix: tests 2022-01-04 16:48:15 +01:00
Matej Baco
628b3fc805 Added non-multi-byte test 2021-12-22 09:34:31 +01:00
Matej Baco
491b163b27 Update text to HTTP response changes 2021-12-22 09:08:37 +01:00
Matej Baco
5757a853f5 Tests fixed, I hope 2021-12-20 16:56:58 +01:00
Matej Baco
27a43beddc Test bug fix 2021-12-20 16:37:17 +01:00
Matej Baco
e46b99b0a6 Implemented limit in a new way; second iteration 2021-12-20 16:21:01 +01:00
Matej Baco
198382a60a Removed unnecessary use 2021-12-13 14:18:44 +01:00
Matej Baco
e3716ab2b8 Included prefs size exceeded test 2021-12-13 14:09:23 +01:00
Torsten Dittmann
a0e49a0bfa
Update tests/e2e/Services/Account/AccountBase.php
Co-authored-by: kodumbeats <brandon.leckemby@gmail.com>
2021-11-17 11:22:20 +01:00
Torsten Dittmann
ced8c9ef03 use updated audit library 2021-11-16 15:54:29 +01:00
Torsten Dittmann
b1263e9603 tests(logs): test pagination on logs endpoints 2021-11-15 10:49:11 +01:00
Torsten Dittmann
e368053d7b fix magic url 2021-10-07 21:10:43 +02:00
Torsten Dittmann
1ed41f52d3 Merge branch 'master' of https://github.com/appwrite/appwrite into sync-realtime-with-db-refactor 2021-09-30 12:32:10 +02:00
Damodar Lohani
e9e83d14c3 updates and fixes, default handler for magic login 2021-08-31 15:07:48 +05:45
Damodar Lohani
270b70794b fix account test 2021-08-30 11:36:06 +05:45
Damodar Lohani
bcce7bc88e drop custom id support on sessions 2021-08-06 15:20:28 +05:45
Damodar Lohani
3c20404e71 account endpoint custom id 2021-08-05 10:47:55 +05:45
Eldad Fux
95dacecf3a Removed the tasks service 2021-07-27 17:16:12 +03:00
Eldad A. Fux
48ad89ac27
Merge pull request #1412 from appwrite/feat-db-refactor-routes
Feat db refactor routes
2021-07-19 22:18:28 +03:00
Eldad A. Fux
c1a67fc718
Merge branch 'feat-database-indexing' into fix-db-sync-with-master 2021-07-19 21:20:29 +03:00
Eldad Fux
bbc20dad10 Merge branch 'master' of github.com:appwrite/appwrite into fix-db-sync-with-master 2021-07-18 17:17:29 +03:00
Eldad Fux
6fe19370f3 Fixed OAuth2 tests 2021-07-18 00:21:33 +03:00
Torsten Dittmann
4633d74fc7 feat(db-refactor): user status now boolean 2021-07-14 13:02:12 +02:00
Eldad A. Fux
1186c6a36f
Merge pull request #1298 from PineappleIOnic/feat-1297-add-expire-date-to-urls
Feat Add Expire Parameter to Email Verification and Password Reset URL's
2021-07-06 19:19:08 +03:00
Bradley Schofield
e7b0dd9c4a Fix Tests 2021-07-06 15:39:45 +01:00
Eldad Fux
14909a04f2 Merge branch '0.9.x' of github.com:appwrite/appwrite into feat-database-indexing 2021-07-04 17:14:06 +03:00
Eldad Fux
57bc8c75e0 Merge branch 'master' of github.com:appwrite/appwrite into 0.9.x 2021-07-03 09:21:07 +03:00
Bradley Schofield
1c0454daa9
Merge branch '0.9.x' into feat-1297-add-expire-date-to-urls 2021-07-02 11:40:58 +01:00
Eldad Fux
03ff844291 Merge branch '0.9.x' of github.com:appwrite/appwrite into feat-database-indexing 2021-06-26 22:47:53 +03:00
Bradley Schofield
0b1b21a5b0 Update Tests 2021-06-23 16:06:52 +01:00
Bradley Schofield
7e8d76b66d Add more tests 2021-06-18 10:28:54 +01:00
Bradley Schofield
06cf8ab253 Add tests and changelogs 2021-06-17 14:17:35 +01:00
Bradley Schofield
e3273bc49f Add Tests 2021-06-16 11:41:15 +01:00