1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00
Commit graph

61 commits

Author SHA1 Message Date
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
fogelito fce6f152e8 Test Index Limit Comment 2022-06-15 10:47:46 +03:00
fogelito 0d1b1ddef6 Adding Account + teams + users Internal Ids to colleactions 2022-06-14 20:15:22 +03:00
Everly Precia Suresh 19300ccdd7 format files in app, src, tests 2022-05-23 14:54:50 +00:00
Matej Baco 56bf7a51df Refactored 'sum' to 'total' 2022-02-27 10:57:09 +01:00
Eldad Fux c43b71f78a Merge branch 'master' of github.com:appwrite/appwrite into fix-create-existing-collection 2022-01-24 23:33:46 +02:00
Jake Barnby 06719b172c Add listCollection using search parameter tests 2022-01-19 22:04:57 +13:00
Matej Baco 2f75f9d13d Removed leftover 2022-01-12 20:54:19 +01:00
Matej Baco 6b77fcf21f FIxed 409 for createCollection 2022-01-12 20:51:13 +01:00
Torsten Dittmann 86075a50ab feat: replace attributeId and indexId with key 2021-12-16 16:04:30 +01:00
kodumbeats 27d1405af0 Test for purged document cache on deleteAttribute 2021-11-23 12:39:01 -05:00
kodumbeats cb6a21f34f avoid overwhelming DatabaseV1 queue with >1000 attributes at once 2021-10-26 15:15:46 -04:00
kodumbeats f30858f09e Ensure attributes are available before testing indexes 2021-10-25 20:14:12 -04:00
kodumbeats c0ade69c14 Sleep long enough for all attributes to create 2021-10-25 16:15:16 -04:00
Torsten Dittmann dc99127533 increase sleeps 2021-10-22 19:21:52 +02:00
Torsten Dittmann 9941198a7f Merge branch 'feat-database-indexing' of https://github.com/appwrite/appwrite into feat-before-pagination 2021-10-06 16:11:04 +02:00
Torsten Dittmann 301e3c3e1a
Merge pull request #1569 from appwrite/feat-cleanup-index-on-delete-attribute
feat(refactor-db): clean up internal indexes collection on delete attribute
2021-10-05 21:26:06 +00:00
Torsten Dittmann 33699ea2c4 feat(controllers): implement before cursor pagination 2021-10-05 12:30:33 +02:00
kodumbeats f4d07e826b Fix tests by testing cleanup duplicate behavior on fresh collection 2021-09-27 19:38:03 -04:00
kodumbeats 3c05a43ea7 Merge remote-tracking branch 'origin/feat-database-indexing' into feat-db-attribute-limits 2021-09-20 21:28:54 -04:00
kodumbeats fdd43837c1 Test duplicate index is removed in edge case of deleteAttribute 2021-09-20 21:23:41 -04:00
kodumbeats 51ea0aecb1 Merge remote-tracking branch 'origin/feat-database-indexing' into feat-cleanup-index-on-delete-attribute 2021-09-20 13:32:16 -04:00
kodumbeats 1410101db8 Test index cleanup when attribute is deleted 2021-09-02 17:38:46 -04:00
kodumbeats 8c3ca6808c Test deleteCollection removal of attributes/indexes 2021-09-02 12:46:05 -04:00
kodumbeats 624d099bf9 Assert row width exception is thrown 2021-09-01 10:36:01 -04:00
kodumbeats efa0b86299 Add assertions for row width limit 2021-08-31 12:35:03 -04:00
kodumbeats 8f06625980 Reduce sleep time in test 2021-08-31 11:53:20 -04:00
kodumbeats 42ca474731 Search for attributes from internal table 2021-08-31 11:35:06 -04:00
kodumbeats 4f4db30a8a Test for attribute limit exception 2021-08-31 11:32:49 -04:00
kodumbeats 0d2bbb0ae9 Fix tests for index limits 2021-08-24 19:35:43 -04:00
kodumbeats e6d4897acc Debug index limits tests 2021-08-24 18:23:12 -04:00
kodumbeats a4486fd99e Use indexId instead of id 2021-08-24 18:21:56 -04:00
kodumbeats c072a07ed5 Increase sleep for index tests 2021-08-24 18:21:56 -04:00
kodumbeats bf4c1c8c9c Fix tests 2021-08-24 18:21:56 -04:00
kodumbeats 34b6894be2 Add more tests for index limits 2021-08-24 18:20:54 -04:00
kodumbeats 1c1312baae Catch exception for index limit 2021-08-24 18:20:04 -04: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
Eldad Fux e39ed9cf9b Fixed some tests 2021-08-22 17:06:59 +03:00
Eldad Fux 1ecd9c865e Fixed tests removed redundant $collection attribute 2021-08-17 09:24:12 +03:00
Torsten Dittmann a2e57a4f33
Merge branch 'feat-database-indexing' into feat-database-after-pagination 2021-08-10 22:20:30 +02:00
Torsten Dittmann f7be5cd7b1 tests(database): after pagination tests 2021-08-09 16:54:10 +02:00
kodumbeats 5296e40b07 Test for deleting index 2021-08-08 19:56:31 -04:00
kodumbeats a42588f334 Test for attribute deletion 2021-08-08 18:08:10 -04:00
Damodar Lohani 201d7114ec Merge branch 'feat-database-indexing' into feat-custom-id 2021-08-04 12:27:19 +05:45
kodumbeats 92175c5e32 Adjust tests for new attribute routes 2021-07-21 11:05:18 -04:00
Damodar Lohani 6aa5bb42b6 fix tests for database 2021-07-19 15:11:00 +05:45
kodumbeats 4567bc0d77 Ensure attributes are removed from queue before adding documents 2021-06-18 13:09:07 -04:00
kodumbeats 9fb64c5621 createCollection requires read/write params 2021-06-17 11:15:14 -04:00
kodumbeats 0e7c55c17c Fix tests for deleteDocument 2021-06-15 10:24:51 -04:00