1
0
Fork 0
mirror of synced 2024-07-03 13:41:01 +12:00
Commit graph

601 commits

Author SHA1 Message Date
Christy Jacob 8e24dbe22f feat: update exception class 2022-08-14 13:35:11 +05:30
Christy Jacob cfab9221f2 feat: exceptions on more files 2022-08-14 12:32:41 +05:30
Christy Jacob a5bc0a61ca feat: exceptions on more files 2022-08-14 12:26:12 +05:30
Steven 610ec1a6a4 Update database query syntax 2022-08-14 05:44:55 +00:00
Jake Barnby ed712fb196 Merge remote-tracking branch 'origin/0.16.x' into refactor-permissions-inc-console-fix
# Conflicts:
#	app/controllers/general.php
#	composer.lock
2022-08-14 02:31:06 +12:00
Jake Barnby bdc8202422 Bad request for create permission on document/file 2022-08-14 02:24:28 +12:00
Jake Barnby 68cc919aaa Test fixes 2022-08-14 02:10:28 +12:00
Jake Barnby 737ebe408c Don't add create permission to documents/files if missing 2022-08-13 18:34:04 +12:00
Damodar Lohani c1c325505b organize metrics 2022-08-13 05:01:43 +00:00
Damodar Lohani d688187e23 update metrics value 2022-08-13 04:39:01 +00:00
Damodar Lohani 74a159ab99 fix key 2022-08-13 03:44:57 +00:00
Damodar Lohani be00b64b7e Merge branch 'feat-audits-label' of https://github.com/appwrite/appwrite into feat-usage-updates 2022-08-13 03:14:28 +00:00
Jake Barnby 8d4191b1a0 Lint 2022-08-13 02:46:50 +12:00
shimon 1af95fcdaa Tidy up 2022-08-12 16:21:32 +03:00
Damodar Lohani c5993ba8b9 storage usage stats via route labels 2022-08-11 02:18:22 +00:00
Damodar Lohani 16fe9e241a Merge branch 'feat-audits-label' of https://github.com/appwrite/appwrite into feat-usage-updates 2022-08-10 01:49:27 +00:00
shimon d2519c9a5b addressing comments 2022-08-09 17:38:54 +03:00
shimon 092e682591 Merge branch 'master' of github.com:appwrite/appwrite into feat-file-cache-cleanup
 Conflicts:
	app/controllers/shared/api.php
2022-08-09 15:02:29 +03:00
Jake Barnby 3611f9df94 Parameter order fix 2022-08-09 18:58:08 +12:00
Damodar Lohani bce998cb53 update imports and fix database usage 2022-08-09 06:28:38 +00:00
shimon 62ef532801 leftovers 2022-08-08 17:32:54 +03:00
shimon 89f164bdd7 resource namespace 2022-08-08 15:19:41 +03:00
Jake Barnby 69a79f660f Storage permission check fixes 2022-08-08 22:58:36 +12:00
shimon a6a9ad8cc0 databases controller 2022-08-08 11:14:27 +03:00
shimon c8196c41d4 api::payload 2022-08-07 18:09:37 +03:00
shimon ec39ff267c api::parseLabel 2022-08-07 17:30:47 +03:00
shimon f4c1a5ea35 response::send 2022-08-07 14:01:00 +03:00
Jake Barnby 5e4a422495 Use helpers to process permissions 2022-08-05 18:01:25 +12:00
Jake Barnby 54b07a9446 Handle document/file level security in collections layer 2022-08-04 16:20:11 +12:00
Jake Barnby d9f0ece812 Remove new properties from DB level 2022-08-04 12:08:16 +12:00
Jake Barnby 4520114780 Refactor storage to use new permissions 2022-08-02 21:19:15 +12:00
shimon 45ad0f6bdf Reference comments 2022-07-30 22:10:30 +03:00
shimon 5511a93e9c Expires header returned to the endpoints 2022-07-28 18:24:18 +03:00
Bradley Schofield 3c808ca895 Fix problem with Exception class 2022-07-26 15:56:59 +01:00
Bradley Schofield 96c6c0ff00 Migrate all exceptions to new signature 2022-07-26 15:24:32 +01:00
shimon d09bf306ce response changes 2022-07-26 15:50:33 +03:00
shimon 16ed2c1572 tidy up 2022-07-24 18:22:31 +03:00
shimon f214ead6f6 tidy up 2022-07-24 12:49:51 +03:00
shimon 64050337cf tidy up 2022-07-24 10:05:24 +03:00
shimon 02907f12f1 cache logic moved to api::init & api::shutdown 2022-07-23 20:42:42 +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 f384a3352b change class from database:: to dateTime:: 2022-07-12 16:32:39 +03:00
fogelito 7e08575245 builds, stats 2022-07-11 18:12:41 +03:00
Matej Bačo aae7ec6146 Upgrade to use new permissiosn validator features 2022-07-10 17:25:27 +00:00
shimon 59627ea9ef logger moved to App::shutdown 2022-07-09 21:24:28 +03:00
shimon b2b2534dcc logger moved to App::shutdown 2022-07-07 18:06:05 +03:00
shimon a0cfc2110a logger moved to App::shutdown 2022-07-07 17:51:22 +03:00
shimon 27333035c0 restore 2022-07-05 10:48:52 +03:00
shimon 0c2c030b71 restore 2022-07-05 10:46:41 +03:00
shimon 56a21b3968 small fix 2022-07-05 10:37:46 +03:00
shimon 7b429bdcd7 cache cleanup 2022-07-03 12:36:59 +03:00
Torsten Dittmann e83cf382fd fix: all sdks and specs 2022-06-28 13:21:28 +02:00
Torsten Dittmann ef1daf8f1c Merge branch 'master' of https://github.com/appwrite/appwrite into 0.15.x 2022-06-24 14:15:42 +02:00
Damodar Lohani 2750e60768
fix for ruby and go SDK as file params seems to be string 2022-06-24 15:24:44 +05:45
Damodar Lohani 8f14f5aa21
Database layer (#3338)
* database response model

* database collection config

* new database scopes

* database service update

* database execption codes

* remove read write permission from database model

* updating tests and fixing some bugs

* server side tests are now passing

* databases api

* tests for database endpoint

* composer update

* fix error

* formatting

* formatting fixes

* get database test

* more updates to events and usage

* more usage updates

* fix delete type

* fix test

* delete database

* more fixes

* databaseId in attributes and indexes

* more fixes

* fix issues

* fix index subquery

* fix console scope and index query

* updating tests as required

* fix phpcs errors and warnings

* updates to review suggestions

* UI progress

* ui updates and cleaning up

* fix type

* rework database events

* update tests

* update types

* event generation fixed

* events config updated

* updating context to support multiple

* realtime updates

* fix ids

* update context

* validator updates

* fix naming conflict

* fix tests

* fix lint errors

* fix wprler and realtime tests

* fix webhooks test

* fix event validator and other tests

* formatting fixes

* removing leftover var_dumps

* remove leftover comment

* update usage params

* usage metrics updates

* update database usage

* fix usage

* specs update

* updates to usage

* fix UI and usage

* fix lints

* internal id fixes

* fixes for internal Id

* renaming services and related files

* rename tests

* rename doc link

* rename readme

* fix test name

* tests: fixes for 0.15.x sync

Co-authored-by: Torsten Dittmann <torsten.dittmann@googlemail.com>
2022-06-22 12:51:49 +02:00
Torsten Dittmann bbdf70ee90 feat: use new $createdAt and $updatedAt attributes 2022-06-15 14:46:52 +02:00
Everly Precia Suresh 19300ccdd7 format files in app, src, tests 2022-05-23 14:54:50 +00:00
Torsten Dittmann 158ecce959 Merge branch 'master' of https://github.com/appwrite/appwrite into 0.14.x 2022-05-12 20:41:04 +02:00
Torsten Dittmann e69a22042c
Merge pull request #3113 from appwrite/feat-new-event-model
feat: new event model
2022-05-12 19:53:51 +02:00
Torsten Dittmann 9455a7c573
Merge pull request #3144 from appwrite/feat-array-limits
Feat: Array API limits
2022-05-12 19:03:29 +02:00
Matej Bačo 30dfba6238 Bug fix 2022-05-10 10:30:44 +00:00
Matej Bačo cd236bd3ff Merge remote-tracking branch 'origin/0.14.x' into fix-bucket-size-update 2022-05-10 10:28:32 +00:00
Matej Bačo d3560ea91b PR review changes 2022-05-10 10:28:16 +00:00
Torsten Dittmann 18379c25b8 fix: merge issues 2022-05-08 17:49:17 +02:00
Torsten Dittmann 33414b58b1 Merge branch '0.14.x' of https://github.com/appwrite/appwrite into feat-new-event-model 2022-05-08 17:25:01 +02:00
Torsten Dittmann 773e6d0415 style: fix some styles 2022-05-08 17:10:56 +02:00
Everly Precia Suresh a2091a2572 retrigger build 2022-05-06 15:12:11 +00:00
Everly Precia Suresh 8c4b035dd7 update storage.php with optional parameters 2022-05-06 13:33:44 +00:00
Everly Precia Suresh ceea134579 fix file param 2022-05-04 13:00:12 +00:00
Everly Precia Suresh 5b72d9d48d change file type 2022-05-04 12:49:35 +00:00
Everly Precia Suresh 4e8d9a1da7 refactor storage.php 2022-05-04 12:23:34 +00:00
Matej Bačo 5aa009d843 Rename const 2022-05-01 07:54:58 +00:00
Matej Bačo 4d2d7eddaf PR review changes 2022-05-01 07:53:59 +00:00
Matej Bačo dd8f96ea63 Define const APP_LIMIT_ATTRIBUTE_COUNT 2022-04-26 13:29:23 +00:00
Matej Bačo d36a2602ed Add limits, add docs 2022-04-25 07:23:25 +00:00
Torsten Dittmann 7790d72c0c fix: realtime, tests and webhooks 2022-04-18 18:21:45 +02:00
Torsten Dittmann 8ec435ed1f sync: changes 2022-04-17 22:34:32 +02:00
Torsten Dittmann 443f4c924d Merge branch 'master' of https://github.com/appwrite/appwrite into feat-new-event-model 2022-04-13 14:39:37 +02:00
Torsten Dittmann 87b8fc3c41 feat: event classes for different cases 2022-04-13 14:39:31 +02:00
Matej Bačo 1c59c8d8dd PR review changes 2022-04-01 09:00:31 +00:00
Matej Bačo da6ca5347c Implemented check and tests for bucket size 2022-03-31 13:10:30 +00:00
Damodar Lohani 0a1fbcd23d add missing attribute keys 2022-03-27 08:01:50 +00:00
Damodar Lohani a79c0bec58
Merge pull request #2973 from appwrite/fix-bucket-permission-on-create-file 2022-03-23 07:41:14 +05:45
Damodar Lohani b00b132238 fix missing auth skip while getting bucket 2022-03-20 06:31:34 +00:00
Damodar Lohani ab3db2af1b
add comment 2022-03-20 08:33:40 +05:45
Damodar Lohani 68b1950751
Update app/controllers/api/storage.php
Co-authored-by: Torsten Dittmann <torsten.dittmann@googlemail.com>
2022-03-20 08:20:52 +05:45
Damodar Lohani e37da6a5f7 code refactor 2022-03-18 11:51:59 +00:00
Damodar Lohani 3a43ef95b1 remove useless code 2022-03-18 11:19:26 +00:00
Damodar Lohani 2da677906b final fixes 2022-03-18 11:18:53 +00:00
Damodar Lohani 46e106ab56 fix content type logic 2022-03-18 11:07:54 +00:00
Damodar Lohani 43f60739d7
Merge branch 'master' into fix-preview-when-no-extension 2022-03-18 16:23:42 +05:45
Torsten Dittmann 0e5dd2def6 Merge branch 'master' of https://github.com/appwrite/appwrite into fix-bucket-permissions 2022-03-15 10:52:11 +01:00
Torsten Dittmann 4244bdedd3 fix: storage bucket permissions 2022-03-15 10:51:51 +01:00
Damodar Lohani d1abd4832f storage preview limit environment variable 2022-03-13 08:09:24 +00:00
Damodar Lohani 7d32f84cc2 fix output type 2022-03-13 07:58:49 +00:00
Damodar Lohani 935430c3e3 fix preview output when no output param and type doesn't exist 2022-03-13 07:52:00 +00:00
Alex Noble 6db28ae417 Fixing issue 2930 2022-03-09 22:49:51 +00:00
Damodar Lohani 30e3814c09
fix storage usage for deployments 2022-03-02 17:39:59 +05:45
Christy Jacob a8b4368397
Merge pull request #2867 from appwrite/fix-storage-providers
Fix executor env vars
2022-03-01 16:39:01 +04:00
Matej Bačo 14c67c2b54
Merge branch '0.13.x' into fix-rename-sum 2022-03-01 13:27:37 +01:00
Matej Bačo 2c34480d1b Fix executor env vars 2022-03-01 11:59:50 +00:00
Damodar Lohani a8f316110d default previews fix when files set on external storage 2022-03-01 11:37:51 +00:00
Matej Baco 56bf7a51df Refactored 'sum' to 'total' 2022-02-27 10:57:09 +01:00
Damodar Lohani 26a2bc8a97 missing method type to file preview 2022-02-27 13:24:33 +05:45
Christy Jacob cf2fee5b6f Merge branch '0.13.x' of github.com:appwrite/appwrite into feat-functions-refactor 2022-02-23 16:25:31 +04:00
Damodar Lohani 7a84fc88a6 fix indentation 2022-02-23 06:09:01 +00:00
Damodar Lohani ae0cac517e fix boolean 2022-02-23 05:50:55 +00:00
Damodar Lohani 6f6c6f3051
Update app/controllers/api/storage.php
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
2022-02-22 19:04:22 +05:45
Damodar Lohani 0b6bed0515 fix create bucket 2022-02-18 02:14:57 +00:00
Damodar Lohani 5645a003ab use internal id for bucket files tables 2022-02-17 13:48:25 +00:00
Christy Jacob ca2bee015a feat: add new error codes for storage 2022-02-17 02:55:54 +04:00
Christy Jacob da7512e050 Merge branch '0.13.x' of github.com:appwrite/appwrite into feat-add-error-codes 2022-02-17 02:25:29 +04:00
Eldad A. Fux f045adb654
Merge pull request #2786 from appwrite/feat-update-realtime-events
storage realtime event refactor
2022-02-17 00:03:43 +02:00
Damodar Lohani 193426e34b show default image icon for large image files 2022-02-16 10:04:49 +00:00
Damodar Lohani e7a36f4302 error code 2022-02-16 09:44:52 +00:00
Damodar Lohani 947d9dc57a limit preview to 10 MB 2022-02-16 09:39:06 +00:00
Damodar Lohani 8058c66374 fix realtime events for storage 2022-02-16 01:30:27 +00:00
Damodar Lohani bdaba2e34a fix validator 2022-02-11 00:05:57 +00:00
Christy Jacob 1ab27083c4 feat: update cursor errors 2022-02-09 02:56:11 +04:00
Christy Jacob 661630c1c6 Merge branch 'master' of github.com:appwrite/appwrite into feat-add-error-codes 2022-02-08 20:56:03 +04:00
Christy Jacob 42e424b70a feat: remove unused error 2022-02-07 01:33:48 +04:00
Christy Jacob 3cdccf0024 feat: use general server errors in storage API 2022-02-07 00:58:40 +04:00
Christy Jacob 7e200253ea feat: update error codes in the database API 2022-02-06 20:50:48 +04:00
Christy Jacob 1ca2cc7bc0 feat: update error codes in the functions API 2022-02-06 20:12:15 +04:00
Christy Jacob 7085bc81d1 feat: update error codes in the storage API 2022-02-06 18:45:09 +04:00
Christy Jacob 9ad151006b feat: update error codes in the storage API 2022-02-06 18:44:48 +04:00
Christy Jacob 4905792bb5 feat: update error codes in the storage API 2022-02-06 18:40:22 +04:00
Christy Jacob d9fbe80317 feat: update error codes in the storage API 2022-02-06 18:38:59 +04:00
Christy Jacob 6a8401dfe5 feat: update error codes in the storage API 2022-02-06 18:35:17 +04:00
Christy Jacob 2c14abb143 feat: update error codes in the storage API 2022-02-06 18:32:28 +04:00
Damodar Lohani efbfbd6f79 fire event only when final chunks is uploaded 2022-01-31 18:21:45 +05:45
Damodar Lohani e3bc0b48e9 fix removed and reordered attributes 2022-01-31 16:17:29 +05:45
Damodar Lohani 8000f40c9a use human readable formats 2022-01-31 14:20:29 +05:45
Damodar Lohani 1347829470 fix reogranize 2022-01-31 12:52:30 +05:45
Damodar Lohani 64b3a04465 fix remove adapter attribute from storage buckets 2022-01-31 12:50:12 +05:45
Damodar Lohani 0cd03d7ec2 remove unused attributes of buckets 2022-01-31 12:07:28 +05:45
Damodar Lohani 1515ee1825 fix deleting cache dir 2022-01-27 13:19:47 +05:45
Damodar Lohani 1c464274d0
Merge pull request #2685 from appwrite/fix-cache 2022-01-26 14:23:47 +05:45
Damodar Lohani 0d51236f98 Merge branch 'master' into fix-cache 2022-01-26 13:53:18 +05:45
Damodar Lohani 6754adc838 fix storage update 2022-01-25 15:21:43 +05:45
Damodar Lohani 58ec32340f remove cache on file delete 2022-01-25 13:37:11 +05:45
Torsten Dittmann d3150afebc feat: migration for 0.13 2022-01-18 12:05:04 +01:00
Damodar Lohani 24c803e7d9 Merge branch 'feat-storage-buckets' into feat-s3-integration 2022-01-16 18:09:09 +05:45
Damodar Lohani 41051a8979 fix range for offset 2022-01-16 17:24:36 +05:45
Damodar Lohani 16c0a7c544 directory separator 2022-01-16 17:23:02 +05:45
Damodar Lohani 1e3514b7b2 update antiVirus to antivirus for consistency 2022-01-16 13:40:55 +05:45
Damodar Lohani 7e33188f4d fix abort 2022-01-16 13:32:03 +05:45
Vincent Ge a102ee6f14 Wrap unique() in double quotes to better indicate that it's a literal string 2022-01-12 17:19:30 -05:00
Damodar Lohani 2239e4a5e6 Merge branch 'feat-s3-integration' into feat-refactor-storage-resource 2022-01-07 15:47:38 +05:45