Merge pull request #10640 from appwrite/feat-txn

Fix txn API scope backwards compat
This commit is contained in:
Jake Barnby 2025-10-13 16:30:46 +13:00 committed by GitHub
commit e303501d4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 6 additions and 6 deletions

View file

@ -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',

View file

@ -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',

View file

@ -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',

View file

@ -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',

View file

@ -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',

View file

@ -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',