1
0
Fork 0
mirror of synced 2024-07-02 13:10:38 +12:00
Commit graph

396 commits

Author SHA1 Message Date
Christy Jacob f00fead07b Merge branch 'feat-database-indexing' of github.com:appwrite/appwrite into feat-new-usage-endpoints 2021-08-28 21:39:01 +05:30
Eldad A. Fux 06096b4168
Merge pull request #1498 from appwrite/fix-catch-duplicate-index-exception
fix(refactor-db): catch duplicate exception when creating and updating documents
2021-08-28 07:29:46 +03:00
kodumbeats e9541a9269 Fix tests 2021-08-27 21:46:33 -04:00
kodumbeats 4af81db280 Authorization validator only accepts one argument 2021-08-27 21:45:42 -04:00
kodumbeats a33faab213 Enforce attribute refactored to permission 2021-08-27 21:45:15 -04:00
kodumbeats 2b057c0617 Skip authorization on document routes if collection permissions are met 2021-08-27 20:56:32 -04:00
kodumbeats 5a1ab3b059 Add enforce param to collections 2021-08-27 20:44:32 -04:00
kodumbeats 559fe95b7c Prefer single query to internal DB 2021-08-27 20:32:44 -04:00
kodumbeats c3534b4383 Clean up code 2021-08-27 19:45:18 -04:00
kodumbeats b293c5dd65 Merge remote-tracking branch 'origin/feat-database-indexing' into feat-response-models-new-attributes 2021-08-27 16:55:00 -04:00
kodumbeats fb80088286 Create range filter for numeric attributes 2021-08-27 16:27:48 -04:00
Christy Jacob 6835124af8 feat(usage): rename all usage response models 2021-08-27 23:04:43 +05:30
kodumbeats a619c26aff Use database filter to encode default value as JSON string to preseve type 2021-08-27 13:12:16 -04:00
Christy Jacob ad99f8bd24 feat(usage): rename all usage response models 2021-08-27 22:15:08 +05:30
kodumbeats eba9bfa49d Harmonize exception messages 2021-08-27 08:41:22 -04:00
Christy Jacob 3d512e74bf feat(usage): added response models for database api 2021-08-26 23:45:36 +05:30
Christy Jacob 7775daa478 feat(usage): added new response model 2021-08-26 16:30:03 +05:30
Christy Jacob 747827e2a9 Merge branch 'feat-usage-daemon' of github.com:appwrite/appwrite into feat-new-usage-endpoints 2021-08-26 13:52:27 +05:30
kodumbeats 5472415231 Encode attribute default as json string 2021-08-25 16:43:15 -04:00
kodumbeats 1c52b0b4dc Prefer Document array data structure for attributes 2021-08-25 15:37:07 -04:00
kodumbeats 84f9f71b81 Fix race condition between database controller and worker 2021-08-25 15:36:45 -04:00
Damodar Lohani 95a20159a7 fix merge errors 2021-08-25 12:09:02 +05:45
kodumbeats 2f26f8ae4f Count index from internal index table 2021-08-24 19:35:32 -04:00
kodumbeats 1c1312baae Catch exception for index limit 2021-08-24 18:20:04 -04:00
kodumbeats 5c040bd5f3 Add min and max for response model 2021-08-24 14:57:34 -04:00
kodumbeats 7506142ab9 Parse min and max from formatOptions for response model 2021-08-24 14:01:53 -04:00
kodumbeats cc0c3d074e Replace last line that was somehow removed during interactive rebase 2021-08-24 10:03:32 -04:00
kodumbeats 98e15f782a Use 409 response for duplicate exception 2021-08-24 09:53:49 -04:00
kodumbeats 758f8e8eb2 Catch duplicate index exception when creating and updating a document 2021-08-24 09:53:15 -04:00
kodumbeats c4cb72731e Refactor attributeCallback to function createAttribute 2021-08-24 09:49:58 -04:00
kodumbeats 4b0dc9dab3 Use param validation from framework 2021-08-24 09:46:41 -04:00
Damodar Lohani c81ee72c7e Merge branch 'feat-database-indexing' into feat-usage-daemon 2021-08-24 15:04:07 +05:45
Eldad Fux 5bf7f3f773 Merge branch 'feat-database-indexing' of github.com:appwrite/appwrite into feat-decouple-collections 2021-08-24 00:25:21 +03:00
kodumbeats 401a57a538 Merge remote-tracking branch 'origin/feat-decouple-collections' into feat-response-models-new-attributes 2021-08-23 14:29:05 -04:00
Eldad Fux 266374899e Fixed tests 2021-08-23 10:27:09 +03:00
Eldad Fux a6c62c95b0 Updated tests 2021-08-23 07:06:53 +03:00
Eldad Fux f1ec1b2a05 Fixed tests 2021-08-22 19:36:26 +03:00
kodumbeats 4d1bb3a07d Merge remote-tracking branch 'origin/feat-database-indexing' into feat-response-models-new-attributes 2021-08-22 12:34:10 -04:00
Eldad Fux 31500cd675 Sub query support for indexes 2021-08-22 18:00:00 +03:00
Eldad Fux e39ed9cf9b Fixed some tests 2021-08-22 17:06:59 +03:00
Eldad Fux 555d2f7529 Hardcoded URL size, fixed icons 2021-08-22 15:59:44 +03:00
Eldad Fux fa909e844d Added new delete attribute flow 2021-08-22 11:04:51 +03:00
Eldad Fux c507cd44aa Fixed format options 2021-08-22 00:48:07 +03:00
Eldad Fux 6943380118 Updated data structures for attribute 2021-08-21 07:48:28 +03:00
Eldad Fux c0b86a5d17 Work in progress 2021-08-20 20:02:44 +03:00
Christy Jacob a2a73d87e2 feat(usage): added usage endpoint for database 2021-08-20 17:52:04 +05:30
Christy Jacob 24925d2eb2 feat(usage): cleanup comments 2021-08-20 17:40:52 +05:30
Christy Jacob c36b5b8b30 feat(usage): cleanup comments 2021-08-20 17:11:13 +05:30
Christy Jacob ae030ebd4f feat(usage): doc fix 2021-08-20 17:10:35 +05:30
Christy Jacob 2468e6e97d feat(usage): added usage endpoint for collections 2021-08-20 17:08:57 +05:30
Christy Jacob 8b393b1165 feat(usage): added usage endpoint for database 2021-08-20 16:53:54 +05:30
Eldad Fux 5ba2ba4c4c SubQuery test 2021-08-20 14:15:17 +03:00
Christy Jacob f3074bc024 feat(usage): some refactoring 2021-08-20 15:34:57 +05:30
Christy Jacob cfe49b6892 feat(usage): refactored functions usage endpoint 2021-08-20 13:54:45 +05:30
Eldad Fux 7859f35612 Updated SDK 2021-08-20 09:23:58 +03:00
Damodar Lohani 0d47dea97f Merge branch 'feat-database-indexing' into feat-usage-daemon 2021-08-19 11:12:49 +05:45
Damodar Lohani bc05c4d3a5 update custom id description on all services 2021-08-19 10:37:36 +05:45
Eldad Fux 5811a5680a Work in progress 2021-08-19 07:05:44 +03:00
Eldad Fux 266cce237e Merge branch 'feat-database-indexing' of github.com:appwrite/appwrite into feat-decouple-collections 2021-08-18 22:00:26 +03:00
Eldad Fux 89f55a1727 Re-orgenized controller flow 2021-08-18 16:42:03 +03:00
Eldad Fux d5d8ed365c Merge branch 'feat-database-indexing' of github.com:appwrite/appwrite into feat-db-search-attribute 2021-08-18 16:37:39 +03:00
Eldad Fux 4a0d8876df Fixed tests 2021-08-18 15:36:55 +03:00
Eldad Fux ca3bae9259 Updated collectionId 2021-08-18 14:46:05 +03:00
Eldad Fux 3b1facaaa9 Updated collectionId 2021-08-18 14:43:23 +03:00
Eldad Fux c4e5c8ac96 Updated collectionId 2021-08-18 14:41:35 +03:00
Eldad Fux 1ecd9c865e Fixed tests removed redundant $collection attribute 2021-08-17 09:24:12 +03:00
kodumbeats 8f24d121f5 Validate attributes and responses 2021-08-16 19:21:00 -04:00
Eldad Fux cacb0f9577 WIP 2021-08-16 22:24:15 +03:00
Eldad Fux 3ffc69b7c4 WIP 2021-08-16 20:28:33 +03:00
Eldad Fux adc86fbac5 Fixed pagination 2021-08-16 00:32:27 +03:00
Eldad Fux 826a4527a0 Added documents list 2021-08-16 00:09:40 +03:00
Damodar Lohani cc49cb6a04 set collection Id as param 2021-08-15 17:02:46 +05:45
Damodar Lohani 251f14cd69 usage params in database endpoints 2021-08-15 16:53:32 +05:45
Eldad A. Fux 52132c22b6
Merge branch 'feat-database-indexing' into feat-db-search-attribute 2021-08-14 21:58:56 +03:00
Eldad Fux a7c4edba95 Updated collection structures to support fulltext search 2021-08-14 21:56:28 +03:00
Eldad Fux 9b8b8304ac Merge branch 'feat-database-indexing' of github.com:appwrite/appwrite into feat-db-ui-updates 2021-08-14 13:35:49 +03:00
Eldad Fux 2d7773ff12 Merged collections, attributes and indexes scopes 2021-08-14 13:16:00 +03:00
Eldad Fux 17bbdc3a52 Updated logs screen 2021-08-14 13:13:24 +03:00
Eldad Fux 87a9ce2941 Merge branch 'feat-database-indexing' of github.com:appwrite/appwrite into feat-db-ui-updates 2021-08-13 14:37:00 +03:00
Eldad Fux 6618af473e New activity tab 2021-08-13 14:19:16 +03:00
Torsten Dittmann 7a152541e0 Merge branch 'feat-database-after-pagination' of https://github.com/TorstenDittmann/appwrite into feat-database-after-pagination 2021-08-11 15:30:34 +02:00
Torsten Dittmann 1061dc6366 fix(after-pagination): updated descriptions 2021-08-11 15:30:25 +02:00
Torsten Dittmann a2e57a4f33
Merge branch 'feat-database-indexing' into feat-database-after-pagination 2021-08-10 22:20:30 +02:00
Eldad Fux b8807cc2fc Merge branch 'feat-add-db-logs' of github.com:appwrite/appwrite into feat-db-ui-updates 2021-08-10 21:04:44 +03:00
Eldad Fux d7eabe3347 init 2021-08-10 21:03:32 +03:00
Torsten Dittmann 8296021b63 Merge branch 'feat-database-indexing' of https://github.com/appwrite/appwrite into feat-database-after-pagination 2021-08-09 12:03:15 +02:00
Eldad Fux 034d6db8c3 UI - work in progress 2021-08-09 10:08:49 +03:00
kodumbeats ae95d1b83a Fix logic for known indexes 2021-08-08 19:46:14 -04:00
kodumbeats e609954659 Fix logic for finding matching attribute 2021-08-08 18:07:59 -04:00
Torsten Dittmann dac093c645 feat(database): add after pagination 2021-08-06 14:35:57 +02:00
Torsten Dittmann fb1546cfcc rename orderAfter to after 2021-08-06 12:34:42 +02:00
Torsten Dittmann 01d0ce6988 feat(database): after pagination 2021-08-05 21:01:00 +02:00
Damodar Lohani 201d7114ec Merge branch 'feat-database-indexing' into feat-custom-id 2021-08-04 12:27:19 +05:45
Damodar Lohani 136681df27 Merge branch 'feat-database-indexing' into feat-custom-id 2021-08-03 13:34:02 +05:45
kodumbeats 3846d66868 Use sdk.auth instead of sdk.platform 2021-08-02 16:11:24 -04:00
kodumbeats 7b2f33d861 Merge remote-tracking branch 'origin/feat-database-indexing' into feat-create-attribute-routes 2021-08-02 15:31:44 -04:00
Eldad Fux b24225b92c Updated Console SDK 2021-07-31 23:40:34 +03:00
Damodar Lohani 68ea2e2ab1 re introduce name attributes 2021-07-29 13:54:24 +05:45
kodumbeats 432a1a7f5c Parse min and max as proper types 2021-07-27 15:12:24 -04:00
kodumbeats 1eae5490df Encode format as json string 2021-07-27 14:19:37 -04:00
Damodar Lohani 062e22a708 Merge branch 'feat-database-indexing' into feat-custom-id 2021-07-27 11:45:26 +05:45
kodumbeats b9fea89e73 Use refactored attribute function 2021-07-26 21:00:36 -04:00
kodumbeats c0b48ec247 Remove references to old db responses 2021-07-26 19:11:25 -04:00
kodumbeats df5703022b Create custom formats via callback in structure validator 2021-07-26 19:10:39 -04:00
kodumbeats 58f335feff Merge remote-tracking branch 'origin/feat-database-indexing' into feat-create-attribute-routes 2021-07-26 16:48:22 -04:00
Eldad Fux 13c1bb045d Cleanup old db library 2021-07-25 17:47:18 +03:00
kodumbeats e22d4e1db9 Add support for min and max for numeric attributes 2021-07-23 17:38:14 -04:00
kodumbeats ff2fd8a381 Set format structure validators on app init 2021-07-23 10:59:55 -04:00
kodumbeats aea2d2ffa5 Accept format on createAttribute for document structure validation 2021-07-22 16:38:42 -04:00
Damodar Lohani b86b2e8430 collection update name attribute 2021-07-22 11:54:57 +05:45
Damodar Lohani e88450268b depricate name params 2021-07-22 10:57:01 +05:45
kodumbeats 97b7c863a8 Validate default value only when not null 2021-07-21 10:26:50 -04:00
kodumbeats b64202043d Renamed import due to reserved keyword conflicts 2021-07-21 10:26:08 -04:00
kodumbeats 6fc5bf0a71 Add createAttribute routes for each primitive type 2021-07-21 09:23:12 -04:00
kodumbeats 9ac2a4f94c Remove outdated comments 2021-07-21 09:22:34 -04:00
Damodar Lohani 6511d63726 Merge branch 'feat-database-indexing' into feat-custom-id 2021-07-20 11:12:54 +05:45
Eldad A. Fux c1a67fc718
Merge branch 'feat-database-indexing' into fix-db-sync-with-master 2021-07-19 21:20:29 +03:00
Damodar Lohani d8dc30b08a custom id on database 2021-07-19 15:10:53 +05:45
Eldad Fux bbc20dad10 Merge branch 'master' of github.com:appwrite/appwrite into fix-db-sync-with-master 2021-07-18 17:17:29 +03:00
Eldad Fux 5ec5649603 Fixed wrong paths 2021-07-18 11:19:23 +03:00
kodumbeats 2619157dd0 Add inline todos 2021-07-16 09:53:55 -04:00
kodumbeats acc4bbb052 Deletes worker no longer needed for collections 2021-07-12 12:45:30 -04:00
Torsten Dittmann f158980963
fix(database): default value for empty rules 2021-07-07 13:46:44 +02:00
kodumbeats 06c276d855 Tighten up validation 2021-07-05 16:27:20 -04:00
kodumbeats 64d1913a03 Keep search param in listCollections 2021-07-05 15:19:18 -04:00
kodumbeats 4a90076013 Cleanup code comments 2021-07-05 15:15:39 -04:00
Torsten Dittmann d9986cb205 fix(database): properly cast to int 2021-07-05 11:33:47 +02:00
kodumbeats 860a2c7616 Fix index and attribute routes for tests 2021-07-02 20:20:09 -04:00
kodumbeats 50a3493d69 Use attribute size as index length 2021-07-02 18:23:58 -04:00
kodumbeats dfa7516b15 Add missing typehint 2021-07-02 18:22:49 -04:00
kodumbeats bafde0aa29 Remove unneeded param from callback 2021-07-02 16:21:06 -04:00
kodumbeats 145203663d Pass default param where required 2021-07-02 13:29:03 -04:00
kodumbeats 12b58b00ac
Update descriptions/examples for docs
Applied suggestions from code review

Co-authored-by: Eldad A. Fux <eldad.fux@gmail.com>
2021-06-30 11:10:45 -04:00
kodumbeats 4c81d6b490 Remove unnecessary params from new attribute and index routes 2021-06-23 10:21:32 -04:00
kodumbeats ea46b7b783 Use stricter validators for params 2021-06-22 15:34:42 -04:00
kodumbeats 2e0b7fe471 Support queries for listCollections 2021-06-18 15:27:16 -04:00
kodumbeats 9aad04b484 Accept default permissions from Utopia for now 2021-06-18 15:27:03 -04:00
kodumbeats b1a6302311 Use database worker to remove attributes and indexes 2021-06-18 14:27:14 -04:00
kodumbeats afd347ca6f Create attributes and indexes using database worker 2021-06-18 12:13:37 -04:00
kodumbeats 3c7b7d21f5 Add reminder to filter results from listCollections 2021-06-17 14:22:43 -04:00
kodumbeats 160330675a Add whitelist of filters to createAttribute 2021-06-17 13:09:40 -04:00
kodumbeats 435f6879f2 Remove unused imports 2021-06-17 13:03:24 -04:00
kodumbeats a54af88a38 Address todo items for attributes and index routes 2021-06-17 11:53:06 -04:00
kodumbeats 2530341bf9 Fix updateCollection and clean up code 2021-06-16 16:36:18 -04:00
kodumbeats 0e7c55c17c Fix tests for deleteDocument 2021-06-15 10:24:51 -04:00
kodumbeats a62c46cc44 Fix tests for update and delete document 2021-06-15 09:38:24 -04:00
kodumbeats 33d07c2ba4 Move listDocuments to new db 2021-06-14 15:55:36 -04:00
kodumbeats f7d3b726fd Remove erroneous use 2021-06-11 16:21:54 -04:00
kodumbeats e35d883c56 Test for creating collections and documents 2021-06-11 16:06:54 -04:00
kodumbeats 1885a9632d Fix tests for create/delete collection 2021-06-11 14:07:05 -04:00
kodumbeats 3510bc88b4 use isEmpty document method to check for empty collection 2021-06-11 10:25:52 -04:00
kodumbeats 7138dbd34f Use new db for collections and documents 2021-06-10 14:19:42 -04:00
kodumbeats e9d93ce95e Throw 404 when collection not found 2021-06-10 09:15:00 -04:00
kodumbeats 6f3b331069 Align index and attribute routes to db and models 2021-06-09 17:11:51 -04:00
kodumbeats be79eb76c6 Use new db for attribute endpoints 2021-06-08 16:12:14 -04:00
kodumbeats 2342d84de3 Merge branch 'feat-database-indexing' of github.com:appwrite/appwrite into feat-db-refactor-routes 2021-06-08 12:47:59 -04:00
Eldad Fux 26d0d5d3dc Implemented search 2021-05-27 13:09:14 +03:00
Eldad Fux ce8b3686d8 Replaced sdk.security with sdk.auth 2021-04-16 10:22:17 +03:00
Eldad Fux 7a0ff7699a Merge branch '0.8.x' of github.com:appwrite/appwrite into feat-jwt-support-for-sdks 2021-04-16 10:20:12 +03:00
Eldad Fux 994dd3164f Merge branch 'dev' of github.com:appwrite/appwrite into 0.8.x 2021-04-14 12:02:17 +03:00
Torsten Dittmann 3ff66179c5 feat: add document response model that extends any type 2021-04-08 10:39:23 +02:00
kodumbeats d4b107bf1d
Merge branch '0.8.x' into refactor-event-payload-to-data 2021-03-29 15:32:14 -04:00
kodumbeats 9f8e7358d4 Refactor event $payload to $eventData 2021-03-29 14:00:10 -04:00
Eldad Fux 8ea83b24c3 Added new JWT as SDK auth method 2021-03-29 00:22:12 +03:00
kodumbeats c10d9b6701 Outline remaining routes 2021-03-25 15:52:57 -04:00
kodumbeats 7a07ff58d7 Outline index and attributes routes 2021-03-24 11:40:33 -04:00
kodumbeats 48b12152e3 Outline createIndex 2021-03-23 17:19:19 -04:00
Eldad Fux 46c465b80e Added some fixes and dedicated tests 2021-03-22 09:34:51 +02:00
Eldad Fux b5846f5a79 Updated default permissions 2021-03-22 00:17:20 +02:00
Eldad Fux b69deb594d Allow permission reset 2021-03-15 00:33:59 +02:00
Eldad Fux e704cc82b5 Remove content type when no content 2021-02-02 08:02:35 +02:00
Eldad A. Fux de70f71114
Merge pull request #766 from christyjacob4/feat-na-maintenance-task
feat: starter for maintenance task
2020-12-30 15:42:04 +02:00
Christy Jacob c7306053d1 fix: use orderType in DB query 2020-12-30 01:00:49 +05:30
Christy Jacob e77abfe706 Merge branch '0.7.x' of https://github.com/appwrite/appwrite into feat-na-maintenance-task 2020-12-27 23:30:59 +05:30
Eldad Fux acc9bd7a91 Updated database controller 2020-12-26 17:05:04 +02:00
Christy Jacob 5e686183c6 Merge branch '0.7.x' of https://github.com/appwrite/appwrite into feat-na-maintenance-task 2020-12-24 20:10:03 +05:30
Christy Jacob b40b586342 patch: review comments and some fixes 2020-12-21 23:45:52 +05:30
Christy Jacob 62885aa13a patch: deletes worker refactoring 2020-12-18 19:35:20 +05:30
Christy Jacob 1ecbf8bc5d patch: refactor delete worker invocation 2020-12-18 17:58:08 +05:30
Christy Jacob e3a6c899c3 patch: delete based on collection 2020-12-18 16:38:58 +05:30
Eldad Fux c10817859d Minimized all direct API filters 2020-12-13 01:22:55 +02:00
Eldad Fux e3c58361d9 Merged all system events 2020-12-07 00:14:57 +02:00
Christy Jacob d44c2ead0e feat: delete documents using delete worker 2020-12-05 02:17:02 +05:30
Eldad Fux afd20d96f8 Updated routes lables 2020-11-11 23:02:24 +02:00
Eldad Fux 4211c3159e Updated docs 2020-11-05 18:02:25 +02:00
Eldad Fux 1e1e1a431f Minor cleanups 2020-10-31 10:42:41 +02:00
Eldad Fux e81fb88736 First commit 2020-10-30 21:53:27 +02:00
Eldad Fux 07b79c3103 Updated docs 2020-10-29 15:50:49 +02:00
Eldad Fux 0450604d27 Added external swoole lib and extended response class 2020-10-29 15:07:56 +02:00
Eldad Fux 95cafb9f1b Updated controllers and workers 2020-10-15 00:34:57 +03:00
Eldad Fux ca95ee803e Test preloading of all validators 2020-09-10 17:40:14 +03:00
Eldad Fux e399b13639 [BUG] case sensitive country flag code
Fixes #526
2020-09-09 23:29:39 +03:00
Eldad Fux 1d218b213c Updated docs 2020-09-08 00:36:13 +03:00
Eldad Fux 77667be404 Changes all name attributes length to max
of 128 chars
2020-09-08 00:28:40 +03:00
Eldad Fux 79ee6c04e8 Updated error message 2020-08-30 07:49:24 +03:00
Eldad Fux 7391f39798 Fix for nested docs structure error #514 2020-08-26 18:54:07 +03:00
Eldad Fux 1b897b4223 Merge branch 'master' of github.com:appwrite/appwrite into swoole 2020-07-11 21:38:51 +03:00
Eldad Fux abdae9b095 Fixed permission updating bug 2020-07-11 19:18:04 +03:00
Eldad Fux d2f676f41f Fixed DB input order 2020-07-08 17:28:01 +03:00
Eldad Fux 0b384765e8 Added some consistency to DB API 2020-07-08 17:13:15 +03:00