Merge pull request #10640 from appwrite/feat-txn

Fix txn API scope backwards compat
This commit is contained in:
Jake Barnby authored and GitHub committed 2025-10-13 16:30:46 +13:00
commit e303501d4a
6 files changed
+6 -6

No files matched your search

@@ -30,7 +30,7 @@ class Create extends TransactionsCreate
->setHttpPath('/v1/tablesdb/transactions')
->desc('Create transaction')
->groups(['api', 'database', 'transactions'])
->label('scope', 'rows.write')
->label('scope', ['documents.write', 'rows.write'])
->label('resourceType', RESOURCE_TYPE_DATABASES)
->label('sdk', new Method(
namespace: 'tablesDB',
@@ -30,7 +30,7 @@ class Delete extends TransactionsDelete
->setHttpPath('/v1/tablesdb/transactions/:transactionId')
->desc('Delete transaction')
->groups(['api', 'database', 'transactions'])
->label('scope', 'rows.write')
->label('scope', ['documents.write', 'rows.write'])
->label('resourceType', RESOURCE_TYPE_DATABASES)
->label('sdk', new Method(
namespace: 'tablesDB',
@@ -30,7 +30,7 @@ class Get extends TransactionsGet
->setHttpPath('/v1/tablesdb/transactions/:transactionId')
->desc('Get transaction')
->groups(['api', 'database', 'transactions'])
->label('scope', 'rows.read')
->label('scope', ['documents.read', 'rows.read'])
->label('resourceType', RESOURCE_TYPE_DATABASES)
->label('sdk', new Method(
namespace: 'tablesDB',
@@ -32,7 +32,7 @@ class Create extends OperationsCreate
->setHttpPath('/v1/tablesdb/transactions/:transactionId/operations')
->desc('Create operations')
->groups(['api', 'database', 'transactions'])
->label('scope', 'rows.write')
->label('scope', ['documents.write', 'rows.write'])
->label('resourceType', RESOURCE_TYPE_DATABASES)
->label('sdk', new Method(
namespace: 'tablesDB',
@@ -31,7 +31,7 @@ class Update extends TransactionsUpdate
->setHttpPath('/v1/tablesdb/transactions/:transactionId')
->desc('Update transaction')
->groups(['api', 'database', 'transactions'])
->label('scope', 'rows.write')
->label('scope', ['documents.write', 'rows.write'])
->label('resourceType', RESOURCE_TYPE_DATABASES)
->label('sdk', new Method(
namespace: 'tablesDB',
@@ -30,7 +30,7 @@ class XList extends TransactionsList
->setHttpPath('/v1/tablesdb/transactions')
->desc('List transactions')
->groups(['api', 'database', 'transactions'])
->label('scope', 'rows.read')
->label('scope', ['documents.read', 'rows.read'])
->label('resourceType', RESOURCE_TYPE_DATABASES)
->label('sdk', new Method(
namespace: 'tablesDB',