Commit graph

51 commits

Author SHA1 Message Date
Jake Barnby
840b1fbef3 fix: cast tenant to int for SQL adapters to fix strict type comparison
Document::getTenant() casts numeric tenants to (int), but
adapter->getTenant() held a string from getSequence(). The strict
!== comparison in Database::getCollection() then failed, returning
"Collection not found" for all shared-table MariaDB projects.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 01:06:43 +13:00
Jake Barnby
871795efa9 fix: remove conditional tenant int cast, use string tenant directly
The $tenant attribute type in the database library is being changed from
VAR_INTEGER to VAR_ID, which handles both SQL (integer) and MongoDB
(UUID7 string) adapters natively. This removes the now-unnecessary
conditional casting pattern throughout the codebase.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 19:53:42 +13:00
Jake Barnby
d91e3543c8 (fix): use adapter ID type to determine tenant value for MongoDB compatibility 2026-03-13 19:13:07 +13:00
Steven Nguyen
0984daf37e
Merge branch '1.8.x' into copilot/fix-received-at-timestamp 2026-03-10 15:39:22 -07:00
copilot-swe-agent[bot]
1113bffb78 fix: use message timestamp for receivedAt in StatsUsage worker
Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com>
2026-03-10 22:19:06 +00:00
Chirag Aggarwal
2d05d608f4 Upgrade utopia-php dependencies and fix namespace changes
- Upgrade utopia-php/cli from 0.15 to 0.22
- Upgrade utopia-php/analytics from 0.10 to 0.15
- Upgrade utopia-php/orchestration from 0.9 to 0.19
- Use dev branches for utopia-php/framework and utopia-php/platform
- Remove utopia-php/swoole dependency (merged into framework)
- Migrate Utopia\CLI\Console to Utopia\Console across all files
- Migrate Utopia\Http to Utopia\Http\Http namespace
- Migrate Utopia\Swoole\Files to Utopia\Http\Files (now instance-based)
- Convert static CLI::setResource() calls to instance-based Dependency API
- Fix StatsResources task named parameter mismatch
2026-02-10 10:34:24 +05:30
Jake Barnby
2416eef4a7 Fix stats leak 2026-02-04 19:20:19 +13:00
loks0n
18371eb511 fix: stats usage memory leak 2025-10-22 17:53:16 +01:00
Damodar Lohani
b63c2804f1
Fix: undefined $sequence 2025-10-16 10:26:49 +05:45
Damodar Lohani
53212dc654
Merge branch '1.8.x' into fix-make-stats-usage-extendable 2025-10-12 10:17:33 +05:45
Damodar Lohani
432faaf209
Fix: make methods protected for extending 2025-10-09 08:24:39 +05:45
Jake Barnby
9e3c439c51
Merge remote-tracking branch 'origin/1.8.x' into feat-txn
# Conflicts:
#	composer.lock
2025-10-07 18:57:46 +13:00
Jake Barnby
52892ee46e
Upgrade for breaking changes 2025-10-04 22:32:01 +13:00
Jake Barnby
ef147cde21
Format 2025-09-26 14:28:11 +12:00
Jake Barnby
9fde875904
Merge remote-tracking branch 'origin/1.8.x' into feat-txn
# Conflicts:
#	composer.lock
#	src/Appwrite/Platform/Workers/StatsResources.php
#	src/Appwrite/Platform/Workers/StatsUsage.php
2025-09-22 16:12:45 +12:00
fogelito
7d1a1d3ef4 use $tenant 2025-09-17 08:45:23 +03:00
fogelito
e673d405d6 formatting? 2025-09-11 10:14:16 +03:00
fogelito
84aaaf810f Question 2025-09-11 10:07:45 +03:00
fogelito
5740eb8901 Add sorting 2025-09-11 10:04:42 +03:00
Jake Barnby
d28643bd2b
Update DB 2025-09-05 01:02:30 +12:00
Matej Bačo
f07abce6f8
Merge branch '1.7.x' into feat-use-first-class-callable-syntax 2025-06-25 16:46:30 +02:00
Khushboo Verma
6530d31e7a Use ->action(...)) 2025-06-04 14:07:43 +05:30
Jake Barnby
3158c15111
Merge remote-tracking branch 'origin/1.7.x' into 1.8.x
# Conflicts:
#	app/controllers/api/functions.php
#	app/controllers/api/project.php
#	app/controllers/api/proxy.php
#	app/controllers/api/storage.php
#	app/controllers/api/vcs.php
#	app/controllers/general.php
#	app/controllers/shared/api.php
#	app/init/database/filters.php
#	composer.json
#	composer.lock
#	src/Appwrite/Migration/Migration.php
#	src/Appwrite/Migration/Version/V15.php
#	src/Appwrite/Migration/Version/V16.php
#	src/Appwrite/Migration/Version/V17.php
#	src/Appwrite/Migration/Version/V18.php
#	src/Appwrite/Migration/Version/V19.php
#	src/Appwrite/Migration/Version/V20.php
#	src/Appwrite/Migration/Version/V21.php
#	src/Appwrite/Platform/Tasks/Migrate.php
#	src/Appwrite/Platform/Workers/Builds.php
#	src/Appwrite/Platform/Workers/Deletes.php
#	src/Appwrite/Platform/Workers/Functions.php
#	src/Appwrite/Platform/Workers/StatsResources.php
#	src/Appwrite/Platform/Workers/StatsUsage.php
2025-05-27 13:36:23 +12:00
Jake Barnby
86f7489640
Internal ID -> sequence 2025-05-26 17:42:11 +12:00
Christy Jacob
28d2ed1baa
Revert "Feat sequence" 2025-05-23 21:39:56 +04:00
Jake Barnby
71e3446498
Change internal ID to sequence 2025-05-23 02:55:29 +12:00
Jake Barnby
3ec0f08db1
Merge remote-tracking branch 'origin/1.6.x' into feat-sync-1.6.x
# Conflicts:
#	composer.lock
#	src/Appwrite/Messaging/Adapter/Realtime.php
#	src/Appwrite/Platform/Workers/Deletes.php
2025-05-21 20:15:08 +12:00
Jake Barnby
16b2449787
Revert "Merge pull request #9703 from appwrite/revert-9659-feat-pool-adapter"
This reverts commit bf9deb09f5, reversing
changes made to d312fe22ff.

# Conflicts:
#	app/cli.php
#	app/init/registers.php
#	composer.lock
#	src/Appwrite/Messaging/Adapter/Realtime.php
#	src/Appwrite/Platform/Tasks/ScheduleBase.php
#	src/Appwrite/Platform/Tasks/ScheduleExecutions.php
#	src/Appwrite/Platform/Tasks/ScheduleFunctions.php
#	src/Appwrite/Platform/Tasks/ScheduleMessages.php
2025-05-14 18:14:07 +12:00
Jake Barnby
c759f9ec11
Revert "Feat pool adapter" 2025-04-30 23:24:54 +12:00
Jake Barnby
43ae7c4b14
Format 2025-04-29 14:57:18 +12:00
Jake Barnby
38aae9e2c1
Fix sync 2025-04-29 14:07:48 +12:00
Matej Bačo
d8103cb57e Merge branch '1.7.x' into 1.6.x 2025-04-25 12:18:04 +02:00
Damodar Lohani
f9141ca564 fix param types 2025-04-15 04:48:19 +00:00
Damodar Lohani
93f86e57ea use clone 2025-04-15 03:15:24 +00:00
Damodar Lohani
a46c5d1029
Update src/Appwrite/Platform/Workers/StatsUsage.php
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
2025-04-15 08:54:04 +05:45
Damodar Lohani
5d2b0c38d9 Fix reduce for functions and sites 2025-04-03 04:16:27 +00:00
Damodar Lohani
ac152a76b5 Fix: usage stats changes 2025-03-31 06:28:58 +00:00
Damodar Lohani
e14ae7ea4a fix 2025-03-31 03:59:37 +00:00
Damodar Lohani
ec21effd2c Fix type error 2025-03-31 03:55:06 +00:00
Damodar Lohani
1389bab3d1 remove db storage check 2025-03-30 05:56:14 +00:00
Damodar Lohani
05067302d2 Fix: merge the working of StatsUsage and StatsUsageDump 2025-03-27 08:25:48 +00:00
Khushboo Verma
813424aa3c Split params across multiple lines where overflowing 2025-03-20 20:37:32 +05:30
Christy Jacob
cf41d44de4 fix: general tests 2025-02-23 14:47:57 +05:30
Damodar Lohani
59516408af revert env update 2025-02-09 05:15:26 +00:00
Damodar Lohani
cd45177558 fix pool empty 2025-02-06 08:06:15 +00:00
Damodar Lohani
c3495dde35 fix key 2025-02-06 04:17:49 +00:00
Damodar Lohani
68c3aa3078 update to use publisher 2025-02-05 09:53:29 +00:00
Damodar Lohani
074f4417ff image transformations metrics and batch writes 2025-01-30 06:24:10 +00:00
Damodar Lohani
d0724812d7 fix 2025-01-30 05:05:05 +00:00
Damodar Lohani
6fedefdeda fix 2025-01-30 05:03:41 +00:00