Commit Graph
16 Commits
Author SHA1 Message Date
Cursor AgentandChirag Aggarwal 486e90cc3f fix(events): allow documentsdb and vectorsdb event triggers
Event::generateEvents already emits documentsdb.* and vectorsdb.*
prefixes for those database types, but the public allowlist only
accepted databases/tablesdb. Mirror the tablesdb config so functions
and webhooks can subscribe to DocumentsDB and VectorsDB events.

Co-authored-by: Chirag Aggarwal <chiragaggarwal5k@gmail.com>
2026-08-09 03:33:42 +00:00
Cursor AgentandChirag Aggarwal 23238cd542 fix(events): allow tablesdb event triggers for functions and webhooks
TablesDB emits tablesdb.* events, but the public events config only listed
databases.*, so FunctionEvent/Event validators rejected valid triggers.

Co-authored-by: Chirag Aggarwal <chiragaggarwal5k@gmail.com>
2026-08-08 03:33:09 +00:00
Cursor AgentandChirag Aggarwal 59dd39c60d fix: allowlist users.update.labels, verification, and impersonator events
Controllers already emit these event labels, but they were missing from
app/config/events.php, so function/webhook subscriptions could not target them.

Co-authored-by: Chirag Aggarwal <chiragaggarwal5k@gmail.com>
2026-08-01 03:34:29 +00:00
Cursor AgentandChirag Aggarwal ec7c17ae40 fix: allow users.update.phone and users.update.mfa events
These events are already emitted by the Users and Account APIs but were
missing from the public events allowlist, so webhooks/functions could not
subscribe to them via the validator or console picker.

Fixes #8570

Co-authored-by: Chirag Aggarwal <chiragaggarwal5k@gmail.com>
2026-07-31 03:44:38 +00:00
Chirag Aggarwal 1baf576299 Initialize Rector for PHPUnit tests (#12495) 2026-06-04 18:19:56 +05:30
Darshan f94ecc885a fix: tests as per new events system. 2025-04-27 10:36:21 +05:30
Binyamin Yawitz b37c2658ec Adding the functions.* test for the base event 2023-09-11 23:56:30 -04:00
Binyamin Yawitz 5cb03da001 Extracting function event validator to its own class. 2023-09-11 23:24:11 -04:00
Christy Jacob 6853a44f03 feat: update tests 2023-06-15 11:06:04 +00:00
Torsten Dittmann f97280d071 tests: remove unnecessary import 2022-09-14 10:17:50 +02:00
Torsten Dittmann bf9533007b tests: fix unit tests 2022-08-01 12:22:04 +02:00
Damodar LohaniandTorsten Dittmann 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
Everly Precia Suresh 19300ccdd7 format files in app, src, tests 2022-05-23 14:54:50 +00:00
Torsten Dittmann 95317d87b8 fix: event validator 2022-05-08 16:31:32 +02:00
Torsten Dittmann d85c341875 fix: events config 2022-04-20 15:34:55 +02:00
Torsten Dittmann 2f9b9445dd sync with devices 2022-04-04 08:30:07 +02:00