1
0
Fork 0
mirror of synced 2024-07-10 17:06:17 +12:00
Commit graph

15212 commits

Author SHA1 Message Date
Eldad A. Fux 0ded0c259b
Merge pull request #5915 from appwrite/docs-function-create-build
Fix missing description for function create build endpoint
2023-08-22 07:57:05 +03:00
Eldad A. Fux 96fa7362f3
Merge pull request #5698 from appwrite/fix-cache-delete-bug-master
Fix cache delete bug master
2023-08-15 14:57:33 +03:00
Eldad A. Fux a7094310d7
Merge pull request #5550 from Suven-p/feat-5542-validate-x-appwrite-id-header-for-CreateFile
Validate value of x-appwrite-id header
2023-08-05 13:23:52 +03:00
Eldad A. Fux a56f91b054
Merge branch 'master' into feat-5542-validate-x-appwrite-id-header-for-CreateFile 2023-08-05 06:36:21 +03:00
Eldad A. Fux 06570a081a
Merge pull request #5928 from safwanyp/fix-5517-fix-stale-team-memberships-on-user
Fixed bug where memberships remained after a team is deleted
2023-08-05 06:34:48 +03:00
Eldad A. Fux 702424ed31
Merge pull request #5694 from Miguelii/fix-5693-portuguese-email-template-missing-word
Added missing word to portuguese email template
2023-08-05 06:32:11 +03:00
Safwan Parkar 4a9af13f16 run formatter and linter
Run the composer format and lint commands, which I forgot to run before.
2023-08-04 23:41:29 +04:00
Safwan Parkar 0295c6ec1b improve test by removing user creation loop
The CREATE TEAM MEMBERSHIP endpoint requires the email of the user to be added to the team. If the user does not exist in the project, a new user is created with the specified email and added to the team.

The first version of the test creates 5 users, and then adds them to the newly created team. This process is more streamlined now, by using the CREATE TEAM MEMBERSHIPS behaviour to create a user on the go and create a membership for them immediately after.

I also change the way I add user IDs to the array, by using the shorthand notation instead of the `array_push` function.
2023-08-04 23:17:41 +04:00
Safwan Parkar 451f4bee19 Fixed an incorrect test for team deletion
This commit contains changes in 3 places.

- First I changed the placement of an informative comment in the DELETE TEAM controller, and moved it outside of the loop. I did this when Steven pointed out that the behaviour I describe in the comment is for the whole loop.

- The second change is the removal of my first test. I was facing quite a few issues with creating users in the test, and ended up using the CREATE TEAM MEMBERSHIP to perform 2 actions at once -> create a new user if one doesn't exist with the provided email, and create a membership for the user. Before this approach, I had quite a bit of code that didn't work, and it seems like I removed some things that weren't supposed to be removed, and didn't change variable names where necessary. Anyway, I figured that the problem has something to do with the user being created on the client side, so I moved the test to the server side.

- The new test I implemented does the same thing as my previous failed test, but in more detailed and distinct steps. The test first creates 5 new users inside of a loop, and pushes each new user's ID to an array called 'new_users' if the response is as expected. Then a new team is created. The next step is to create memberships for all 5 users. If all these steps pass, the new team that was just created, is deleted, and we check to make sure the new users have 0 team memberships each.

Formatter and linter showed no errors. Tests were successful on localhost.
2023-08-04 15:40:42 +04:00
Safwan Parkar 06e1191063 added test 2023-08-04 00:34:01 +04:00
Safwan Parkar d142620c5e invalidate cached document of user
- cache caused stale data in memberships
2023-08-03 22:08:27 +04:00
Safwan Parkar a14d89eb3c remove error-causing condition 2023-08-03 21:39:18 +04:00
Safwan Parkar 2bc2061f09 fix showing of stale team memberships 2023-08-02 18:44:43 +04:00
Safwan Parkar c5233d9ece removed unnecessary code 2023-08-02 12:18:21 +04:00
Safwan Parkar a45c62ab24 run composer scripts 2023-08-01 23:24:46 +04:00
Safwan Parkar 0fe59d457b fixed stale team memberships on user 2023-08-01 22:57:59 +04:00
Christy Jacob fcd4a69ad1
Merge pull request #5924 from appwrite/christyjacob4-patch-1
fix: error in initialising the Exception constructor in api.php
2023-08-01 20:51:49 +04:00
Vincent (Wen Yu) Ge f6d2df8115
Update app/controllers/shared/api.php
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
2023-08-01 12:21:34 -04:00
Christy Jacob 3b4255c457
fix: error in initialising the Exception constructor in api.php 2023-08-01 18:18:27 +05:30
Vincent (Wen Yu) Ge b8e840f42d Fix missing description for endpoint 2023-07-31 16:01:59 +00:00
Eldad A. Fux 887abad190
Merge pull request #5707 from appwrite/docs-delete-session
Update delete session description to be actually correct
2023-07-26 02:10:00 +03:00
Eldad A. Fux f6d96237e7
Merge pull request #5755 from mendelgordon/doc-fix-magic-session-typo
Fix small typo in docs
2023-07-25 22:09:31 +03:00
Christy Jacob 6cb80c346a
Merge pull request #5846 from appwrite/change-use-find-instead-iterating-index-array
change to use find instead of iterating index array in Get Index route
2023-07-25 12:14:14 +04:00
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
Eldad A. Fux 0a5d53ec35
Merge pull request #5857 from appwrite/feat-oauth-provider-name
Update Project providers to also include the provider key
2023-07-21 07:56:25 +03:00
Steven Nguyen 5be6d8e90b
Update Project providers to also include the provider key
Pass the provider key and name back so that a nicely formatted name
can be shown in the Appwrite Console.
2023-07-20 16:53:33 -07:00
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
Eldad A. Fux 7a02a1690a
Merge pull request #5449 from appwrite/feat-4299-oidc-oauth2-provider
Add a generic OIDC OAuth2 provider
2023-07-20 20:44:03 +03:00
Prateek Banga b700336d45 fix get index route to use find 2023-07-20 14:52:05 +05:30
Eldad A. Fux e12a5738aa
Merge pull request #5853 from appwrite/fix-audit-user-internal-id
Fix audit user internal
2023-07-20 10:31:26 +03:00
Eldad A. Fux 8633be26d4
Merge pull request #5854 from appwrite/feat-akamai-setup
Akamai setup in readme
2023-07-20 08:59:59 +03:00
Damodar Lohani 2c2c7d9028
Create akamai-logo.svg 2023-07-20 11:36:40 +05:45
Damodar Lohani 1e0158cdef
Update README.md 2023-07-20 11:35:59 +05:45
Steven 3f9cedcc44
Prepare 1.3.8 release 2023-07-19 22:49:51 -07:00
Steven Nguyen cd78706944
Update migration for audit collection
1. Remove the userInternalId attribute
2. Replace userId in audit documents with userInternalId and put
userId in data
2023-07-19 22:49:51 -07:00
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 58fa7546c1
Update Appwrite to save internal id as audit user id
It's important to use userInternalId so that if a user is recreated
with the same ID, lookups for the user will not return the data
of the old deleted user.

We will still store userId in data so that it can be pulled out and
returned for the log API calls.
2023-07-19 22:49:51 -07:00
Steven Nguyen 35a25cc2a7
Bump audit version to get rid of userInternalId attribute 2023-07-19 22:49:50 -07:00
Eldad A. Fux 30fc5658e4
Merge pull request #5847 from appwrite/chore-upgrade-domains
Fix np TLD validation
2023-07-20 08:21:36 +03:00
Steven cc42700299
Fix test after session expire format was updated 2023-07-19 23:52:33 +00:00
Steven 803d653e44 Upgrade utopia-php/domains
Version 1.1.0 was an incorrectly named git tag; it was equivalent to
0.2.0. This bump to 0.3.* is safe because it adds Registrar,
but it won't be used in Appwrite yet. Bumping to 0.3.* is necessary to
fix some bugs where valid domains were considered invalid.
2023-07-19 18:29:01 +00: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
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 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