Jake Barnby
d4020686f2
fix: Make testListUsers parallel-safe
...
- Use assertGreaterThanOrEqual instead of exact count
- Find users by ID instead of assuming position
- Document expected minimum user count for isolated execution
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-06 20:53:42 +13:00
Jake Barnby
f624646480
perf: Remove @depends from Account, Functions, Storage, Users, VCS, Messaging tests
...
Added helper methods with static caching to enable parallel test execution.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-06 11:54:14 +13:00
Jake Barnby
714b8d7ea6
Migrate to PHPUnit 11
2026-01-15 16:14:53 +13:00
shimon
a7dbb3daea
Refactor API parameters to replace 'includeTotal' with 'total' across multiple endpoints for consistency in response handling.
2025-10-29 11:08:08 +02:00
shimon
5f3316ff18
fix assertion order
2025-10-20 18:38:14 +03:00
shimon
fb4e3e1b9d
Implement 'includeTotal' parameter across multiple API endpoints to control total count in responses, ensuring consistent behavior in session, log, and membership retrievals.
2025-10-20 18:18:17 +03:00
Matej Bačo
2ce0f370dc
PR review changes
2025-08-26 15:44:15 +02:00
ArnabChatterjee20k
7a0ba95231
updated onPasswordChange to invalidate session
2025-06-16 23:05:52 +05:30
ArnabChatterjee20k
fde2f278e8
added invalidating sessions for the project users
2025-06-14 18:07:42 +05:30
Chirag Aggarwal
85edfc6af8
chore: added test for users.listmemberships
2025-03-28 05:47:18 +00:00
Steven Nguyen
f48c843bea
fix(users): ensure user can delete session
...
The session document created by users.createSession() was missing
delete permissions for the user so when the user tried to delete it,
they got a 401 error.
This PR ensure the permissions are added just like if the document was
created from the Account API so that the user has access to delete the
document.
2025-01-11 17:56:36 +00:00
Steven Nguyen
014c613c93
fix: update secret returned from users.createSession()
...
1. Include at least 1 factor because the minumum number of factors
required when mfa is disabled is 1.
2. Purge the cached user document to ensure the new session is included
in subsequent requests for the user.
3. Fix the encoding of the secret to match other parts of the codebase.
2024-11-22 21:52:27 +00:00
Jake Barnby
1ed3dee135
Fix tests
2024-10-22 14:54:34 +13:00
Jake Barnby
0a22292d1b
Update tests
2024-10-22 14:35:11 +13:00
Christy Jacob
bfa253297b
Merge branch 'main' of https://github.com/appwrite/appwrite into sync-1.6-main
2024-08-13 15:36:13 +00:00
Matej Bačo
d4a5891c0d
Fix user JWTs without sessionID
2024-07-21 13:28:23 +00:00
Jake Barnby
b343158d19
Merge remote-tracking branch 'origin/main' into 1.6.x
...
# Conflicts:
# .gitmodules
# app/console
# composer.lock
# tests/e2e/Services/Health/HealthCustomServerTest.php
2024-07-10 19:11:04 +12:00
Christy Jacob
8dbf887ab1
Merge pull request #8324 from appwrite/refactor-usage-sn
...
Sync refactor-usage-sn into 1.5.x
2024-06-25 22:50:42 +04:00
Steven Nguyen
34b2e15243
fix(users): fix expire error when creating user session
...
Before this, the Create session API call would throw:
> Invalid document structure: Missing required attribute "expire"
This is because the `expire` attribute is required, but it was omitted
from the document. This PR ensures the `expire` attribute is set when
creating the session document.
2024-06-24 23:21:44 +00:00
Damodar Lohani
d19141fc6a
sleep after password change
2024-06-24 07:49:18 +00:00
Christy Jacob
a2f27ec15f
Merge branch '1.5.x' of https://github.com/appwrite/appwrite into sync-with-main
2024-06-21 13:11:35 +00:00
Damodar Lohani
349b78d5e5
fix assertion
2024-06-17 04:55:06 +00:00
Matej Bačo
11827216ff
Update tests/e2e/Services/Users/UsersBase.php
...
Co-authored-by: Steven Nguyen <1477010+stnguyen90@users.noreply.github.com>
2024-05-29 09:32:58 +02:00
Matej Bačo
b1ff989c3f
Implement tests, fix JWT maxAge
2024-05-28 09:25:54 +00:00
Torsten Dittmann
0a1d572c72
chore: run formatter
2024-03-06 18:34:21 +01:00
Matej Bačo
7beb9080fa
Merge remote-tracking branch 'origin/1.5.x' into fix-empty-user-updates
2024-02-05 10:38:48 +00:00
fogelito
a782e20315
Merge branch '1.5.x' of github.com:appwrite/appwrite into json-parsing
...
Conflicts:
app/controllers/api/account.php
composer.json
composer.lock
src/Appwrite/Platform/Tasks/CalcTierStats.php
tests/e2e/Services/Account/AccountBase.php
2024-01-25 17:44:05 +02:00
Jake Barnby
8cfd194cc0
Fix user tests
2024-01-22 23:29:41 +13:00
Matej Bačo
311e9a75dd
Allow empty values in PATH user service
2024-01-20 09:43:31 +00:00
loks0n
bc1858c516
chore: do not auto create accounts in users endpoints
2024-01-17 11:03:04 +00:00
loks0n
6bf82c3dc5
test: fix user token test
2024-01-15 11:30:54 +00:00
Jake Barnby
5044c0cafa
Fix users tests
2024-01-09 16:43:39 +13:00
loks0n
5c803f6eff
Merge branch '1.5.x' of https://github.com/appwrite/appwrite into feat-ssr
2024-01-08 11:41:55 +00:00
loks0n
8ea9706174
feat: Matej renaming plan
2023-11-30 11:35:52 +00:00
prateek banga
ee4c2d0e0d
adds target when creating user via server endpoint
2023-11-28 18:42:34 +05:30
prateek banga
88f228c106
review changes
2023-11-21 15:11:09 +05:30
prateek banga
7ae614fe13
adds provider type in target
2023-11-14 18:14:07 +05:30
loks0n
df0271c56a
chore: rename to 'custom' sessions
2023-11-02 13:22:10 +00:00
loks0n
c39426745c
test: fix create custom session params
2023-11-02 13:15:29 +00:00
prateek banga
f5aa226b57
fix test
2023-10-26 00:02:22 +05:30
loks0n
a67ca55af5
fix: use queueForEvents in users
2023-10-23 11:32:09 +01:00
loks0n
07286e5864
Merge branch 'main' of https://github.com/appwrite/appwrite into feat-ssr
2023-10-13 11:05:22 +01:00
loks0n
8ab429b92f
feat: replace session confirmation endpoints
2023-10-12 14:38:32 +01:00
loks0n
8379551510
test: fix warning
2023-10-11 16:59:44 +01:00
loks0n
0332d35d9e
test: e2e universal token
2023-10-11 14:21:20 +01:00
Prateek Banga
bb52647366
Merge branch '1.5.x' of https://github.com/appwrite/appwrite into feat-mailgun-provider
2023-10-10 19:06:39 +05:30
Jake Barnby
aa1cf053f7
Add test ensuring no 500 on bad serach
2023-09-28 18:58:29 +13:00
prateek banga
c59887e8fb
fixes issue in sub queries
2023-08-25 15:55:04 +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