1
0
Fork 0
mirror of synced 2024-08-19 04:01:38 +12:00
Commit graph

3619 commits

Author SHA1 Message Date
Bishwajeet Parhi
f160c55ecb Chore: remove encrypt param on update Atrribute and tests as well 2023-07-26 11:25:25 +05:30
Bishwajeet Parhi
a15551368f Merge branch 'master' into feat-add-encrypt-param 2023-07-26 11:20:06 +05:30
Prateek Banga
f7c02d9308 removes extra db call and uses document find method 2023-07-24 23:41:49 +05:30
Prateek Banga
7d412b4741 adds get db call and get collection call 2023-07-24 12:02:28 +05:30
Prateek Banga
d569c17764 Merge branch 'master' of https://github.com/appwrite/appwrite into change-use-find-instead-iterating-index-array 2023-07-21 00:49:15 +05:30
Christy Jacob
882698d6e4 chore: update specs 2023-07-20 17:41:28 +04:00
Christy Jacob
c26194e189 Merge branch '1.4.x' of github.com:appwrite/appwrite into disallow-personal-data 2023-07-20 17:19:18 +04:00
Christy Jacob
6cdc8a97b7 chore: update tests 2023-07-20 17:12:41 +04:00
Christy Jacob
0feaf41fcb Merge branch 'feat-db-pools-master' of https://github.com/appwrite/appwrite into feat-db-pools 2023-07-20 11:53:36 +00:00
Prateek Banga
b700336d45 fix get index route to use find 2023-07-20 14:52:05 +05:30
Steven Nguyen
9908a9021f
Update get logs by user to pass user internal id
The userId in audit is actually the userInternalId.
2023-07-19 22:49:51 -07:00
Steven Nguyen
187f3dc6ff
Update get logs APIs to return userId from data
The audit userId is actually the internal id and the user id is in the
data attribute.
2023-07-19 22:49:51 -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
Eldad A. Fux
66fee90af9
Merge pull request #5199 from appwrite/feat-custom-smtp
[FEAT] Custom SMTP and Template support
2023-07-20 07:09:11 +03:00
Christy Jacob
4c8608b49c chore: update naming conventions 2023-07-20 02:24:32 +04:00
Christy Jacob
e493551f8a Merge branch '1.4.x' of github.com:appwrite/appwrite into disallow-personal-data 2023-07-20 01:44:25 +04:00
Christy Jacob
257776a54e fix: failing tests 2023-07-20 01:34:27 +04:00
Prateek Banga
8328dac86b lint issues 2023-07-19 14:08:02 +05:30
Prateek Banga
131e9658a5 change to use findOne instead of iterating index array 2023-07-19 14:04:35 +05:30
Damodar Lohani
4fd5c72f34 Merge branch 'master' into feat-1.4.x-with-1.3.x-master 2023-07-19 07:39:37 +00:00
Damodar Lohani
8dc5c2cb4c Merge remote-tracking branch 'origin/1.4.x' into feat-custom-smtp 2023-07-19 07:24:58 +00:00
Damodar Lohani
14f8cc57af
Update app/controllers/api/projects.php
Co-authored-by: Eldad A. Fux <eldad.fux@gmail.com>
2023-07-19 12:04:37 +05:45
Damodar Lohani
ff6dd0990d
Update app/controllers/api/projects.php
Co-authored-by: Eldad A. Fux <eldad.fux@gmail.com>
2023-07-19 12:04:29 +05:45
Eldad A. Fux
9fafd39fef
Merge pull request #5211 from Pranav2612000/fix-5095-trigger-email-subscription-on-email-verification
fix: trigger account subscription event on email verification
2023-07-19 00:24:33 +03: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
Eldad A. Fux
b2b1b6e2e4
Merge pull request #5562 from fanatic75/fix-4846-added-expiry-value-to-account-sessions
fix expire field in list account sessions api
2023-07-19 00:17:53 +03:00
Eldad A. Fux
50f258b6db
Merge pull request #5740 from appwrite/fix-create-phone-verification
Fix phone verification secret in events & payload
2023-07-18 23:18:16 +03:00
Eldad A. Fux
9cdf124a81
Merge pull request #5739 from appwrite/fix-anonymous-user
Fix anonymous user
2023-07-18 23:07:52 +03:00
Eldad A. Fux
bee246956c
Merge pull request #5808 from jaivix/fix-5768-pull-request-to-return-team-id-conflict-error
fixed team creation response if teamId already exists
2023-07-18 23:00:31 +03:00
Eldad A. Fux
6f499cfa26
Merge pull request #5567 from fanatic75/fix-4982-expire-sessions-format-for-multiple-api
fixed expire format for phone session, anonymous session, oauth session
2023-07-18 22:57:10 +03:00
Eldad A. Fux
d4ed77b5e8
Merge pull request #5568 from fanatic75/fix-5429-expire-format-fix-for-get-session
fix: expire format for get session api
2023-07-18 22:56:47 +03:00
Eldad A. Fux
3a17f30374
Merge pull request #5566 from fanatic75/fix-5428-fixed-expire-format-for-magic-url-sessions
fix: expire format in magic url sessions
2023-07-18 22:56:35 +03:00
Bishwajeet Parhi
3c15359447 Merge branch 'master' into feat-whitelist-enums 2023-07-18 21:22:48 +05:30
Eldad A. Fux
6bf6bc7dc3
Merge pull request #5743 from appwrite/feature-restrict-project-id-chars
Restrict characters for project ID
2023-07-18 18:06:01 +03:00
Bishwajeet Parhi
8f851aaa53 chore: refactor avatar, flags, credit-cards and update spec 2023-07-18 20:00:19 +05:30
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
Damodar Lohani
8d106a39b0 null safe 2023-07-18 07:05:09 +00:00
jaivik
6380004678
Merge branch 'appwrite:master' into fix-5768-pull-request-to-return-team-id-conflict-error 2023-07-18 10:35:52 +05:30
Eldad A. Fux
11c9066c4d
Merge pull request #5402 from appwrite/fix-chunked-upload
content-range end should be 1 less than file size
2023-07-18 06:55:05 +03:00
Steven Nguyen
fce230dca8
Fix team delete
Ensure all memberships are deleted and the cached users are
invalidated so that the nested memberships will refresh.
2023-07-17 17:21:16 -07:00
jaivix
4db919b42d linting and wording updates based on stnguyen90 feedback 2023-07-13 00:33:38 +05:30
Steven Nguyen
ca6e9a7f1e
Update get logs by user to pass user internal id
The userId in audit is actually the userInternalId.
2023-07-12 10:56:24 -07:00
Steven Nguyen
300d916621
Update get logs APIs to return userId from data
The audit userId is actually the internal id and the user id is in the
data attribute.
2023-07-12 10:27:57 -07:00
Christy Jacob
e0aa3db21e Merge branch '1.4.x' of https://github.com/appwrite/appwrite into disallow-personal-data 2023-07-11 19:36:37 +00:00
Bishwajeet Parhi
07df99c817 update description 2023-07-11 19:16:22 +05:30
Damodar Lohani
0cff44b909 update description 2023-07-11 06:41:30 +00:00
Damodar Lohani
1207fb3cb1
Update teams.php 2023-07-11 11:56:42 +05:45
Christy Jacob
982373c915 feat: update error in Exception constructor 2023-07-10 08:04:27 +00: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
jaivix
a6671a5caa fixed team creation response if teamId already exists 2023-07-09 16:50:09 +05:30
Bishwajeet Parhi
f71fdfb0b9 chore: add encrypt param on update string attr + unit tests 2023-07-08 20:58:41 +05:30
Prateek Banga
f24cf729c3 fixed relationship update bug in two way type 2023-07-07 23:50:06 +05:30
Bishwajeet Parhi
96f1284cbf Merge remote-tracking branch 'upstream/master' into feat-add-encrypt-param 2023-07-06 19:52:50 +05:30
Steven Nguyen
8258d70b78
Update user's search attribute using database filter
Using a database filter is the cleanest approach because it ensures
the logic is applied whenever the user is updated regardless of
whichever endpoint was used.
2023-07-05 12:17:47 -07:00
vaibhavagarwal220
fecde6bdba fixed null $name error for anonymous user 2023-06-24 13:57:02 +05:30
Steven Nguyen
33f5cbeca6
Restrict characters for project ID
Only allow lowercase alphanumeric chars and hyphens
because the project ID is used as part of url
schemes to redirect users back to mobile apps
and certain characters are not allowed.
2023-06-23 16:22:42 -07:00
Prateek Banga
c4ef7fddc0
Merge branch 'appwrite:master' into fix-4846-added-expiry-value-to-account-sessions 2023-06-23 08:04:38 +05:30
Steven Nguyen
5d385c9a9d
Fix phone verification secret in events & payload
The secret in events & payload should match the secret sent to
messaging.
2023-06-22 17:54:09 -07:00
Steven Nguyen
37ad61933c
Set email & name after OAuth if they're empty
The logic before was incorrect. Really, email and name should only be
set if they're empty.
2023-06-22 17:46:09 -07:00
Christy Jacob
9f2bf844c7
Merge pull request #5580 from appwrite/fix-project-deletion-master
remove password required for project deletion
2023-06-22 22:52:59 +05:30
Bishwajeet Parhi
e98e1db046 chore: fix trailing comma 2023-06-22 11:55:27 +05:30
Bishwajeet Parhi
cb35d2dbbe chore: fix missing nullable required param 2023-06-22 11:53:29 +05:30
Bishwajeet Parhi
ee30a3e9f4 chore: refactor tests and param positioning changes 2023-06-22 09:59:09 +05:30
Bishwajeet Parhi
7ce10023c0 chore: add tests and remove encrypt param on url,enum,ip,email 2023-06-21 16:15:00 +05:30
Bishwajeet Parhi
4efd178f40 remove encrypt on non string attributes 2023-06-21 15:22:04 +05:30
Bishwajeet Parhi
3aabaeb8be Merge branch 'master' into feat-add-encrypt-param 2023-06-21 15:12:47 +05:30
faisalill
7e8f6f748a fixed incorrect audity activity on document create 2023-06-17 00:20:37 +05:30
Torsten Dittmann
fd154f04d3 fix: abuse phone param 2023-06-16 12:42:24 +02:00
Jake Barnby
d3e7830620
Update changes 2023-06-16 14:16:19 +12:00
Christy Jacob
72e9ddd3f1
Merge pull request #5708 from appwrite/chore-update-database-config
feat: update database config
2023-06-15 20:57:21 +05:30
Christy Jacob
4c68e396c1 feat: update backup time 2023-06-15 14:35:21 +00:00
Jake Barnby
95b06c660a
Add index validator 2023-06-15 17:29:03 +12:00
Damodar Lohani
57411db2d3 upadate to use refactored collections config 2023-06-15 00:34:12 +00:00
Jake Barnby
031f8270ff
Merge remote-tracking branch 'origin/1.4.x' into validator-mv
# Conflicts:
#	composer.lock
2023-06-15 12:28:32 +12:00
Christy Jacob
25e2771fa7 feat: update database config 2023-06-14 19:52:28 +00:00
shimon
a4e055e21b cache deletion bug fix 2023-06-13 15:03:22 +03:00
shimon
8645757f28 cache deletion bug fix 2023-06-13 13:41:54 +03:00
shimon
41d207e862 cache deletion bug fix 2023-06-13 11:15:38 +03:00
Christy Jacob
a9e2eca8a4
Merge pull request #5683 from appwrite/master
Update 1.4.x from Master
2023-06-12 13:20:26 +05:30
Steven Nguyen
b3c9a34e5e
Make users searchable by label 2023-06-09 10:19:57 -07:00
Steven Nguyen
8400394857
Add an endpoint to update user labels 2023-06-09 10:18:51 -07:00
Christy Jacob
845fd7ba68 fix: missing import 2023-06-07 15:13:57 +05:30
Jake Barnby
b7f4f57521
Add new error message to differentiate between missing data and missing data + permissions for document updates 2023-06-07 13:51:24 +12:00
Christy Jacob
8fdb9e6592
Update app/controllers/api/projects.php 2023-06-06 17:51:42 +05:30
Christy Jacob
5c6cbbe370 chore: review comments 2023-06-06 12:11:50 +00:00
Christy Jacob
9f02ed700d feat: update db backups schedule 2023-06-06 12:09:14 +00:00
Damodar Lohani
f373d30a45 formatting 2023-06-05 07:11:53 +00:00
Eldad A. Fux
994524b7a1
Merge pull request #5621 from appwrite/fix-4975-update-email-phone-without-password
Allow Updating email and phone without password
2023-06-02 19:09:02 +03:00
shimon
6a9011af72 minor changes 2023-06-02 17:14:10 +03:00
shimon
5c9ad6fddd minor changes 2023-06-02 17:01:15 +03:00
shimon
f5c4e4cd8a minor changes 2023-06-02 16:52:38 +03:00
shimon
9a071df378 minor changes 2023-06-02 16:23:21 +03:00
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
shimon
071b2e5826 Extract db from list while backing 2023-06-02 11:06:35 +03:00
shimon
ea8804fd52 Extract db from list while backing 2023-06-02 08:10:03 +03:00
Bishwajeet Parhi
0d3b50a07d Merge remote-tracking branch 'upstream/master' into feat-add-encrypt-param 2023-06-01 21:46:31 +05:30
Damodar Lohani
ed01b5abe3 update file name 2023-06-01 05:44:19 +00:00
Steven Nguyen
5afc49784e
Update the Update Phone API to also set the password
This is to ensure the behavior matches the Update Email endpoint.
2023-05-31 13:52:05 -07:00
Damodar Lohani
62bbace433 fix name 2023-05-31 08:20:45 +00:00
Steven Nguyen
5ef3162cee
Don't rely on isAnonymousUser to check whether to verify password
It's possible for a user to not be anonymous and not have a password.
Using passwordUpdate is a better indicator as to whether the user has
set a password or not.
2023-05-30 17:17:20 -07:00
Steven Nguyen
7dec6c7321
Fix 500 error when a passwordless user creates an email session 2023-05-30 16:59:55 -07:00
Jake Barnby
d2bfe46fca
Set min length to 0 for default value when creating or updating a string attribute
(cherry picked from commit c61e54f69b)
2023-05-30 19:42:13 +12:00
Bishwajeet Parhi
08746d0390 chore: misc fixes 2023-05-30 12:47:55 +05:30
Bishwajeet Parhi
967ac1b82c chore: remove nullable param 2023-05-30 12:34:32 +05:30
Bishwajeet Parhi
69504bfaac add encrypt param 2023-05-30 12:30:10 +05:30
Jake Barnby
c61e54f69b
Set min length to 0 for default value when creating or updating a string attribute 2023-05-30 14:52:59 +12:00
Jake Barnby
f45905e545
Merge pull request #5553 from 2002Bishwajeet/feat-add-enable-param-db
Feat: Add enable param in Database and Collection
2023-05-29 20:35:33 +12:00
Bishwajeet Parhi
68c56daba1 add extra check for admin modes 2023-05-26 17:08:09 +05:30
Christy Jacob
075ed65a2f
Merge pull request #5572 from appwrite/feat-update-project-creation
Feat update project creation
2023-05-25 22:50:24 +05:30
Damodar Lohani
237658f4e8 fix param 2023-05-25 05:33:06 +00:00
Damodar Lohani
6813d53e06 remove password required for project deletion 2023-05-25 00:32:49 +00:00
Christy Jacob
54ad50bd4b feat: review comments 2023-05-24 20:07:31 +00:00
Bishwajeet Parhi
2873918cc5 Update databases.php
fix: tests
2023-05-24 22:56:58 +05:30
Bishwajeet Parhi
e496419572 remove formatting updates 2023-05-24 22:24:57 +05:30
Bishwajeet Parhi
6fc176d508 chore: add admin mode assertion for create collection 2023-05-24 17:58:40 +05:30
Bishwajeet Parhi
4706e6580d chore: add new checks 2023-05-24 15:39:08 +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
Christy Jacob
48ca2530e6 feat: add missing attribute 2023-05-23 14:46:48 +00:00
Christy Jacob
8be36088d7 chore: linter 2023-05-23 14:38:48 +00:00
Christy Jacob
f0df316b4f fix: throw correct exception when project custom ID already exists 2023-05-23 14:38:33 +00:00
Damodar Lohani
5a9f83c43d validate smtp configuration 2023-05-23 05:09:17 +00:00
Eldad A. Fux
b86ce2d233
Merge pull request #5561 from appwrite/fix-delete-account
Update the Update Account Status API to clear the cookie
2023-05-22 23:06:02 +03:00
Prateek Banga
977279b679 fix: expire format for get session api 2023-05-22 18:34:51 +05:30
Prateek Banga
249bec5124 fixed expire format for phone session, anonymous session, oauth session 2023-05-22 18:18:52 +05:30
Prateek Banga
8673df4ac5 fix: expire format in magic url sessions 2023-05-22 17:52:25 +05:30
Prateek Banga
19a3db69f8 fix updated expire format to iso format 2023-05-20 21:09:48 +05:30
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
Christy Jacob
d630d8772b
Merge pull request #5460 from appwrite/fix-create-project-error
fix: throw correct exception when project ID already exists
2023-05-19 22:48:02 +05:30
Bishwajeet Parhi
c2a13b079e chore: lowercase 2023-05-19 12:54:07 +05:30
Bishwajeet Parhi
40f70faa89 Feat: Add enable param in Database and Collection 2023-05-18 18:55:22 +05:30
Suven-p
582698bd03
Validate value of x-appwrite-id header 2023-05-18 00:41:07 +05:45
Damodar Lohani
ab28f08480 fix default template sender name 2023-05-17 08:25:24 +00:00
fogelito
aae6b932d3 remove unnecessary hint 2023-05-16 17:49:12 +03:00
fogelito
f6153b7626 Use array instead of variadic 2023-05-16 15:56:20 +03:00
Christy Jacob
12afc294bd feat: add checks for domain 2023-05-13 23:35:05 +05:30
Damodar Lohani
6be37d1ae4 code organization 2023-05-11 06:56:16 +00:00
Damodar Lohani
f70712865e refactor 2023-05-11 06:52:27 +00:00
Eldad A. Fux
18039f5ba1
Merge pull request #5257 from appwrite/feat-pause-project
[FEAT] Enable/Disable all services
2023-05-11 07:00:04 +01:00
Damodar Lohani
b1cf55db6e fix formatting 2023-05-11 01:43:26 +00:00
shimon
1e29ec8d59 added bucketInternalId to file 2023-05-08 10:32:29 +03:00
fogelito
d55dc7a5b2 Merge branch 'master' of github.com:appwrite/appwrite into validator-mv 2023-05-07 12:23:02 +03:00
Damodar Lohani
fc36120a51
get file hash before encryption and compression 2023-05-07 11:33:27 +05:45
Torsten Dittmann
67ad856490
Merge pull request #5497 from appwrite/fix-bucket-permissions
Fix bucket permissions
2023-05-04 19:32:44 +02:00
Christy Jacob
60f51580a7
Merge pull request #5246 from singhbhaskar/fix-4960-Database-usage-screen-shows-500-error-when_APP_USAGE_STATS-is-disabled
Fix: Updated error when _APP_USAGE_STATS is disabled
2023-05-04 20:47:50 +05:30
Damodar
3da853af2e fix email template issue 2023-05-04 07:33:17 +00:00
Steven Nguyen
4dd6a7977e
Update create and update bucket APIs
Ensure the permissions and document security are updated in the
metadata collection.
2023-05-03 12:15:37 -07:00
fogelito
c51d4b386b Merge branch 'master' of github.com:appwrite/appwrite into validator-mv
 Conflicts:
	composer.json
	composer.lock
2023-05-03 14:56:03 +03:00
fogelito
5be5a7dd0e Empty queries fixes 2023-05-03 14:53:40 +03:00
Matej Bačo
6d97ca7569 Fix bugs with cards 2023-05-02 10:28:14 +02:00