1
0
Fork 0
mirror of synced 2024-10-05 12:43:13 +13:00
Commit graph

112 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
Matej Bačo
9e11941aae Added query length tests 2022-06-22 07:47:02 +00:00
shimon
6c7a6dcd8b null on default tests 2022-06-09 18:15:34 +03:00
Everly Precia Suresh
19300ccdd7 format files in app, src, tests 2022-05-23 14:54:50 +00:00
Torsten Dittmann
25c7127f76 tests: add float default 0 to database 2022-04-21 15:20:53 +02:00
Matej Baco
56bf7a51df Refactored 'sum' to 'total' 2022-02-27 10:57:09 +01:00
Torsten Dittmann
cd28a0ed97 tests: fix internalId assertion 2022-01-17 17:31:51 +01:00
Torsten Dittmann
ba2790221c fix: hide internal id from documents 2022-01-17 17:25:20 +01:00
Torsten Dittmann
21158e5a96
Merge pull request #2526 from appwrite/fix-query-value-limits
fix: database query value limits
2021-12-29 15:18:49 +01:00
Torsten Dittmann
03989a052b fix: query on 2021-12-29 15:06:44 +01:00
Torsten Dittmann
9e88092ee8 tests: add tests for query limit 2021-12-28 19:16:22 +01:00
Torsten Dittmann
447612b2d5 fix: database attributes tests 2021-12-27 18:21:54 +01:00
Torsten Dittmann
ffae301d5f fix: database service 2021-12-27 11:45:24 +01:00
Torsten Dittmann
7f82661801
Merge pull request #2503 from appwrite/feat-strict-enums
fix: strict enum attribute
2021-12-17 13:51:42 +01:00
Torsten Dittmann
2690cab771 Merge branch 'feat-database-indexing' of https://github.com/appwrite/appwrite into feat-database-disable-collections 2021-12-17 11:53:57 +01:00
Torsten Dittmann
0e84545829
Merge pull request #2506 from appwrite/fix-database-collection-level-permissions
fix: collection level permissions
2021-12-17 11:22:36 +01:00
Torsten Dittmann
166c906d51 fix: collection level permissions 2021-12-16 19:12:06 +01:00
Torsten Dittmann
86075a50ab feat: replace attributeId and indexId with key 2021-12-16 16:04:30 +01:00
Torsten Dittmann
a5840a478a tests: add enum strict check 2021-12-16 14:06:32 +01:00
Torsten Dittmann
a11d7bf750 fix: strict enum attribute 2021-12-16 11:15:55 +01:00
Torsten Dittmann
1291c8c8ec tests(database): add enable/disable tests 2021-12-13 14:23:12 +01:00
kodumbeats
4b9ff6cca2 Merge remote-tracking branch 'origin/feat-database-indexing' into feat-db-refactor-restrict-assignable-permissions 2021-11-28 07:32:29 -05:00
kodumbeats
dc7bb3eefc Remove testing code 2021-11-11 20:17:03 -05:00
kodumbeats
09de7fb698 Remove trailing commas 2021-11-11 20:14:46 -05:00
kodumbeats
85c2078e77 Update tests where unowned role is used to create documents 2021-11-03 12:39:15 -04:00
kodumbeats
d6b794d305 Add query e2e tests to check for strict matching 2021-11-03 11:02:41 -04:00
kodumbeats
58e6b3a6d6 Reorder so that expected value is first in assertions 2021-11-02 19:45:04 -04:00
kodumbeats
c6ee3766b7 Prevent default values for array attributes 2021-10-26 16:14:25 -04:00
kodumbeats
5d0c0b2836 Throw exception if $min > $max 2021-10-25 16:10:39 -04:00
kodumbeats
ffbcc728bb support integers as valid float values 2021-10-25 16:00:33 -04:00
Torsten Dittmann
dc99127533 increase sleeps 2021-10-22 19:21:52 +02:00
Torsten Dittmann
2c6f4d0cdb fix db tests 2021-10-22 18:52:13 +02:00
Torsten Dittmann
60b44dcae9 teardown & db race condition 2021-10-22 18:30:42 +02:00
kodumbeats
f197699523 Throw exception when any enum element is empty 2021-10-07 14:30:52 -04:00
kodumbeats
b3d5ba4123 Address review comments 2021-10-07 14:27:20 -04:00
kodumbeats
5b1d7bfa5d Merge remote-tracking branch 'origin/feat-database-indexing' into feat-enum-attributes 2021-10-07 14:08:02 -04:00
kodumbeats
ec5d2ed591 Merge remote-tracking branch 'origin/feat-database-indexing' into feat-enum-attributes 2021-10-06 20:36:25 -04: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
349588df12 Merge branch 'feat-database-indexing' of https://github.com/appwrite/appwrite into feat-enforce-document-collection-permissions 2021-10-05 16:37:58 +02:00
kodumbeats
0960a54169 Clean up unneeded sleeps in db tests 2021-10-05 10:10:40 -04:00
Torsten Dittmann
768ab84a17 Merge branch 'feat-database-indexing' of https://github.com/appwrite/appwrite into feat-before-pagination 2021-10-05 15:53:54 +02:00
Torsten Dittmann
580b92227c fix tests 2021-10-05 14:59:58 +02:00
Torsten Dittmann
33699ea2c4 feat(controllers): implement before cursor pagination 2021-10-05 12:30:33 +02:00
kodumbeats
ca335c9be5 Test enum enforcement when creating documents 2021-09-10 16:25:16 -04:00
kodumbeats
d8ba1095cd Test enum attribute creation and response model 2021-09-10 16:14:31 -04:00
kodumbeats
6b7059c034 Fix missing lines from conflict resolution 2021-09-01 10:57:20 -04:00
kodumbeats
c49179e6bc Merge remote-tracking branch 'origin/feat-database-indexing' into feat-enforce-document-collection-permissions 2021-09-01 10:52:38 -04:00
kodumbeats
656914f8dc Merge remote-tracking branch 'origin/feat-database-indexing' into feat-response-models-new-attributes 2021-08-31 13:55:18 -04:00
kodumbeats
e9541a9269 Fix tests 2021-08-27 21:46:33 -04:00
kodumbeats
95f505b616 Add tests for collection permissions 2021-08-27 21:00:49 -04:00