From 1893153a343b728c0a4a7a92b45a71cd8c25b27a Mon Sep 17 00:00:00 2001 From: Jiajun Xu Date: Thu, 12 Nov 2026 12:25:46 +0800 Subject: [PATCH 01/62] feat(contexts): add value objects for the nodes of an application An application receives its tables and views as a list of nodes. Add ContextNodeInputSet and ContextNodeInput to turn that request parameter into a normalised list. It has to be a list of objects whose id, type, permissions and order are integers, or strings of digits as form encoded requests send them, within the range of the 32-bit columns they are stored in. Missing permissions default to read. Anything else is rejected with an InvalidArgumentException instead of being cast. Nothing uses the value objects yet. Refs: #3262 Assisted-by: ClaudeCode:claude-fable-5-2 Assisted-by: Codex:gpt-6.1-sol Co-Authored-By: Claude Fable 5.2 Signed-off-by: Jiajun Xu --- lib/Model/ContextNodeInputSet.php | 52 +++++++ lib/Service/ValueObject/ContextNodeInput.php | 90 ++++++++++++ tests/unit/Model/ContextNodeInputSetTest.php | 136 +++++++++++++++++++ 3 files changed, 278 insertions(+) create mode 100644 lib/Model/ContextNodeInputSet.php create mode 100644 lib/Service/ValueObject/ContextNodeInput.php create mode 100644 tests/unit/Model/ContextNodeInputSetTest.php diff --git a/lib/Model/ContextNodeInputSet.php b/lib/Model/ContextNodeInputSet.php new file mode 100644 index 0000000000..918aee5d4d --- /dev/null +++ b/lib/Model/ContextNodeInputSet.php @@ -0,0 +1,52 @@ + $nodes + */ + private function __construct( + private readonly array $nodes, + ) { + } + + /** + * @throws InvalidArgumentException + */ + public static function createFromInputArray(array $inputNodes): self { + if (!array_is_list($inputNodes)) { + throw new InvalidArgumentException('Nodes must be given as a list'); + } + + $nodes = []; + foreach ($inputNodes as $inputNode) { + if (!is_array($inputNode)) { + throw new InvalidArgumentException('Each node must be an object'); + } + $nodes[] = ContextNodeInput::fromArray($inputNode); + } + return new self($nodes); + } + + /** + * @return list + */ + public function jsonSerialize(): array { + return array_map(static fn (ContextNodeInput $node): array => $node->jsonSerialize(), $this->nodes); + } +} diff --git a/lib/Service/ValueObject/ContextNodeInput.php b/lib/Service/ValueObject/ContextNodeInput.php new file mode 100644 index 0000000000..55e5fcbab3 --- /dev/null +++ b/lib/Service/ValueObject/ContextNodeInput.php @@ -0,0 +1,90 @@ + $this->nodeId, + 'type' => $this->nodeType, + 'permissions' => $this->permissions, + ]; + if ($this->order !== null) { + $node['order'] = $this->order; + } + return $node; + } + + /** + * Accepts integers and strings of digits, as form encoded requests carry + * every value as a string. Anything else is rejected instead of cast. + * + * @throws InvalidArgumentException + */ + private static function toInteger(mixed $value, string $errorMessage): int { + if (is_string($value) && ctype_digit($value)) { + // filter_var() reports a number that is too large instead of capping it, as a cast would + $value = filter_var(ltrim($value, '0') ?: '0', FILTER_VALIDATE_INT); + } + + if (!is_int($value) || $value < 0 || $value > self::MAX_INTEGER_VALUE) { + throw new InvalidArgumentException($errorMessage); + } + return $value; + } +} diff --git a/tests/unit/Model/ContextNodeInputSetTest.php b/tests/unit/Model/ContextNodeInputSetTest.php new file mode 100644 index 0000000000..46a0affec7 --- /dev/null +++ b/tests/unit/Model/ContextNodeInputSetTest.php @@ -0,0 +1,136 @@ + 7, 'type' => Application::NODE_TYPE_VIEW, 'permissions' => 3, 'order' => 20], + ['id' => 5, 'type' => Application::NODE_TYPE_TABLE, 'permissions' => 1], + ]); + + $this->assertSame([ + ['id' => 7, 'type' => Application::NODE_TYPE_VIEW, 'permissions' => 3, 'order' => 20], + ['id' => 5, 'type' => Application::NODE_TYPE_TABLE, 'permissions' => 1], + ], $nodeSet->jsonSerialize()); + } + + public function testCreateFromInputArrayAcceptsStringsOfDigits(): void { + $nodeSet = ContextNodeInputSet::createFromInputArray([ + ['id' => '05', 'type' => '1', 'permissions' => '0', 'order' => '30'], + ]); + + $this->assertSame([ + ['id' => 5, 'type' => 1, 'permissions' => 0, 'order' => 30], + ], $nodeSet->jsonSerialize()); + } + + public function testCreateFromInputArrayDefaultsMissingPermissionsToRead(): void { + $nodeSet = ContextNodeInputSet::createFromInputArray([ + ['id' => 5, 'type' => 0], + ['id' => 6, 'type' => 0, 'permissions' => null], + ]); + + $this->assertSame([ + ['id' => 5, 'type' => 0, 'permissions' => Application::PERMISSION_READ], + ['id' => 6, 'type' => 0, 'permissions' => Application::PERMISSION_READ], + ], $nodeSet->jsonSerialize()); + } + + public function testCreateFromInputArrayLeavesOutAnOrderOfNull(): void { + $nodeSet = ContextNodeInputSet::createFromInputArray([ + ['id' => 5, 'type' => 0, 'permissions' => 1, 'order' => null], + ]); + + $this->assertSame([ + ['id' => 5, 'type' => 0, 'permissions' => 1], + ], $nodeSet->jsonSerialize()); + } + + public function testCreateFromInputArrayWithEmptyArray(): void { + $nodeSet = ContextNodeInputSet::createFromInputArray([]); + $this->assertSame([], $nodeSet->jsonSerialize()); + } + + public function testCreateFromInputArrayAcceptsTheLargestStorableInteger(): void { + $nodeSet = ContextNodeInputSet::createFromInputArray([ + ['id' => 2147483647, 'type' => 0, 'permissions' => '2147483647'], + ]); + + $this->assertSame([ + ['id' => 2147483647, 'type' => 0, 'permissions' => 2147483647], + ], $nodeSet->jsonSerialize()); + } + + /** + * @dataProvider invalidListProvider + */ + public function testCreateFromInputArrayThrowsForAnInvalidList(array $data, string $expectedMessage): void { + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage($expectedMessage); + ContextNodeInputSet::createFromInputArray($data); + } + + public static function invalidListProvider(): array { + $node = ['id' => 5, 'type' => 0, 'permissions' => 1]; + + return [ + 'string keys' => [['a' => $node], 'Nodes must be given as a list'], + 'keys out of sequence' => [[5 => $node, 2 => $node], 'Nodes must be given as a list'], + 'keys not starting at zero' => [[1 => $node], 'Nodes must be given as a list'], + 'integer entry' => [[42], 'Each node must be an object'], + 'string entry' => [['not-an-array'], 'Each node must be an object'], + 'null entry' => [[null], 'Each node must be an object'], + 'invalid entry after a valid one' => [[$node, ['id' => 6]], 'Unexpected node type'], + ]; + } + + /** + * @dataProvider invalidNodeProvider + */ + public function testCreateFromInputArrayThrowsForAnInvalidNode(array $node, string $expectedMessage): void { + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage($expectedMessage); + ContextNodeInputSet::createFromInputArray([$node]); + } + + public static function invalidNodeProvider(): array { + return [ + 'missing id' => [['type' => 0], 'Unexpected node id'], + 'word as id' => [['id' => 'abc', 'type' => 0], 'Unexpected node id'], + 'decimal string as id' => [['id' => '5.7', 'type' => 0], 'Unexpected node id'], + 'empty string as id' => [['id' => '', 'type' => 0], 'Unexpected node id'], + 'padded string as id' => [['id' => ' 5', 'type' => 0], 'Unexpected node id'], + 'signed string as id' => [['id' => '+5', 'type' => 0], 'Unexpected node id'], + 'negative id' => [['id' => -1, 'type' => 0], 'Unexpected node id'], + 'float as id' => [['id' => 1.0, 'type' => 0], 'Unexpected node id'], + 'boolean as id' => [['id' => true, 'type' => 0], 'Unexpected node id'], + 'array as id' => [['id' => [5], 'type' => 0], 'Unexpected node id'], + 'id beyond the column range' => [['id' => 2147483648, 'type' => 0], 'Unexpected node id'], + 'string id beyond the column range' => [['id' => '2147483648', 'type' => 0], 'Unexpected node id'], + 'string id beyond the integer range' => [['id' => '9223372036854775808', 'type' => 0], 'Unexpected node id'], + 'missing type' => [['id' => 5], 'Unexpected node type'], + 'word as type' => [['id' => 5, 'type' => 'table'], 'Unexpected node type'], + 'unknown type' => [['id' => 5, 'type' => 7], 'Unexpected node type'], + 'word as permissions' => [['id' => 5, 'type' => 0, 'permissions' => 'abc'], 'Unexpected node permissions'], + 'empty string as permissions' => [['id' => 5, 'type' => 0, 'permissions' => ''], 'Unexpected node permissions'], + 'boolean as permissions' => [['id' => 5, 'type' => 0, 'permissions' => true], 'Unexpected node permissions'], + 'array as permissions' => [['id' => 5, 'type' => 0, 'permissions' => [1]], 'Unexpected node permissions'], + 'word as order' => [['id' => 5, 'type' => 0, 'order' => 'first'], 'Unexpected node order'], + 'negative order' => [['id' => 5, 'type' => 0, 'order' => -10], 'Unexpected node order'], + ]; + } +} From b8c2f0de7b705840aa26266448b909ce0e7a15c0 Mon Sep 17 00:00:00 2001 From: Jiajun Xu Date: Thu, 12 Nov 2026 12:31:44 +0800 Subject: [PATCH 02/62] fix(contexts): validate the nodes of an application update before saving PUT /api/2/contexts/{contextId} passed its nodes parameter to the service nearly unchecked. A new node without permissions, a node that is kept without permissions, or an object in place of the list made the request fail with a 500, in part after earlier changes of the same request were written. Parse the nodes into a ContextNodeInputSet before the service is called. Missing permissions now default to read, as they do when an application is created, and that includes the nodes that are kept. Nodes that are not a list, or that carry values other than integers, are answered with a 400 before anything is written. A JSON object whose keys count up from zero cannot be told apart from a list once the request body is decoded, so it is still accepted. Refs: #3262 Assisted-by: ClaudeCode:claude-fable-5-2 Assisted-by: Codex:gpt-6.1-sol Co-Authored-By: Claude Fable 5.2 Signed-off-by: Jiajun Xu --- lib/Controller/ContextController.php | 9 ++- tests/integration/features/APIv2.feature | 56 ++++++++++++++ .../features/bootstrap/FeatureContext.php | 47 +++++++++++ .../ContextControllerNodeInputTest.php | 77 +++++++++++++++++++ 4 files changed, 187 insertions(+), 2 deletions(-) create mode 100644 tests/unit/Controller/ContextControllerNodeInputTest.php diff --git a/lib/Controller/ContextController.php b/lib/Controller/ContextController.php index e87f8ca440..051ad3ee84 100644 --- a/lib/Controller/ContextController.php +++ b/lib/Controller/ContextController.php @@ -16,6 +16,7 @@ use OCA\Tables\Errors\NotFoundError; use OCA\Tables\Errors\PermissionError; use OCA\Tables\Middleware\Attribute\RequirePermission; +use OCA\Tables\Model\ContextNodeInputSet; use OCA\Tables\ResponseDefinitions; use OCA\Tables\Service\ColumnService; use OCA\Tables\Service\ContextService; @@ -154,14 +155,18 @@ public function update(int $contextId, ?string $name, ?string $iconName, ?string if ($iconName !== null && !$this->isValidIcon($iconName)) { return new DataResponse(['message' => 'Invalid icon name'], Http::STATUS_BAD_REQUEST); } - $nodes = $nodes !== null ? $this->sanitizeInputNodes($nodes) : null; + try { + $nodeInputs = $nodes !== null ? ContextNodeInputSet::createFromInputArray($nodes) : null; + } catch (InvalidArgumentException $e) { + return new DataResponse(['message' => $e->getMessage()], Http::STATUS_BAD_REQUEST); + } return new DataResponse($this->contextService->update( $contextId, $this->userId, $name, $iconName, $description, - $nodes, + $nodeInputs?->jsonSerialize(), )->jsonSerialize()); } catch (Exception|MultipleObjectsReturnedException $e) { return $this->handleError($e); diff --git a/tests/integration/features/APIv2.feature b/tests/integration/features/APIv2.feature index 1c40674eca..61132aea03 100644 --- a/tests/integration/features/APIv2.feature +++ b/tests/integration/features/APIv2.feature @@ -512,6 +512,62 @@ Feature: APIv2 | node | table:t1:read,create,update | | node | table:t2:read | + @api2 @contexts @contexts-update + Scenario: Add a table to an owned context without stating its permissions + Given table "Table 1 via api v2" with emoji "👋" exists for user "participant1-v2" as "t1" via v2 + And table "Table 2 via api v2" with emoji "📸" exists for user "participant1-v2" as "t2" via v2 + And user "participant1-v2" creates the Context "c1" with name "Enchanting Guitar" with icon "tennis" and description "Lorem ipsum dolor etc pp" and nodes: + | alias | type | permissions | + | t1 | table | read,create,update | + When user "participant1-v2" updates the nodes of the Context "c1" with a JSON "list" of + | alias | type | permissions | + | t1 | table | read,create,update | + | t2 | table | | + Then the reported status is "200" + When user "participant1-v2" fetches Context "c1" + Then known Context "c1" contains "table" "t1" with permissions "read,create,update" + And known Context "c1" contains "table" "t2" with permissions "read" + + @api2 @contexts @contexts-update + Scenario: Keep a table in an owned context without stating its permissions + Given table "Table 1 via api v2" with emoji "👋" exists for user "participant1-v2" as "t1" via v2 + And user "participant1-v2" creates the Context "c1" with name "Enchanting Guitar" with icon "tennis" and description "Lorem ipsum dolor etc pp" and nodes: + | alias | type | permissions | + | t1 | table | read,create,update | + When user "participant1-v2" updates the nodes of the Context "c1" with a JSON "list" of + | alias | type | permissions | + | t1 | table | | + Then the reported status is "200" + When user "participant1-v2" fetches Context "c1" + Then known Context "c1" contains "table" "t1" with permissions "read" + + @api2 @contexts @contexts-update + Scenario: Attempt to update the nodes of an owned context with an object instead of a list + Given table "Table 1 via api v2" with emoji "👋" exists for user "participant1-v2" as "t1" via v2 + And user "participant1-v2" creates the Context "c1" with name "Enchanting Guitar" with icon "tennis" and description "Lorem ipsum dolor etc pp" and nodes: + | alias | type | permissions | + | t1 | table | read,create,update | + When user "participant1-v2" updates the nodes of the Context "c1" with a JSON "object" of + | alias | type | permissions | + | t1 | table | read | + Then the reported status is "400" + When user "participant1-v2" fetches Context "c1" + Then known Context "c1" contains "table" "t1" with permissions "read,create,update" + + @api2 @contexts @contexts-update + Scenario: Remove all tables from an owned context + Given table "Table 1 via api v2" with emoji "👋" exists for user "participant1-v2" as "t1" via v2 + And table "Table 2 via api v2" with emoji "📸" exists for user "participant1-v2" as "t2" via v2 + And user "participant1-v2" creates the Context "c1" with name "Enchanting Guitar" with icon "tennis" and description "Lorem ipsum dolor etc pp" and nodes: + | alias | type | permissions | + | t1 | table | read,create,update | + | t2 | table | read | + When user "participant1-v2" updates the nodes of the Context "c1" with a JSON "list" of + | alias | type | permissions | + Then the reported status is "200" + When user "participant1-v2" fetches Context "c1" + Then known Context "c1" contains no nodes + @api2 @contexts @contexts-ownership Scenario: Transfer an owned context Given table "Table 1 via api v2" with emoji "👋" exists for user "participant1-v2" as "t1" via v2 diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php index 4f6340767f..c3bec1bac4 100644 --- a/tests/integration/features/bootstrap/FeatureContext.php +++ b/tests/integration/features/bootstrap/FeatureContext.php @@ -2582,6 +2582,18 @@ public function knownContextContainsNodeWithPermissions(string $contextAlias, st Assert::assertSame($expectedPermissions, $actualPermissions); } + /** + * @Then known Context :contextAlias contains no nodes + */ + public function knownContextContainsNoNodes(string $contextAlias): void { + $context = $this->collectionManager->getByAlias('context', $contextAlias); + + Assert::assertSame([], $context['nodes']); + foreach ($context['pages'] as $page) { + Assert::assertSame([], $page['content']); + } + } + /** * @Then the reported status is :statusCode */ @@ -2789,6 +2801,41 @@ public function userUpdatesNodesOfContext(string $user, string $contextAlias, Ta ); } + /** + * Sends a JSON body, because the form encoding of the step above can + * express neither an object nor an empty list. An empty permissions cell + * leaves the property out. + * + * @When user :user updates the nodes of the Context :contextAlias with a JSON :shape of + */ + public function userUpdatesNodesOfContextWithJson(string $user, string $contextAlias, string $shape, TableNode $updatedNodes): void { + $this->setCurrentUser($user); + $context = $this->collectionManager->getByAlias('context', $contextAlias); + $nodes = []; + + foreach ($updatedNodes as $row) { + $node = [ + 'id' => $row['type'] === 'table' ? $this->tableIds[$row['alias']] : $this->viewIds[$row['alias']], + 'type' => $row['type'] === 'table' ? 0 : 1, + ]; + if ($row['permissions'] !== '') { + $node['permissions'] = $this->humanReadablePermissionToInt($row['permissions']); + } + if ($shape === 'object') { + $nodes[$row['alias']] = $node; + } else { + $nodes[] = $node; + } + } + + $this->sendOcsRequest( + 'PUT', + sprintf('/apps/tables/api/2/contexts/%d', $context['id']), + json_encode(['nodes' => $nodes]), + ['Content-Type' => 'application/json'], + ); + } + /** * @When user :user transfers the Context :contextAlias to :recipientUser */ diff --git a/tests/unit/Controller/ContextControllerNodeInputTest.php b/tests/unit/Controller/ContextControllerNodeInputTest.php new file mode 100644 index 0000000000..20e8523883 --- /dev/null +++ b/tests/unit/Controller/ContextControllerNodeInputTest.php @@ -0,0 +1,77 @@ +contextService = $this->createMock(ContextService::class); + $this->controller = new ContextController( + $this->createMock(IRequest::class), + $this->createMock(LoggerInterface::class), + $this->createMock(IL10N::class), + 'user-1', + $this->contextService, + $this->createMock(TableService::class), + $this->createMock(IDBConnection::class), + $this->createMock(ColumnService::class), + $this->createMock(ViewService::class), + ); + } + + public function testUpdateAnswers400ForNodesThatAreNotAList(): void { + $this->contextService->expects($this->never())->method('update'); + + $response = $this->controller->update(7, null, null, null, ['a' => ['id' => 1, 'type' => 0, 'permissions' => 1]]); + + $this->assertSame(Http::STATUS_BAD_REQUEST, $response->getStatus()); + $this->assertSame(['message' => 'Nodes must be given as a list'], $response->getData()); + } + + public function testUpdateDefaultsMissingNodePermissionsToRead(): void { + $this->contextService->expects($this->once()) + ->method('update') + ->with(7, 'user-1', null, null, null, $this->identicalTo([['id' => 5, 'type' => 0, 'permissions' => 1]])) + ->willReturn(new Context()); + + $response = $this->controller->update(7, null, null, null, [['id' => 5, 'type' => 0]]); + + $this->assertSame(Http::STATUS_OK, $response->getStatus()); + } + + public function testUpdateKeepsTheNodesWhenNoneAreGiven(): void { + $this->contextService->expects($this->once()) + ->method('update') + ->with(7, 'user-1', 'Renamed', null, null, null) + ->willReturn(new Context()); + + $response = $this->controller->update(7, 'Renamed', null, null, null); + + $this->assertSame(Http::STATUS_OK, $response->getStatus()); + } +} From c7916a889f70a1203ae73858a1aff3c0f338391d Mon Sep 17 00:00:00 2001 From: Jiajun Xu Date: Thu, 12 Nov 2026 12:35:49 +0800 Subject: [PATCH 03/62] fix(contexts): answer 400 for invalid nodes when creating an application POST /api/2/contexts shared its node handling with the update endpoint. A node without an id or type was answered with a 500, although the endpoint documents a 400 for invalid parameters, and other values were cast to integers without a check. Use the same ContextNodeInputSet as the update endpoint and drop sanitizeInputNodes(), which has no caller left. Creating an application is therefore stricter as well. Nodes given as an object rather than a list, floats, booleans or arrays in place of an integer, negative values and values beyond the 32-bit range were accepted so far and are now answered with a 400. Refs: #3262 Assisted-by: ClaudeCode:claude-fable-5-2 Co-Authored-By: Claude Fable 5.2 Signed-off-by: Jiajun Xu --- lib/Controller/ContextController.php | 34 ++++--------------- .../ContextControllerNodeInputTest.php | 29 ++++++++++++++++ 2 files changed, 35 insertions(+), 28 deletions(-) diff --git a/lib/Controller/ContextController.php b/lib/Controller/ContextController.php index 051ad3ee84..1a440bf6d0 100644 --- a/lib/Controller/ContextController.php +++ b/lib/Controller/ContextController.php @@ -114,11 +114,16 @@ public function create(string $name, string $iconName, string $description = '', if (!$this->isValidIcon($iconName)) { return new DataResponse(['message' => 'Invalid icon name'], Http::STATUS_BAD_REQUEST); } + try { + $nodeInputs = ContextNodeInputSet::createFromInputArray($nodes); + } catch (InvalidArgumentException $e) { + return new DataResponse(['message' => $e->getMessage()], Http::STATUS_BAD_REQUEST); + } return new DataResponse($this->contextService->create( $name, $iconName, $description, - $this->sanitizeInputNodes($nodes), + $nodeInputs->jsonSerialize(), $this->userId, 0, )->jsonSerialize()); @@ -177,33 +182,6 @@ public function update(int $contextId, ?string $name, ?string $iconName, ?string } } - /** - * @psalm-param list $nodes - * @psalm-return list - */ - protected function sanitizeInputNodes(array $nodes): array { - foreach ($nodes as &$node) { - if (!is_numeric($node['type'])) { - throw new InvalidArgumentException('Unexpected node type'); - } - $node['type'] = (int)$node['type']; - - if (!is_numeric($node['id'])) { - throw new InvalidArgumentException('Unexpected node id'); - } - $node['id'] = (int)$node['id']; - - if (isset($node['permissions'])) { - $node['permissions'] = (int)$node['permissions']; - } - - if (isset($node['order'])) { - $node['order'] = (int)$node['order']; - } - } - return $nodes; - } - /** * [api v2] Delete an existing context and return it * diff --git a/tests/unit/Controller/ContextControllerNodeInputTest.php b/tests/unit/Controller/ContextControllerNodeInputTest.php index 20e8523883..e380882b46 100644 --- a/tests/unit/Controller/ContextControllerNodeInputTest.php +++ b/tests/unit/Controller/ContextControllerNodeInputTest.php @@ -44,6 +44,35 @@ protected function setUp(): void { ); } + public function testCreateAnswers400ForANodeWithoutType(): void { + $this->contextService->expects($this->never())->method('create'); + + $response = $this->controller->create('Intake', 'star', '', [['id' => 5]]); + + $this->assertSame(Http::STATUS_BAD_REQUEST, $response->getStatus()); + $this->assertSame(['message' => 'Unexpected node type'], $response->getData()); + } + + public function testCreateAnswers400ForNodesThatAreNotAList(): void { + $this->contextService->expects($this->never())->method('create'); + + $response = $this->controller->create('Intake', 'star', '', ['a' => ['id' => 5, 'type' => 0, 'permissions' => 1]]); + + $this->assertSame(Http::STATUS_BAD_REQUEST, $response->getStatus()); + $this->assertSame(['message' => 'Nodes must be given as a list'], $response->getData()); + } + + public function testCreateDefaultsMissingNodePermissionsToRead(): void { + $this->contextService->expects($this->once()) + ->method('create') + ->with('Intake', 'star', '', $this->identicalTo([['id' => 5, 'type' => 0, 'permissions' => 1]]), 'user-1', 0) + ->willReturn(new Context()); + + $response = $this->controller->create('Intake', 'star', '', [['id' => '5', 'type' => '0']]); + + $this->assertSame(Http::STATUS_OK, $response->getStatus()); + } + public function testUpdateAnswers400ForNodesThatAreNotAList(): void { $this->contextService->expects($this->never())->method('update'); From 67bc70be27a13fec51442dc1182020c431158f55 Mon Sep 17 00:00:00 2001 From: Jiajun Xu Date: Thu, 12 Nov 2026 12:36:47 +0800 Subject: [PATCH 04/62] fix(OpenAPI): describe the nodes of an application update as a list The nodes parameter of PUT /api/2/contexts/{contextId} was documented as a single object with four required properties. The endpoint takes a list of nodes, in which permissions and order are optional. Regenerate openapi.json and the TypeScript types. Refs: #3262 Assisted-by: ClaudeCode:claude-fable-5-2 Co-Authored-By: Claude Fable 5.2 Signed-off-by: Jiajun Xu --- lib/Controller/ContextController.php | 2 +- openapi.json | 49 ++++++++++++++-------------- src/types/openapi/openapi.ts | 10 +++--- 3 files changed, 31 insertions(+), 30 deletions(-) diff --git a/lib/Controller/ContextController.php b/lib/Controller/ContextController.php index 1a440bf6d0..1ab0672cad 100644 --- a/lib/Controller/ContextController.php +++ b/lib/Controller/ContextController.php @@ -143,7 +143,7 @@ public function create(string $name, string $iconName, string $description = '', * @param ?string $name provide this parameter to set a new name * @param ?string $iconName provide this parameter to set a new icon * @param ?string $description provide this parameter to set a new description - * @param ?array{id: int, type: int, permissions: int, order: int} $nodes provide this parameter to set a new list of nodes. + * @param ?list $nodes provide this parameter to set a new list of nodes. Permissions default to read when omitted. * * @return DataResponse|DataResponse * diff --git a/openapi.json b/openapi.json index 9fd3ae317c..57d3091287 100644 --- a/openapi.json +++ b/openapi.json @@ -12699,31 +12699,32 @@ "description": "provide this parameter to set a new description" }, "nodes": { - "type": "object", + "type": "array", "nullable": true, - "description": "provide this parameter to set a new list of nodes.", - "required": [ - "id", - "type", - "permissions", - "order" - ], - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "type": { - "type": "integer", - "format": "int64" - }, - "permissions": { - "type": "integer", - "format": "int64" - }, - "order": { - "type": "integer", - "format": "int64" + "description": "provide this parameter to set a new list of nodes. Permissions default to read when omitted.", + "items": { + "type": "object", + "required": [ + "id", + "type" + ], + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "type": { + "type": "integer", + "format": "int64" + }, + "permissions": { + "type": "integer", + "format": "int64" + }, + "order": { + "type": "integer", + "format": "int64" + } } } } diff --git a/src/types/openapi/openapi.ts b/src/types/openapi/openapi.ts index 85437d7fca..728fd1d83b 100644 --- a/src/types/openapi/openapi.ts +++ b/src/types/openapi/openapi.ts @@ -7280,17 +7280,17 @@ export interface operations { readonly iconName?: string | null; /** @description provide this parameter to set a new description */ readonly description?: string | null; - /** @description provide this parameter to set a new list of nodes. */ - readonly nodes?: { + /** @description provide this parameter to set a new list of nodes. Permissions default to read when omitted. */ + readonly nodes?: readonly { /** Format: int64 */ readonly id: number; /** Format: int64 */ readonly type: number; /** Format: int64 */ - readonly permissions: number; + readonly permissions?: number; /** Format: int64 */ - readonly order: number; - } | null; + readonly order?: number; + }[] | null; }; }; }; From 6eefe89f16ffad14c873039fb7b7f78dfd2a4264 Mon Sep 17 00:00:00 2001 From: Jiajun Xu Date: Fri, 13 Nov 2026 23:24:49 +0800 Subject: [PATCH 05/62] fix(contexts): keep the permissions of a kept node when none are given An application update set the permissions of a node it kept to read when the request did not state them, although they are optional. A client that only reorders the nodes would thereby remove the write permissions of every node. Leave missing permissions out of ContextNodeInput and let the service decide: a node that is kept keeps its permissions, a node that is added gets read. Creating an application is unchanged, as the service already defaults missing permissions to read there. The scheme import calls the same update, so a node without permissions in an imported scheme follows these rules as well. It made the import fail before. Refs: #3262 Assisted-by: ClaudeCode:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 Signed-off-by: Jiajun Xu --- lib/Controller/ContextController.php | 2 +- lib/Model/ContextNodeInputSet.php | 2 +- lib/Service/ContextService.php | 5 +- lib/Service/ValueObject/ContextNodeInput.php | 12 ++- openapi.json | 2 +- src/types/openapi/openapi.ts | 2 +- tests/integration/features/APIv2.feature | 2 +- .../ContextControllerNodeInputTest.php | 8 +- tests/unit/Model/ContextNodeInputSetTest.php | 6 +- tests/unit/Service/ContextServiceTest.php | 92 ++++++++++++++++++- 10 files changed, 112 insertions(+), 21 deletions(-) diff --git a/lib/Controller/ContextController.php b/lib/Controller/ContextController.php index 1ab0672cad..751d6a0ed5 100644 --- a/lib/Controller/ContextController.php +++ b/lib/Controller/ContextController.php @@ -143,7 +143,7 @@ public function create(string $name, string $iconName, string $description = '', * @param ?string $name provide this parameter to set a new name * @param ?string $iconName provide this parameter to set a new icon * @param ?string $description provide this parameter to set a new description - * @param ?list $nodes provide this parameter to set a new list of nodes. Permissions default to read when omitted. + * @param ?list $nodes provide this parameter to set a new list of nodes. When permissions are omitted, a node that is added gets read permissions and a node that is already in the context keeps its permissions. * * @return DataResponse|DataResponse * diff --git a/lib/Model/ContextNodeInputSet.php b/lib/Model/ContextNodeInputSet.php index 918aee5d4d..f4f4368476 100644 --- a/lib/Model/ContextNodeInputSet.php +++ b/lib/Model/ContextNodeInputSet.php @@ -44,7 +44,7 @@ public static function createFromInputArray(array $inputNodes): self { } /** - * @return list + * @return list */ public function jsonSerialize(): array { return array_map(static fn (ContextNodeInput $node): array => $node->jsonSerialize(), $this->nodes); diff --git a/lib/Service/ContextService.php b/lib/Service/ContextService.php index 828897ad6f..e00fd97b67 100644 --- a/lib/Service/ContextService.php +++ b/lib/Service/ContextService.php @@ -203,7 +203,8 @@ public function update(int $contextId, string $userId, ?string $name, ?string $i $key = sprintf('t%di%d', $node['type'], $node['id']); if (isset($oldNodeResolvableIdMapper[$key])) { $nodesBeingKept[$key] = $node; - if ($node['permissions'] !== $currentNodes[$oldNodeResolvableIdMapper[$key]]['permissions']) { + // a node that is kept without permissions keeps the ones it has + if (isset($node['permissions']) && $node['permissions'] !== $currentNodes[$oldNodeResolvableIdMapper[$key]]['permissions']) { $nodeRel = $this->contextNodeRelMapper->findById($currentNodes[$oldNodeResolvableIdMapper[$key]]['id']); $updatedNodes[] = [ 'nodeType' => $nodeRel->getNodeType(), @@ -255,7 +256,7 @@ public function update(int $contextId, string $userId, ?string $name, ?string $i $contextId, $node['id'], $node['type'], - $node['permissions'], + $node['permissions'] ?? Application::PERMISSION_READ, $node['order'] ?? 100, $userId ); diff --git a/lib/Service/ValueObject/ContextNodeInput.php b/lib/Service/ValueObject/ContextNodeInput.php index 55e5fcbab3..08cf61cb40 100644 --- a/lib/Service/ValueObject/ContextNodeInput.php +++ b/lib/Service/ValueObject/ContextNodeInput.php @@ -15,7 +15,7 @@ /** * A table or view as it is requested for an application (context), together - * with the permissions it is offered with. + * with the permissions it is offered with, if they are given. */ class ContextNodeInput implements JsonSerializable { /** The values are stored in signed 32-bit integer columns */ @@ -29,7 +29,7 @@ class ContextNodeInput implements JsonSerializable { private function __construct( private readonly int $nodeId, private readonly int $nodeType, - private readonly int $permissions, + private readonly ?int $permissions, private readonly ?int $order, ) { } @@ -48,7 +48,7 @@ public static function fromArray(array $inputNode): self { nodeType: $nodeType, permissions: isset($inputNode['permissions']) ? self::toInteger($inputNode['permissions'], 'Unexpected node permissions') - : Application::PERMISSION_READ, + : null, order: isset($inputNode['order']) ? self::toInteger($inputNode['order'], 'Unexpected node order') : null, @@ -56,14 +56,16 @@ public static function fromArray(array $inputNode): self { } /** - * @return array{id: int, type: int, permissions: int, order?: int} + * @return array{id: int, type: int, permissions?: int, order?: int} */ public function jsonSerialize(): array { $node = [ 'id' => $this->nodeId, 'type' => $this->nodeType, - 'permissions' => $this->permissions, ]; + if ($this->permissions !== null) { + $node['permissions'] = $this->permissions; + } if ($this->order !== null) { $node['order'] = $this->order; } diff --git a/openapi.json b/openapi.json index 57d3091287..752bead893 100644 --- a/openapi.json +++ b/openapi.json @@ -12701,7 +12701,7 @@ "nodes": { "type": "array", "nullable": true, - "description": "provide this parameter to set a new list of nodes. Permissions default to read when omitted.", + "description": "provide this parameter to set a new list of nodes. When permissions are omitted, a node that is added gets read permissions and a node that is already in the context keeps its permissions.", "items": { "type": "object", "required": [ diff --git a/src/types/openapi/openapi.ts b/src/types/openapi/openapi.ts index 728fd1d83b..fd29547880 100644 --- a/src/types/openapi/openapi.ts +++ b/src/types/openapi/openapi.ts @@ -7280,7 +7280,7 @@ export interface operations { readonly iconName?: string | null; /** @description provide this parameter to set a new description */ readonly description?: string | null; - /** @description provide this parameter to set a new list of nodes. Permissions default to read when omitted. */ + /** @description provide this parameter to set a new list of nodes. When permissions are omitted, a node that is added gets read permissions and a node that is already in the context keeps its permissions. */ readonly nodes?: readonly { /** Format: int64 */ readonly id: number; diff --git a/tests/integration/features/APIv2.feature b/tests/integration/features/APIv2.feature index 61132aea03..f74f169dba 100644 --- a/tests/integration/features/APIv2.feature +++ b/tests/integration/features/APIv2.feature @@ -539,7 +539,7 @@ Feature: APIv2 | t1 | table | | Then the reported status is "200" When user "participant1-v2" fetches Context "c1" - Then known Context "c1" contains "table" "t1" with permissions "read" + Then known Context "c1" contains "table" "t1" with permissions "read,create,update" @api2 @contexts @contexts-update Scenario: Attempt to update the nodes of an owned context with an object instead of a list diff --git a/tests/unit/Controller/ContextControllerNodeInputTest.php b/tests/unit/Controller/ContextControllerNodeInputTest.php index e380882b46..8f60016f2d 100644 --- a/tests/unit/Controller/ContextControllerNodeInputTest.php +++ b/tests/unit/Controller/ContextControllerNodeInputTest.php @@ -62,10 +62,10 @@ public function testCreateAnswers400ForNodesThatAreNotAList(): void { $this->assertSame(['message' => 'Nodes must be given as a list'], $response->getData()); } - public function testCreateDefaultsMissingNodePermissionsToRead(): void { + public function testCreateLeavesMissingNodePermissionsToTheService(): void { $this->contextService->expects($this->once()) ->method('create') - ->with('Intake', 'star', '', $this->identicalTo([['id' => 5, 'type' => 0, 'permissions' => 1]]), 'user-1', 0) + ->with('Intake', 'star', '', $this->identicalTo([['id' => 5, 'type' => 0]]), 'user-1', 0) ->willReturn(new Context()); $response = $this->controller->create('Intake', 'star', '', [['id' => '5', 'type' => '0']]); @@ -82,10 +82,10 @@ public function testUpdateAnswers400ForNodesThatAreNotAList(): void { $this->assertSame(['message' => 'Nodes must be given as a list'], $response->getData()); } - public function testUpdateDefaultsMissingNodePermissionsToRead(): void { + public function testUpdateLeavesMissingNodePermissionsToTheService(): void { $this->contextService->expects($this->once()) ->method('update') - ->with(7, 'user-1', null, null, null, $this->identicalTo([['id' => 5, 'type' => 0, 'permissions' => 1]])) + ->with(7, 'user-1', null, null, null, $this->identicalTo([['id' => 5, 'type' => 0]])) ->willReturn(new Context()); $response = $this->controller->update(7, null, null, null, [['id' => 5, 'type' => 0]]); diff --git a/tests/unit/Model/ContextNodeInputSetTest.php b/tests/unit/Model/ContextNodeInputSetTest.php index 46a0affec7..4842e713fa 100644 --- a/tests/unit/Model/ContextNodeInputSetTest.php +++ b/tests/unit/Model/ContextNodeInputSetTest.php @@ -38,15 +38,15 @@ public function testCreateFromInputArrayAcceptsStringsOfDigits(): void { ], $nodeSet->jsonSerialize()); } - public function testCreateFromInputArrayDefaultsMissingPermissionsToRead(): void { + public function testCreateFromInputArrayLeavesOutMissingPermissions(): void { $nodeSet = ContextNodeInputSet::createFromInputArray([ ['id' => 5, 'type' => 0], ['id' => 6, 'type' => 0, 'permissions' => null], ]); $this->assertSame([ - ['id' => 5, 'type' => 0, 'permissions' => Application::PERMISSION_READ], - ['id' => 6, 'type' => 0, 'permissions' => Application::PERMISSION_READ], + ['id' => 5, 'type' => 0], + ['id' => 6, 'type' => 0], ], $nodeSet->jsonSerialize()); } diff --git a/tests/unit/Service/ContextServiceTest.php b/tests/unit/Service/ContextServiceTest.php index 67b94c8cca..05390ec632 100644 --- a/tests/unit/Service/ContextServiceTest.php +++ b/tests/unit/Service/ContextServiceTest.php @@ -36,6 +36,7 @@ final class ContextServiceTest extends TestCase { private MockObject $contextNodeRelMapper; private MockObject $pageMapper; private MockObject $pageContentMapper; + private MockObject $permissionsService; private MockObject $userManager; private MockObject $auditLogService; @@ -47,7 +48,7 @@ protected function setUp(): void { $this->pageMapper = $this->createMock(PageMapper::class); $this->pageContentMapper = $this->createMock(PageContentMapper::class); $logger = $this->createMock(LoggerInterface::class); - $permissionsService = $this->createMock(PermissionsService::class); + $this->permissionsService = $this->createMock(PermissionsService::class); $this->userManager = $this->createMock(IUserManager::class); $this->auditLogService = $this->createMock(AuditLogServiceInterface::class); $dbConnection = $this->createMock(IDBConnection::class); @@ -61,7 +62,7 @@ protected function setUp(): void { $this->pageMapper, $this->pageContentMapper, $logger, - $permissionsService, + $this->permissionsService, $this->userManager, $this->auditLogService, $dbConnection, @@ -247,6 +248,64 @@ public function testUpdateLogsNodePermissionChanges(): void { self::assertSame(3, $nodeRelation->getPermissions()); } + public function testUpdateKeepsThePermissionsOfAKeptNodeWithoutPermissions(): void { + $context = new Context(); + $context->id = 7; + $context->setNodes([ + 101 => ['id' => 101, 'node_type' => 0, 'node_id' => 11, 'permissions' => 7], + ]); + $context->setPages([]); + $this->contextMapper->method('findById')->with(7, 'user-1')->willReturn($context); + $this->contextMapper->method('update')->willReturnArgument(0); + $this->contextNodeRelMapper->expects($this->never())->method('update'); + $this->auditLogService->expects($this->once()) + ->method('log') + ->with(Operation::ContextUpdated, 'Tables application with ID %s was updated', [ + 'contextId' => 7, + 'addedNodes' => [], + 'removedNodes' => [], + 'updatedNodes' => [], + ]); + + $updatedContext = $this->service->update(7, 'user-1', null, null, null, [ + ['id' => 11, 'type' => 0], + ]); + + self::assertSame(7, $updatedContext->getNodes()[101]['permissions']); + } + + public function testUpdateRevokesThePermissionsOfAKeptNodeGivenZero(): void { + $context = new Context(); + $context->id = 7; + $context->setNodes([ + 101 => ['id' => 101, 'node_type' => 0, 'node_id' => 11, 'permissions' => 7], + ]); + $context->setPages([]); + $this->contextMapper->method('findById')->with(7, 'user-1')->willReturn($context); + $this->contextMapper->method('update')->willReturnArgument(0); + $nodeRelation = new ContextNodeRelation(); + $nodeRelation->id = 101; + $nodeRelation->setNodeType(0); + $nodeRelation->setNodeId(11); + $nodeRelation->setPermissions(7); + $this->contextNodeRelMapper->method('findById')->with(101)->willReturn($nodeRelation); + $this->contextNodeRelMapper->expects($this->once())->method('update')->with($nodeRelation)->willReturnArgument(0); + $this->auditLogService->expects($this->once()) + ->method('log') + ->with(Operation::ContextUpdated, 'Tables application with ID %s was updated', [ + 'contextId' => 7, + 'addedNodes' => [], + 'removedNodes' => [], + 'updatedNodes' => [['nodeType' => 0, 'nodeId' => 11, 'previousPermissions' => 7, 'permissions' => 0]], + ]); + + $this->service->update(7, 'user-1', null, null, null, [ + ['id' => 11, 'type' => 0, 'permissions' => 0], + ]); + + self::assertSame(0, $nodeRelation->getPermissions()); + } + public function testCreateLogsCriticalAction(): void { $this->contextMapper->method('insert')->willReturnCallback(function (Context $context): Context { $context->id = 9; @@ -267,6 +326,35 @@ public function testCreateLogsCriticalAction(): void { $this->service->create('Projects', 'icon', '', [], 'alice', Application::OWNER_TYPE_USER); } + public function testCreateGivesANodeWithoutPermissionsReadPermissions(): void { + $this->contextMapper->method('insert')->willReturnCallback(static function (Context $context): Context { + $context->id = 9; + return $context; + }); + $this->permissionsService->method('canManageNodeById')->with(0, 5, 'alice')->willReturn(true); + $insertedRelation = null; + $this->contextNodeRelMapper->expects($this->once()) + ->method('insert') + ->willReturnCallback(static function (ContextNodeRelation $relation) use (&$insertedRelation): ContextNodeRelation { + $relation->id = 101; + $insertedRelation = $relation; + return $relation; + }); + $this->pageMapper->method('insert')->willReturnCallback(static function (Page $page): Page { + $page->id = 1; + return $page; + }); + $this->pageContentMapper->method('insert')->willReturnCallback(static function (PageContent $pageContent): PageContent { + $pageContent->id = 501; + return $pageContent; + }); + + $this->service->create('Projects', 'icon', '', [['id' => 5, 'type' => 0]], 'alice', Application::OWNER_TYPE_USER); + + self::assertInstanceOf(ContextNodeRelation::class, $insertedRelation); + self::assertSame(Application::PERMISSION_READ, $insertedRelation->getPermissions()); + } + public function testDeleteLogsCriticalAction(): void { $context = new Context(); $context->id = 9; From 152b94f6e462340b306d23a0fa3464ded85d8851 Mon Sep 17 00:00:00 2001 From: Jiajun Xu Date: Sat, 14 Nov 2026 18:47:14 +0800 Subject: [PATCH 06/62] fix(contexts): require read in the permissions of an application node The permissions of a node were accepted as any integer within the range of the 32-bit column. Read is the base permission of a node in an application. The dialogs always grant it and only let create, update and delete be added on top, and without read the people the application is shared with cannot see the data of a node it lists. Bits beyond manage are not read anywhere. Accept only a bitmask of read, create, update, delete and manage that includes read, and answer other values with a 400. Manage stays allowed, as the permission checks honour it for applications. The scheme import and the user migration import do not pass through ContextNodeInput and are not covered by this check. Refs: #3262 Assisted-by: ClaudeCode:claude-opus-5-5 Assisted-by: ClaudeCode:claude-fable-5-2 Co-Authored-By: Claude Opus 5.5 Signed-off-by: Jiajun Xu --- lib/Controller/ContextController.php | 4 +-- lib/Service/ValueObject/ContextNodeInput.php | 18 +++++++++- openapi.json | 4 +-- src/types/openapi/openapi.ts | 4 +-- tests/integration/features/APIv2.feature | 13 +++++++ tests/unit/Model/ContextNodeInputSetTest.php | 38 +++++++++++++++++--- 6 files changed, 70 insertions(+), 11 deletions(-) diff --git a/lib/Controller/ContextController.php b/lib/Controller/ContextController.php index 751d6a0ed5..83879ade98 100644 --- a/lib/Controller/ContextController.php +++ b/lib/Controller/ContextController.php @@ -100,7 +100,7 @@ public function show(int $contextId): DataResponse { * @param string $name Name of the context * @param string $iconName Material design icon name of the context * @param string $description Descriptive text of the context - * @psalm-param list $nodes optional nodes to be connected to this context + * @psalm-param list $nodes optional nodes to be connected to this context. Permissions are a bitmask of read (1), create (2), update (4), delete (8) and manage (16) that includes read. * * @return DataResponse|DataResponse * @@ -143,7 +143,7 @@ public function create(string $name, string $iconName, string $description = '', * @param ?string $name provide this parameter to set a new name * @param ?string $iconName provide this parameter to set a new icon * @param ?string $description provide this parameter to set a new description - * @param ?list $nodes provide this parameter to set a new list of nodes. When permissions are omitted, a node that is added gets read permissions and a node that is already in the context keeps its permissions. + * @param ?list $nodes provide this parameter to set a new list of nodes. When permissions are omitted, a node that is added gets read permissions and a node that is already in the context keeps its permissions. Permissions are a bitmask of read (1), create (2), update (4), delete (8) and manage (16) that includes read. * * @return DataResponse|DataResponse * diff --git a/lib/Service/ValueObject/ContextNodeInput.php b/lib/Service/ValueObject/ContextNodeInput.php index 08cf61cb40..0b4bd2ef43 100644 --- a/lib/Service/ValueObject/ContextNodeInput.php +++ b/lib/Service/ValueObject/ContextNodeInput.php @@ -47,7 +47,7 @@ public static function fromArray(array $inputNode): self { nodeId: self::toInteger($inputNode['id'] ?? null, 'Unexpected node id'), nodeType: $nodeType, permissions: isset($inputNode['permissions']) - ? self::toInteger($inputNode['permissions'], 'Unexpected node permissions') + ? self::toPermissions($inputNode['permissions']) : null, order: isset($inputNode['order']) ? self::toInteger($inputNode['order'], 'Unexpected node order') @@ -72,6 +72,22 @@ public function jsonSerialize(): array { return $node; } + /** + * Accepts a bitmask of the grantable permissions that includes read. Read is + * the base permission of a node in an application: the application dialogs + * always grant it and offer create, update and delete on top of it. + * + * @throws InvalidArgumentException + */ + private static function toPermissions(mixed $value): int { + $permissions = self::toInteger($value, 'Unexpected node permissions'); + if (($permissions & ~Application::PERMISSION_ALL) !== 0 + || ($permissions & Application::PERMISSION_READ) === 0) { + throw new InvalidArgumentException('Unexpected node permissions'); + } + return $permissions; + } + /** * Accepts integers and strings of digits, as form encoded requests carry * every value as a string. Anything else is rejected instead of cast. diff --git a/openapi.json b/openapi.json index 752bead893..5156015d19 100644 --- a/openapi.json +++ b/openapi.json @@ -12272,7 +12272,7 @@ "nodes": { "type": "array", "default": [], - "description": "optional nodes to be connected to this context", + "description": "optional nodes to be connected to this context. Permissions are a bitmask of read (1), create (2), update (4), delete (8) and manage (16) that includes read.", "items": { "type": "object", "required": [ @@ -12701,7 +12701,7 @@ "nodes": { "type": "array", "nullable": true, - "description": "provide this parameter to set a new list of nodes. When permissions are omitted, a node that is added gets read permissions and a node that is already in the context keeps its permissions.", + "description": "provide this parameter to set a new list of nodes. When permissions are omitted, a node that is added gets read permissions and a node that is already in the context keeps its permissions. Permissions are a bitmask of read (1), create (2), update (4), delete (8) and manage (16) that includes read.", "items": { "type": "object", "required": [ diff --git a/src/types/openapi/openapi.ts b/src/types/openapi/openapi.ts index fd29547880..5d8a6e8eb3 100644 --- a/src/types/openapi/openapi.ts +++ b/src/types/openapi/openapi.ts @@ -7090,7 +7090,7 @@ export interface operations { */ readonly description?: string; /** - * @description optional nodes to be connected to this context + * @description optional nodes to be connected to this context. Permissions are a bitmask of read (1), create (2), update (4), delete (8) and manage (16) that includes read. * @default [] */ readonly nodes?: readonly { @@ -7280,7 +7280,7 @@ export interface operations { readonly iconName?: string | null; /** @description provide this parameter to set a new description */ readonly description?: string | null; - /** @description provide this parameter to set a new list of nodes. When permissions are omitted, a node that is added gets read permissions and a node that is already in the context keeps its permissions. */ + /** @description provide this parameter to set a new list of nodes. When permissions are omitted, a node that is added gets read permissions and a node that is already in the context keeps its permissions. Permissions are a bitmask of read (1), create (2), update (4), delete (8) and manage (16) that includes read. */ readonly nodes?: readonly { /** Format: int64 */ readonly id: number; diff --git a/tests/integration/features/APIv2.feature b/tests/integration/features/APIv2.feature index f74f169dba..192c8aca61 100644 --- a/tests/integration/features/APIv2.feature +++ b/tests/integration/features/APIv2.feature @@ -554,6 +554,19 @@ Feature: APIv2 When user "participant1-v2" fetches Context "c1" Then known Context "c1" contains "table" "t1" with permissions "read,create,update" + @api2 @contexts @contexts-update + Scenario: Attempt to give a table in an owned context permissions without read + Given table "Table 1 via api v2" with emoji "👋" exists for user "participant1-v2" as "t1" via v2 + And user "participant1-v2" creates the Context "c1" with name "Enchanting Guitar" with icon "tennis" and description "Lorem ipsum dolor etc pp" and nodes: + | alias | type | permissions | + | t1 | table | read,create,update | + When user "participant1-v2" updates the nodes of the Context "c1" with a JSON "list" of + | alias | type | permissions | + | t1 | table | create | + Then the reported status is "400" + When user "participant1-v2" fetches Context "c1" + Then known Context "c1" contains "table" "t1" with permissions "read,create,update" + @api2 @contexts @contexts-update Scenario: Remove all tables from an owned context Given table "Table 1 via api v2" with emoji "👋" exists for user "participant1-v2" as "t1" via v2 diff --git a/tests/unit/Model/ContextNodeInputSetTest.php b/tests/unit/Model/ContextNodeInputSetTest.php index 4842e713fa..f7061dd7f9 100644 --- a/tests/unit/Model/ContextNodeInputSetTest.php +++ b/tests/unit/Model/ContextNodeInputSetTest.php @@ -30,11 +30,11 @@ public function testCreateFromInputArrayKeepsValuesAndSequence(): void { public function testCreateFromInputArrayAcceptsStringsOfDigits(): void { $nodeSet = ContextNodeInputSet::createFromInputArray([ - ['id' => '05', 'type' => '1', 'permissions' => '0', 'order' => '30'], + ['id' => '05', 'type' => '1', 'permissions' => '07', 'order' => '0'], ]); $this->assertSame([ - ['id' => 5, 'type' => 1, 'permissions' => 0, 'order' => 30], + ['id' => 5, 'type' => 1, 'permissions' => 7, 'order' => 0], ], $nodeSet->jsonSerialize()); } @@ -67,14 +67,37 @@ public function testCreateFromInputArrayWithEmptyArray(): void { public function testCreateFromInputArrayAcceptsTheLargestStorableInteger(): void { $nodeSet = ContextNodeInputSet::createFromInputArray([ - ['id' => 2147483647, 'type' => 0, 'permissions' => '2147483647'], + ['id' => 2147483647, 'type' => 0, 'order' => '2147483647'], ]); $this->assertSame([ - ['id' => 2147483647, 'type' => 0, 'permissions' => 2147483647], + ['id' => 2147483647, 'type' => 0, 'order' => 2147483647], ], $nodeSet->jsonSerialize()); } + /** + * @dataProvider permissionsIncludingReadProvider + */ + public function testCreateFromInputArrayAcceptsPermissionsThatIncludeRead(int|string $permissions, int $expectedPermissions): void { + $nodeSet = ContextNodeInputSet::createFromInputArray([ + ['id' => 5, 'type' => 0, 'permissions' => $permissions], + ]); + + $this->assertSame([ + ['id' => 5, 'type' => 0, 'permissions' => $expectedPermissions], + ], $nodeSet->jsonSerialize()); + } + + public static function permissionsIncludingReadProvider(): array { + return [ + 'read' => [Application::PERMISSION_READ, 1], + 'read, create, update and delete' => [15, 15], + 'read and manage' => [17, 17], + 'all' => [Application::PERMISSION_ALL, 31], + 'all as a string' => ['31', 31], + ]; + } + /** * @dataProvider invalidListProvider */ @@ -129,6 +152,13 @@ public static function invalidNodeProvider(): array { 'empty string as permissions' => [['id' => 5, 'type' => 0, 'permissions' => ''], 'Unexpected node permissions'], 'boolean as permissions' => [['id' => 5, 'type' => 0, 'permissions' => true], 'Unexpected node permissions'], 'array as permissions' => [['id' => 5, 'type' => 0, 'permissions' => [1]], 'Unexpected node permissions'], + 'no permissions' => [['id' => 5, 'type' => 0, 'permissions' => 0], 'Unexpected node permissions'], + 'no permissions as a string' => [['id' => 5, 'type' => 0, 'permissions' => '0'], 'Unexpected node permissions'], + 'create without read' => [['id' => 5, 'type' => 0, 'permissions' => 2], 'Unexpected node permissions'], + 'manage without read' => [['id' => 5, 'type' => 0, 'permissions' => 16], 'Unexpected node permissions'], + 'read and owner' => [['id' => 5, 'type' => 0, 'permissions' => 33], 'Unexpected node permissions'], + 'read and an undefined permission' => [['id' => 5, 'type' => 0, 'permissions' => 65], 'Unexpected node permissions'], + 'largest storable integer as permissions' => [['id' => 5, 'type' => 0, 'permissions' => '2147483647'], 'Unexpected node permissions'], 'word as order' => [['id' => 5, 'type' => 0, 'order' => 'first'], 'Unexpected node order'], 'negative order' => [['id' => 5, 'type' => 0, 'order' => -10], 'Unexpected node order'], ]; From 379762b868c746b83267a53994d3453d61c3e9e9 Mon Sep 17 00:00:00 2001 From: Ruben van der Linde Date: Mon, 16 Nov 2026 11:14:52 +0100 Subject: [PATCH 07/62] fix(contexts): close the edit dialog without an error after deleting the application After a delete, the dialog reset itself from the application it had just removed and read its sharing settings, which threw a TypeError. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Ruben van der Linde --- playwright/e2e/context.spec.ts | 22 ++++++++++++++++++++++ src/modules/modals/EditContext.vue | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/playwright/e2e/context.spec.ts b/playwright/e2e/context.spec.ts index 76fae80ef5..2c595bb251 100644 --- a/playwright/e2e/context.spec.ts +++ b/playwright/e2e/context.spec.ts @@ -205,6 +205,28 @@ test.describe('Manage a context', () => { await expect(page.locator('li', { hasText: contextTitle })).toBeHidden() }) + test('Delete context from the edit dialog', async ({ userPage: { page } }) => { + const contextTitle = 'test application delete in dialog' + const errors: string[] = [] + page.on('console', message => { + if (message.type() === 'error' && message.text().startsWith('TypeError')) { + errors.push(message.text()) + } + }) + + await setupContextAndNavigate(page, contextTitle) + await openContextEditModal(page, contextTitle) + const dialog = page.getByRole('dialog', { name: 'Edit application' }) + await dialog.getByRole('button', { name: 'Delete', exact: true }).last().click() + const deleteResponse = page.waitForResponse(r => r.url().includes('/apps/tables/api/2/contexts/') && r.request().method() === 'DELETE') + await dialog.getByRole('button', { name: 'I really want to delete this application!' }).click() + expect((await deleteResponse).ok()).toBeTruthy() + + await expect(dialog).toBeHidden({ timeout: 10000 }) + await expect(page.locator('[data-cy="navigationContextItem"]').filter({ hasText: contextTitle })).toBeHidden({ timeout: 15000 }) + expect(errors).toEqual([]) + }) + test('Remove context resource', async ({ userPage: { page } }) => { const contextTitle = 'test application resource' const tableTitle = 'test table resource' diff --git a/src/modules/modals/EditContext.vue b/src/modules/modals/EditContext.vue index b096360b74..18bd103333 100644 --- a/src/modules/modals/EditContext.vue +++ b/src/modules/modals/EditContext.vue @@ -208,7 +208,7 @@ export default { this.showInNavigationDefault = this.getNavDisplay(context) }, getNavDisplay(context) { - const shares = Object.keys(context.sharing || {}) + const shares = Object.keys(context?.sharing || {}) if (shares.length) { const displayMode = context.sharing[shares[0]].display_mode_default return displayMode !== 0 From 8d9dcc015a5a34ee1f972c609a072df8d07f92ba Mon Sep 17 00:00:00 2001 From: Jiajun Xu Date: Mon, 16 Nov 2026 23:36:10 +0800 Subject: [PATCH 08/62] fix(contexts): name the rule in the node permissions error Invalid node permissions were answered with "Unexpected node permissions", which does not say what is expected. Nodes stored before the rule may lack read, so a client that sends back the permissions it read gets this 400. Name the rule in the message instead: the permissions must include read (1) and may only combine 1, 2, 4, 8 and 16. Refs: #3262 Assisted-by: ClaudeCode:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 Signed-off-by: Jiajun Xu --- lib/Service/ValueObject/ContextNodeInput.php | 6 ++++-- tests/unit/Model/ContextNodeInputSetTest.php | 22 ++++++++++---------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/lib/Service/ValueObject/ContextNodeInput.php b/lib/Service/ValueObject/ContextNodeInput.php index 0b4bd2ef43..601c125980 100644 --- a/lib/Service/ValueObject/ContextNodeInput.php +++ b/lib/Service/ValueObject/ContextNodeInput.php @@ -21,6 +21,8 @@ class ContextNodeInput implements JsonSerializable { /** The values are stored in signed 32-bit integer columns */ private const MAX_INTEGER_VALUE = 2_147_483_647; + private const PERMISSIONS_ERROR = 'Node permissions must include read (1) and may only combine 1, 2, 4, 8 and 16'; + private const NODE_TYPES = [ Application::NODE_TYPE_TABLE, Application::NODE_TYPE_VIEW, @@ -80,10 +82,10 @@ public function jsonSerialize(): array { * @throws InvalidArgumentException */ private static function toPermissions(mixed $value): int { - $permissions = self::toInteger($value, 'Unexpected node permissions'); + $permissions = self::toInteger($value, self::PERMISSIONS_ERROR); if (($permissions & ~Application::PERMISSION_ALL) !== 0 || ($permissions & Application::PERMISSION_READ) === 0) { - throw new InvalidArgumentException('Unexpected node permissions'); + throw new InvalidArgumentException(self::PERMISSIONS_ERROR); } return $permissions; } diff --git a/tests/unit/Model/ContextNodeInputSetTest.php b/tests/unit/Model/ContextNodeInputSetTest.php index f7061dd7f9..37f3b9d4c2 100644 --- a/tests/unit/Model/ContextNodeInputSetTest.php +++ b/tests/unit/Model/ContextNodeInputSetTest.php @@ -148,17 +148,17 @@ public static function invalidNodeProvider(): array { 'missing type' => [['id' => 5], 'Unexpected node type'], 'word as type' => [['id' => 5, 'type' => 'table'], 'Unexpected node type'], 'unknown type' => [['id' => 5, 'type' => 7], 'Unexpected node type'], - 'word as permissions' => [['id' => 5, 'type' => 0, 'permissions' => 'abc'], 'Unexpected node permissions'], - 'empty string as permissions' => [['id' => 5, 'type' => 0, 'permissions' => ''], 'Unexpected node permissions'], - 'boolean as permissions' => [['id' => 5, 'type' => 0, 'permissions' => true], 'Unexpected node permissions'], - 'array as permissions' => [['id' => 5, 'type' => 0, 'permissions' => [1]], 'Unexpected node permissions'], - 'no permissions' => [['id' => 5, 'type' => 0, 'permissions' => 0], 'Unexpected node permissions'], - 'no permissions as a string' => [['id' => 5, 'type' => 0, 'permissions' => '0'], 'Unexpected node permissions'], - 'create without read' => [['id' => 5, 'type' => 0, 'permissions' => 2], 'Unexpected node permissions'], - 'manage without read' => [['id' => 5, 'type' => 0, 'permissions' => 16], 'Unexpected node permissions'], - 'read and owner' => [['id' => 5, 'type' => 0, 'permissions' => 33], 'Unexpected node permissions'], - 'read and an undefined permission' => [['id' => 5, 'type' => 0, 'permissions' => 65], 'Unexpected node permissions'], - 'largest storable integer as permissions' => [['id' => 5, 'type' => 0, 'permissions' => '2147483647'], 'Unexpected node permissions'], + 'word as permissions' => [['id' => 5, 'type' => 0, 'permissions' => 'abc'], 'Node permissions must include read (1) and may only combine 1, 2, 4, 8 and 16'], + 'empty string as permissions' => [['id' => 5, 'type' => 0, 'permissions' => ''], 'Node permissions must include read (1) and may only combine 1, 2, 4, 8 and 16'], + 'boolean as permissions' => [['id' => 5, 'type' => 0, 'permissions' => true], 'Node permissions must include read (1) and may only combine 1, 2, 4, 8 and 16'], + 'array as permissions' => [['id' => 5, 'type' => 0, 'permissions' => [1]], 'Node permissions must include read (1) and may only combine 1, 2, 4, 8 and 16'], + 'no permissions' => [['id' => 5, 'type' => 0, 'permissions' => 0], 'Node permissions must include read (1) and may only combine 1, 2, 4, 8 and 16'], + 'no permissions as a string' => [['id' => 5, 'type' => 0, 'permissions' => '0'], 'Node permissions must include read (1) and may only combine 1, 2, 4, 8 and 16'], + 'create without read' => [['id' => 5, 'type' => 0, 'permissions' => 2], 'Node permissions must include read (1) and may only combine 1, 2, 4, 8 and 16'], + 'manage without read' => [['id' => 5, 'type' => 0, 'permissions' => 16], 'Node permissions must include read (1) and may only combine 1, 2, 4, 8 and 16'], + 'read and owner' => [['id' => 5, 'type' => 0, 'permissions' => 33], 'Node permissions must include read (1) and may only combine 1, 2, 4, 8 and 16'], + 'read and an undefined permission' => [['id' => 5, 'type' => 0, 'permissions' => 65], 'Node permissions must include read (1) and may only combine 1, 2, 4, 8 and 16'], + 'largest storable integer as permissions' => [['id' => 5, 'type' => 0, 'permissions' => '2147483647'], 'Node permissions must include read (1) and may only combine 1, 2, 4, 8 and 16'], 'word as order' => [['id' => 5, 'type' => 0, 'order' => 'first'], 'Unexpected node order'], 'negative order' => [['id' => 5, 'type' => 0, 'order' => -10], 'Unexpected node order'], ]; From 32e3676ae0f5847c039b395f812efd99b94a6681 Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Wed, 18 Nov 2026 13:34:57 +0100 Subject: [PATCH 09/62] feat(rows): read rows as objects on api/2 with ?shape=object The single-row and listing routes return, with shape=object, one flat object per row keyed by the technical names of the columns, with the metadata in an @self block whose id is the row uuid. Datetimes carry the offset of the instance's default_timezone, links are {title, url, providerId} and relations are the uuid of the target row. The cells shape stays the default. Refs #3096 Assisted-by: ClaudeCode:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 Signed-off-by: Robert Zondervan --- lib/Controller/RowOCSController.php | 35 ++- lib/Db/Column.php | 1 + lib/Db/RowSleeveMapper.php | 24 ++ lib/Helper/InstanceTimezone.php | 37 +++ lib/Model/RowShape.php | 32 +++ lib/ResponseDefinitions.php | 34 +++ lib/Service/RowObjectSerializer.php | 196 ++++++++++++++++ openapi.json | 219 +++++++++++++++++- src/types/openapi/openapi.ts | 50 +++- .../unit/Controller/RowOCSControllerTest.php | 48 ++++ tests/unit/Db/RowSleeveMapperTest.php | 38 +++ tests/unit/Helper/InstanceTimezoneTest.php | 34 +++ tests/unit/Model/RowShapeTest.php | 31 +++ .../unit/Service/RowObjectSerializerTest.php | 125 ++++++++++ 14 files changed, 894 insertions(+), 10 deletions(-) create mode 100644 lib/Helper/InstanceTimezone.php create mode 100644 lib/Model/RowShape.php create mode 100644 lib/Service/RowObjectSerializer.php create mode 100644 tests/unit/Helper/InstanceTimezoneTest.php create mode 100644 tests/unit/Model/RowShapeTest.php create mode 100644 tests/unit/Service/RowObjectSerializerTest.php diff --git a/lib/Controller/RowOCSController.php b/lib/Controller/RowOCSController.php index 3609a2c4b2..f827c795a3 100644 --- a/lib/Controller/RowOCSController.php +++ b/lib/Controller/RowOCSController.php @@ -8,6 +8,7 @@ namespace OCA\Tables\Controller; use OCA\Tables\AppInfo\Application; +use OCA\Tables\Db\Row2; use OCA\Tables\Errors\BadRequestError; use OCA\Tables\Errors\InternalError; use OCA\Tables\Errors\NotFoundError; @@ -16,8 +17,10 @@ use OCA\Tables\Middleware\Attribute\RequirePermission; use OCA\Tables\Model\RowDataInput; use OCA\Tables\Model\RowListQuery; +use OCA\Tables\Model\RowShape; use OCA\Tables\ResponseDefinitions; use OCA\Tables\Service\FederationService; +use OCA\Tables\Service\RowObjectSerializer; use OCA\Tables\Service\RowService; use OCA\Tables\Service\TableService; use OCA\Tables\Service\ViewService; @@ -32,6 +35,8 @@ /** * @psalm-import-type TablesRow from ResponseDefinitions * @psalm-import-type TablesRowPage from ResponseDefinitions + * @psalm-import-type TablesRowObject from ResponseDefinitions + * @psalm-import-type TablesRowObjectPage from ResponseDefinitions */ class RowOCSController extends AOCSController { @@ -44,6 +49,7 @@ public function __construct( private readonly TableService $tableService, private readonly ViewService $viewService, private readonly FederationService $federationService, + private readonly RowObjectSerializer $rowObjectSerializer, ) { parent::__construct($request, $logger, $n, $userId); } @@ -124,7 +130,8 @@ public function createRow(string $nodeCollection, int $nodeId, mixed $data): Dat * @param string|null $search Text to look for in the text cells and the selection labels * @param string|null $fields Comma separated technical names or column ids of the columns to return, the metadata of a row is always returned * @param array>|null $filter Filters as filter[field]=value or filter[field][operator]=value, all of which must match. A deep object in the query string (for example filter[age][is-greater-than]=30&filter[name]=jane), shown as a string because the API description cannot express nested query parameters. field is a technical name, a column id or a meta field; operator is one of the view filter operators that fit the field's type (without one: is-equal, or contains-item on multi-value columns; long and rich text need an operator such as contains); a value is compared as given and written as the column stores it: a decimal number; a row id for relations and id; YYYY-MM-DD HH:MM for date and time columns, YYYY-MM-DD for date columns, HH:MM for time columns; YYYY-MM-DD with an optional HH:MM or HH:MM:SS, after a space or a T, for createdAt and updatedAt, an exact moment, so compare those with is-greater-than and is-lower-than rather than is-equal; an option id for selections; true or false for checkboxes; a user, group or team id for usergroup columns - * @return DataResponse|DataResponse + * @param 'cells'|'object'|null $shape The shape of the returned rows, defaults to "cells" + * @return DataResponse|DataResponse * * 200: Rows returned * 400: Invalid query parameters, or the table or view is federated @@ -145,6 +152,7 @@ public function getRows( ?string $search = null, ?string $fields = null, mixed $filter = null, + ?string $shape = null, ): DataResponse { [$tableId, $viewId] = $this->splitNode($nodeCollection, $nodeId); try { @@ -153,13 +161,16 @@ public function getRows( } try { $query = RowListQuery::createFromRequest($page, $offset, $limit, $sort, $search, $fields, $filter); + $rowShape = RowShape::fromRequest($shape); } catch (\InvalidArgumentException $e) { throw new BadRequestError($e->getMessage()); } $found = $this->rowService->findPage($query, $tableId, $viewId, $this->userId); return new DataResponse([ - 'results' => array_values(array_map(static fn ($row) => $row->jsonSerialize(), $found['rows'])), + 'results' => $rowShape === RowShape::Object + ? $this->rowObjectSerializer->serializeAll(array_values($found['rows'])) + : array_values(array_map(static fn ($row) => $row->jsonSerialize(), $found['rows'])), 'total' => $found['total'], 'limit' => $query->limit, 'page' => $query->getPage(), @@ -182,7 +193,8 @@ public function getRows( * @param 'tables'|'views' $nodeCollection Indicates whether to get a row from a table or view * @param int $nodeId The identifier of the targeted table or view * @param string $rowId The identifier of the row, either its integer id or its uuid - * @return DataResponse|DataResponse + * @param 'cells'|'object'|null $shape The shape of the returned row, defaults to "cells" + * @return DataResponse|DataResponse * * 200: Row returned * 400: Invalid row identifier, or the table or view is federated @@ -193,14 +205,19 @@ public function getRows( #[NoAdminRequired] #[RequirePermission(permission: Application::PERMISSION_READ, typeParam: 'nodeCollection')] #[ApiRoute(verb: 'GET', url: '/api/2/{nodeCollection}/{nodeId}/rows/{rowId}', requirements: ['nodeCollection' => '(tables|views)', 'nodeId' => '(\d+)'])] - public function getRow(string $nodeCollection, int $nodeId, string $rowId): DataResponse { + public function getRow(string $nodeCollection, int $nodeId, string $rowId, ?string $shape = null): DataResponse { [$tableId, $viewId] = $this->splitNode($nodeCollection, $nodeId); try { + try { + $rowShape = RowShape::fromRequest($shape); + } catch (\InvalidArgumentException $e) { + throw new BadRequestError($e->getMessage()); + } if ($this->isFederated($tableId, $viewId)) { throw new BadRequestError('Getting a single row is not supported for federated tables and views.'); } $resolvedRowId = $this->rowService->resolveRowId($rowId, $tableId, $viewId); - return new DataResponse($this->rowService->findInNode($resolvedRowId, $tableId, $viewId, $this->userId)->jsonSerialize()); + return new DataResponse($this->shapeRow($this->rowService->findInNode($resolvedRowId, $tableId, $viewId, $this->userId), $rowShape)); } catch (BadRequestError $e) { return $this->handleBadRequestError($e); } catch (NotFoundError $e) { @@ -301,6 +318,14 @@ public function deleteRow(string $nodeCollection, int $nodeId, string $rowId): D } } + /** + * @return TablesRow|TablesRowObject + * @throws InternalError + */ + private function shapeRow(Row2 $row, RowShape $rowShape): array { + return $rowShape === RowShape::Object ? $this->rowObjectSerializer->serialize($row) : $row->jsonSerialize(); + } + /** * @param 'tables'|'views' $nodeCollection * @return array{0: ?int, 1: ?int} the table id and the view id, one of them is null diff --git a/lib/Db/Column.php b/lib/Db/Column.php index 3e0ddf5b04..26a00189c7 100644 --- a/lib/Db/Column.php +++ b/lib/Db/Column.php @@ -115,6 +115,7 @@ class Column extends EntitySuper implements JsonSerializable { public const SUBTYPE_SELECTION_MULTI = 'selection-multi'; public const SUBTYPE_TEXT_LINE = 'line'; + public const SUBTYPE_TEXT_LINK = 'link'; public const META_ID_TITLE = 'id'; diff --git a/lib/Db/RowSleeveMapper.php b/lib/Db/RowSleeveMapper.php index cbb88e0df5..3ebe7bdbc3 100644 --- a/lib/Db/RowSleeveMapper.php +++ b/lib/Db/RowSleeveMapper.php @@ -112,6 +112,30 @@ public function findIdByUuid(string $uuid, ?int $tableId = null): ?int { return $id === false ? null : (int)$id; } + /** + * @param int[] $ids + * @return array the uuid per row id, rows without a uuid are left out + * @throws Exception + */ + public function findUuidsByIds(array $ids): array { + $qb = $this->db->getQueryBuilder(); + $qb->select('id', 'uuid') + ->from($this->table) + ->where($qb->expr()->in('id', $qb->createParameter('chunk'))) + ->andWhere($qb->expr()->isNotNull('uuid')); + + $uuids = []; + foreach (array_chunk(array_values(array_unique($ids)), self::DB_CHUNK_SIZE) as $chunk) { + $qb->setParameter('chunk', $chunk, IQueryBuilder::PARAM_INT_ARRAY); + $result = $qb->executeQuery(); + while ($row = $result->fetchAssociative()) { + $uuids[(int)$row['id']] = (string)$row['uuid']; + } + $result->closeCursor(); + } + return $uuids; + } + /** * @param int $sleeveId * @throws Exception diff --git a/lib/Helper/InstanceTimezone.php b/lib/Helper/InstanceTimezone.php new file mode 100644 index 0000000000..cb4e3a86a7 --- /dev/null +++ b/lib/Helper/InstanceTimezone.php @@ -0,0 +1,37 @@ +timezone === null) { + try { + $this->timezone = new DateTimeZone($this->config->getSystemValueString('default_timezone', 'UTC')); + } catch (\Exception) { + $this->timezone = new DateTimeZone('UTC'); + } + } + return $this->timezone; + } +} diff --git a/lib/Model/RowShape.php b/lib/Model/RowShape.php new file mode 100644 index 0000000000..ea0a21aa27 --- /dev/null +++ b/lib/Model/RowShape.php @@ -0,0 +1,32 @@ +|TablesRowLink|list + * + * @psalm-type TablesRowObject = array{'@self': TablesRowSelf}&array + * + * @psalm-type TablesRowObjectPage = array{ + * results: list, + * total: int, + * limit: int, + * page: int, + * pages: int, + * } + * * @psalm-type TablesPublicRow = array{ * id: int, * uuid: ?string, diff --git a/lib/Service/RowObjectSerializer.php b/lib/Service/RowObjectSerializer.php new file mode 100644 index 0000000000..5ad78392d3 --- /dev/null +++ b/lib/Service/RowObjectSerializer.php @@ -0,0 +1,196 @@ +serializeAll([$row])[0]; + } + + /** + * @param Row2[] $rows + * @return list + * @throws InternalError + */ + public function serializeAll(array $rows): array { + $columnsById = $this->loadColumns($rows); + $relationUuids = $this->loadRelationTargetUuids($rows, $columnsById); + + $objects = []; + foreach ($rows as $row) { + $object = ['@self' => $this->self($row)]; + foreach ($row->getDataByAlias() as $alias => $cell) { + $column = $columnsById[$cell['columnId']] ?? null; + $object[$alias] = $column === null + ? $cell['value'] + : $this->value($column, $cell['value'], $relationUuids); + } + $objects[] = $object; + } + return $objects; + } + + /** + * @return TablesRowSelf + */ + private function self(Row2 $row): array { + $utc = new DateTimeZone('UTC'); + return [ + 'id' => $row->getUuid(), + 'rowId' => (int)$row->getId(), + 'tableId' => (int)$row->getTableId(), + 'createdBy' => (string)$row->getCreatedBy(), + 'createdAt' => $this->isoDatetime($row->getCreatedAt(), $utc), + 'lastEditBy' => (string)$row->getLastEditBy(), + 'lastEditAt' => $this->isoDatetime($row->getLastEditAt(), $utc), + ]; + } + + /** + * @param array $relationUuids + */ + private function value(Column $column, mixed $value, array $relationUuids): mixed { + if ($value === null || $value === '') { + return null; + } + return match (true) { + $this->isPlainDatetime($column) => $this->isoDatetime((string)$value, $this->instanceTimezone->get()) ?? $value, + $column->getType() === Column::TYPE_TEXT && $column->getSubtype() === Column::SUBTYPE_TEXT_LINK => $this->link($value), + $column->getType() === Column::TYPE_RELATION => $relationUuids[(int)$value] ?? (int)$value, + default => $value, + }; + } + + private function isPlainDatetime(Column $column): bool { + return $column->getType() === Column::TYPE_DATETIME + && !in_array($column->getSubtype(), [Column::SUBTYPE_DATETIME_DATE, Column::SUBTYPE_DATETIME_TIME], true); + } + + /** + * A naive stored datetime, read in the given timezone, as ISO 8601 with its offset. + */ + private function isoDatetime(?string $stored, DateTimeZone $timezone): ?string { + if ($stored === null || $stored === '') { + return null; + } + foreach (self::STORED_DATETIME_FORMATS as $format) { + $dateTime = DateTimeImmutable::createFromFormat('!' . $format, $stored, $timezone); + if ($dateTime !== false) { + return $dateTime->setTimezone($this->instanceTimezone->get())->format(DateTimeInterface::ATOM); + } + } + $this->logger->warning('Stored datetime has an unknown format', ['value' => $stored]); + return null; + } + + /** + * The stored link as {title, url, providerId}, or the stored value when it is not a link object. + */ + private function link(mixed $value): mixed { + $link = is_string($value) ? json_decode($value, true) : null; + if (!is_array($link) || !isset($link['value'])) { + return $value; + } + return [ + 'title' => (string)($link['title'] ?? $link['value']), + 'url' => (string)$link['value'], + 'providerId' => (string)($link['providerId'] ?? 'url'), + ]; + } + + /** + * @param Row2[] $rows + * @return array + * @throws InternalError + */ + private function loadColumns(array $rows): array { + $columnIds = []; + foreach ($rows as $row) { + foreach ($row->getDataByAlias() as $cell) { + $columnIds[$cell['columnId']] = true; + } + } + if ($columnIds === []) { + return []; + } + try { + $columns = $this->columnMapper->findAll(array_keys($columnIds)); + } catch (Exception $e) { + $this->logger->error($e->getMessage(), ['exception' => $e]); + throw new InternalError(static::class . ' - ' . __FUNCTION__ . ': ' . $e->getMessage()); + } + $columnsById = []; + foreach ($columns as $column) { + $columnsById[$column->getId()] = $column; + } + return $columnsById; + } + + /** + * @param Row2[] $rows + * @param array $columnsById + * @return array the uuid per target row id + * @throws InternalError + */ + private function loadRelationTargetUuids(array $rows, array $columnsById): array { + $targetRowIds = []; + foreach ($rows as $row) { + foreach ($row->getDataByAlias() as $cell) { + $column = $columnsById[$cell['columnId']] ?? null; + if ($column?->getType() === Column::TYPE_RELATION && is_numeric($cell['value'])) { + $targetRowIds[] = (int)$cell['value']; + } + } + } + if ($targetRowIds === []) { + return []; + } + try { + return $this->rowSleeveMapper->findUuidsByIds($targetRowIds); + } catch (Exception $e) { + $this->logger->error($e->getMessage(), ['exception' => $e]); + throw new InternalError(static::class . ' - ' . __FUNCTION__ . ': ' . $e->getMessage()); + } + } +} diff --git a/openapi.json b/openapi.json index 422ecad704..fbaf0fd7c0 100644 --- a/openapi.json +++ b/openapi.json @@ -792,6 +792,119 @@ } } }, + "RowLink": { + "type": "object", + "required": [ + "title", + "url", + "providerId" + ], + "properties": { + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "providerId": { + "type": "string" + } + } + }, + "RowObject": { + "allOf": [ + { + "type": "object", + "required": [ + "@self" + ], + "properties": { + "@self": { + "$ref": "#/components/schemas/RowSelf" + } + } + }, + { + "type": "object", + "additionalProperties": { + "nullable": true, + "anyOf": [ + { + "$ref": "#/components/schemas/RowObjectValue" + }, + { + "$ref": "#/components/schemas/RowSelf" + } + ] + } + } + ] + }, + "RowObjectPage": { + "type": "object", + "required": [ + "results", + "total", + "limit", + "page", + "pages" + ], + "properties": { + "results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RowObject" + } + }, + "total": { + "type": "integer", + "format": "int64" + }, + "limit": { + "type": "integer", + "format": "int64" + }, + "page": { + "type": "integer", + "format": "int64" + }, + "pages": { + "type": "integer", + "format": "int64" + } + } + }, + "RowObjectValue": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "integer", + "format": "int64" + }, + { + "type": "number", + "format": "double" + }, + { + "type": "array", + "items": { + "type": "integer", + "format": "int64" + } + }, + { + "$ref": "#/components/schemas/RowLink" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/RowUsergroup" + } + } + ] + }, "RowPage": { "type": "object", "required": [ @@ -826,6 +939,66 @@ } } }, + "RowSelf": { + "type": "object", + "required": [ + "id", + "rowId", + "tableId", + "createdBy", + "createdAt", + "lastEditBy", + "lastEditAt" + ], + "properties": { + "id": { + "type": "string", + "nullable": true + }, + "rowId": { + "type": "integer", + "format": "int64" + }, + "tableId": { + "type": "integer", + "format": "int64" + }, + "createdBy": { + "type": "string" + }, + "createdAt": { + "type": "string", + "nullable": true + }, + "lastEditBy": { + "type": "string" + }, + "lastEditAt": { + "type": "string", + "nullable": true + } + } + }, + "RowUsergroup": { + "type": "object", + "required": [ + "id", + "type", + "displayName" + ], + "properties": { + "id": { + "type": "string" + }, + "type": { + "type": "integer", + "format": "int64" + }, + "displayName": { + "type": "string" + } + } + }, "Share": { "type": "object", "required": [ @@ -16640,6 +16813,20 @@ "nullable": true } }, + { + "name": "shape", + "in": "query", + "description": "The shape of the returned rows, defaults to \"cells\"", + "schema": { + "type": "string", + "nullable": true, + "default": null, + "enum": [ + "cells", + "object" + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -16673,7 +16860,14 @@ "$ref": "#/components/schemas/OCSMeta" }, "data": { - "$ref": "#/components/schemas/RowPage" + "anyOf": [ + { + "$ref": "#/components/schemas/RowPage" + }, + { + "$ref": "#/components/schemas/RowObjectPage" + } + ] } } } @@ -16914,6 +17108,20 @@ "type": "string" } }, + { + "name": "shape", + "in": "query", + "description": "The shape of the returned row, defaults to \"cells\"", + "schema": { + "type": "string", + "nullable": true, + "default": null, + "enum": [ + "cells", + "object" + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -16947,7 +17155,14 @@ "$ref": "#/components/schemas/OCSMeta" }, "data": { - "$ref": "#/components/schemas/Row" + "anyOf": [ + { + "$ref": "#/components/schemas/Row" + }, + { + "$ref": "#/components/schemas/RowObject" + } + ] } } } diff --git a/src/types/openapi/openapi.ts b/src/types/openapi/openapi.ts index 4dfa459425..d44fb90af7 100644 --- a/src/types/openapi/openapi.ts +++ b/src/types/openapi/openapi.ts @@ -1350,6 +1350,28 @@ export type components = { }; }; }; + readonly RowLink: { + readonly title: string; + readonly url: string; + readonly providerId: string; + }; + readonly RowObject: { + readonly "@self": components["schemas"]["RowSelf"]; + } & { + readonly [key: string]: (components["schemas"]["RowObjectValue"] | components["schemas"]["RowSelf"]) | null; + }; + readonly RowObjectPage: { + readonly results: readonly components["schemas"]["RowObject"][]; + /** Format: int64 */ + readonly total: number; + /** Format: int64 */ + readonly limit: number; + /** Format: int64 */ + readonly page: number; + /** Format: int64 */ + readonly pages: number; + }; + readonly RowObjectValue: string | number | readonly number[] | components["schemas"]["RowLink"] | readonly components["schemas"]["RowUsergroup"][]; readonly RowPage: { readonly results: readonly components["schemas"]["Row"][]; /** Format: int64 */ @@ -1361,6 +1383,23 @@ export type components = { /** Format: int64 */ readonly pages: number; }; + readonly RowSelf: { + readonly id: string | null; + /** Format: int64 */ + readonly rowId: number; + /** Format: int64 */ + readonly tableId: number; + readonly createdBy: string; + readonly createdAt: string | null; + readonly lastEditBy: string; + readonly lastEditAt: string | null; + }; + readonly RowUsergroup: { + readonly id: string; + /** Format: int64 */ + readonly type: number; + readonly displayName: string; + }; readonly Share: { /** Format: int64 */ readonly id: number; @@ -8782,6 +8821,8 @@ export interface operations { readonly fields?: string | null; /** @description Filters as filter[field]=value or filter[field][operator]=value, all of which must match. A deep object in the query string (for example filter[age][is-greater-than]=30&filter[name]=jane), shown as a string because the API description cannot express nested query parameters. field is a technical name, a column id or a meta field; operator is one of the view filter operators that fit the field's type (without one: is-equal, or contains-item on multi-value columns; long and rich text need an operator such as contains); a value is compared as given and written as the column stores it: a decimal number; a row id for relations and id; YYYY-MM-DD HH:MM for date and time columns, YYYY-MM-DD for date columns, HH:MM for time columns; YYYY-MM-DD with an optional HH:MM or HH:MM:SS, after a space or a T, for createdAt and updatedAt, an exact moment, so compare those with is-greater-than and is-lower-than rather than is-equal; an option id for selections; true or false for checkboxes; a user, group or team id for usergroup columns */ readonly filter?: string | null; + /** @description The shape of the returned rows, defaults to "cells" */ + readonly shape?: "cells" | "object" | null; }; readonly header: { /** @description Required to be true for the API request to pass */ @@ -8806,7 +8847,7 @@ export interface operations { readonly "application/json": { readonly ocs: { readonly meta: components["schemas"]["OCSMeta"]; - readonly data: components["schemas"]["RowPage"]; + readonly data: components["schemas"]["RowPage"] | components["schemas"]["RowObjectPage"]; }; }; }; @@ -9013,7 +9054,10 @@ export interface operations { }; readonly "rowocs-get-row": { readonly parameters: { - readonly query?: never; + readonly query?: { + /** @description The shape of the returned row, defaults to "cells" */ + readonly shape?: "cells" | "object" | null; + }; readonly header: { /** @description Required to be true for the API request to pass */ readonly "OCS-APIRequest": boolean; @@ -9039,7 +9083,7 @@ export interface operations { readonly "application/json": { readonly ocs: { readonly meta: components["schemas"]["OCSMeta"]; - readonly data: components["schemas"]["Row"]; + readonly data: components["schemas"]["Row"] | components["schemas"]["RowObject"]; }; }; }; diff --git a/tests/unit/Controller/RowOCSControllerTest.php b/tests/unit/Controller/RowOCSControllerTest.php index e3748f8493..3556f1ab0f 100644 --- a/tests/unit/Controller/RowOCSControllerTest.php +++ b/tests/unit/Controller/RowOCSControllerTest.php @@ -17,6 +17,7 @@ use OCA\Tables\Errors\PermissionError; use OCA\Tables\Model\RowListQuery; use OCA\Tables\Service\FederationService; +use OCA\Tables\Service\RowObjectSerializer; use OCA\Tables\Service\RowService; use OCA\Tables\Service\TableService; use OCA\Tables\Service\ViewService; @@ -33,12 +34,14 @@ class RowOCSControllerTest extends TestCase { private RowService&MockObject $rowService; private TableService&MockObject $tableService; private FederationService&MockObject $federationService; + private RowObjectSerializer&MockObject $rowObjectSerializer; private RowOCSController $controller; protected function setUp(): void { $this->rowService = $this->createMock(RowService::class); $this->tableService = $this->createMock(TableService::class); $this->federationService = $this->createMock(FederationService::class); + $this->rowObjectSerializer = $this->createMock(RowObjectSerializer::class); $l10n = $this->createMock(IL10N::class); $l10n->method('t')->willReturnArgument(0); $this->controller = new RowOCSController( @@ -50,6 +53,7 @@ protected function setUp(): void { $this->tableService, $this->createMock(ViewService::class), $this->federationService, + $this->rowObjectSerializer, ); } @@ -228,4 +232,48 @@ public function testGetRowsIsNotSupportedOnAFederatedView(): void { $this->assertSame(Http::STATUS_BAD_REQUEST, $this->controller->getRows('views', 5)->getStatus()); } + + public function testGetRowInTheObjectShape(): void { + $row = $this->row(7); + $this->rowService->method('resolveRowId')->willReturn(7); + $this->rowService->method('findInNode')->willReturn($row); + $this->rowObjectSerializer->expects($this->once()) + ->method('serialize') + ->with($row) + ->willReturn(['@self' => ['id' => self::UUID], 'name' => 'Alice']); + + $response = $this->controller->getRow('tables', 3, self::UUID, 'object'); + + $this->assertSame(Http::STATUS_OK, $response->getStatus()); + $this->assertSame('Alice', $response->getData()['name']); + } + + public function testGetRowsInTheObjectShape(): void { + $rows = [$this->row(7), $this->row(8)]; + $this->rowService->method('findPage')->willReturn(['rows' => $rows, 'total' => 2]); + $this->rowObjectSerializer->expects($this->once()) + ->method('serializeAll') + ->with($rows) + ->willReturn([['name' => 'Alice'], ['name' => 'Bob']]); + + $data = $this->controller->getRows('tables', 3, shape: 'object')->getData(); + + $this->assertSame([['name' => 'Alice'], ['name' => 'Bob']], $data['results']); + } + + public function testCellsShapeIsTheDefault(): void { + $this->rowService->method('resolveRowId')->willReturn(7); + $this->rowService->method('findInNode')->willReturn($this->row(7)); + $this->rowObjectSerializer->expects($this->never())->method('serialize'); + + $this->assertSame(self::UUID, $this->controller->getRow('tables', 3, '7', 'cells')->getData()['uuid']); + } + + public function testUnknownShapeIsABadRequest(): void { + $this->rowService->expects($this->never())->method('findInNode'); + $this->rowService->expects($this->never())->method('findPage'); + + $this->assertSame(Http::STATUS_BAD_REQUEST, $this->controller->getRow('tables', 3, '7', 'flat')->getStatus()); + $this->assertSame(Http::STATUS_BAD_REQUEST, $this->controller->getRows('tables', 3, shape: 'flat')->getStatus()); + } } diff --git a/tests/unit/Db/RowSleeveMapperTest.php b/tests/unit/Db/RowSleeveMapperTest.php index 59e9d28e3c..6448625ec3 100644 --- a/tests/unit/Db/RowSleeveMapperTest.php +++ b/tests/unit/Db/RowSleeveMapperTest.php @@ -109,4 +109,42 @@ public function testTheUuidIsUniqueAcrossTables(): void { $this->expectException(Exception::class); $this->insertSleeve($this->createTable(), $uuid); } + + public function testFindUuidsByIdsReturnsTheUuidPerRowId(): void { + $tableId = $this->createTable(); + $first = $this->insertSleeve($tableId); + $second = $this->insertSleeve($tableId); + + $this->assertEqualsCanonicalizing( + [$first->getId() => $first->getUuid(), $second->getId() => $second->getUuid()], + $this->mapper->findUuidsByIds([$first->getId(), $second->getId(), $first->getId()]), + ); + } + + public function testFindUuidsByIdsLeavesOutRowsWithoutAUuid(): void { + $tableId = $this->createTable(); + $withUuid = $this->insertSleeve($tableId); + $withoutUuid = $this->insertSleeve($tableId); + $qb = $this->connection->getQueryBuilder(); + $qb->update('tables_row_sleeves') + ->set('uuid', $qb->createNamedParameter(null)) + ->where($qb->expr()->eq('id', $qb->createNamedParameter($withoutUuid->getId()))) + ->executeStatement(); + + $this->assertSame( + [$withUuid->getId() => $withUuid->getUuid()], + $this->mapper->findUuidsByIds([$withUuid->getId(), $withoutUuid->getId()]), + ); + } + + public function testFindUuidsByIdsReadsEveryChunk(): void { + $tableId = $this->createTable(); + $first = $this->insertSleeve($tableId); + $last = $this->insertSleeve($tableId); + $missingIds = range($last->getId() + 1, $last->getId() + 1500); + + $uuids = $this->mapper->findUuidsByIds([$first->getId(), ...$missingIds, $last->getId()]); + + $this->assertEqualsCanonicalizing([$first->getId() => $first->getUuid(), $last->getId() => $last->getUuid()], $uuids); + } } diff --git a/tests/unit/Helper/InstanceTimezoneTest.php b/tests/unit/Helper/InstanceTimezoneTest.php new file mode 100644 index 0000000000..41fa154c1f --- /dev/null +++ b/tests/unit/Helper/InstanceTimezoneTest.php @@ -0,0 +1,34 @@ +createMock(IConfig::class); + $config->expects($this->once())->method('getSystemValueString')->with('default_timezone', 'UTC')->willReturn($configured); + $instanceTimezone = new InstanceTimezone($config); + + $name = $instanceTimezone->get()->getName(); + $this->assertSame($name, $instanceTimezone->get()->getName()); + return $name; + } + + public function testTheConfiguredTimezoneIsUsed(): void { + $this->assertSame('Europe/Amsterdam', $this->timezoneFor('Europe/Amsterdam')); + } + + public function testAnUnknownTimezoneFallsBackToUtc(): void { + $this->assertSame('UTC', $this->timezoneFor('Mars/Olympus_Mons')); + } +} diff --git a/tests/unit/Model/RowShapeTest.php b/tests/unit/Model/RowShapeTest.php new file mode 100644 index 0000000000..381fdcbf39 --- /dev/null +++ b/tests/unit/Model/RowShapeTest.php @@ -0,0 +1,31 @@ +assertSame(RowShape::Cells, RowShape::fromRequest(null)); + $this->assertSame(RowShape::Cells, RowShape::fromRequest('')); + } + + public function testKnownShapes(): void { + $this->assertSame(RowShape::Cells, RowShape::fromRequest('cells')); + $this->assertSame(RowShape::Object, RowShape::fromRequest('object')); + } + + public function testUnknownShapeIsRefused(): void { + $this->expectException(InvalidArgumentException::class); + RowShape::fromRequest('objects'); + } +} diff --git a/tests/unit/Service/RowObjectSerializerTest.php b/tests/unit/Service/RowObjectSerializerTest.php new file mode 100644 index 0000000000..8d95fdbde6 --- /dev/null +++ b/tests/unit/Service/RowObjectSerializerTest.php @@ -0,0 +1,125 @@ + */ + private array $columns = []; + + protected function setUp(): void { + $config = $this->createMock(IConfig::class); + $config->method('getSystemValueString')->with('default_timezone', 'UTC')->willReturn('Europe/Amsterdam'); + $this->instanceTimezone = new InstanceTimezone($config); + + $this->columns = [ + 1 => $this->column(1, Column::TYPE_TEXT, Column::SUBTYPE_TEXT_LINE, 'name'), + 2 => $this->column(2, Column::TYPE_DATETIME, '', 'meeting'), + 3 => $this->column(3, Column::TYPE_DATETIME, Column::SUBTYPE_DATETIME_DATE, 'birthday'), + 4 => $this->column(4, Column::TYPE_TEXT, Column::SUBTYPE_TEXT_LINK, 'website'), + 5 => $this->column(5, Column::TYPE_RELATION, '', 'project'), + 6 => $this->column(6, Column::TYPE_SELECTION, Column::SUBTYPE_SELECTION_CHECK, 'is_active'), + 7 => $this->column(7, Column::TYPE_NUMBER, '', 'age'), + ]; + $columnMapper = $this->createMock(ColumnMapper::class); + $columnMapper->method('findAll')->willReturnCallback( + fn (array $ids): array => array_values(array_intersect_key($this->columns, array_flip($ids))), + ); + $this->rowSleeveMapper = $this->createMock(RowSleeveMapper::class); + $this->serializer = new RowObjectSerializer($columnMapper, $this->rowSleeveMapper, $this->instanceTimezone, $this->createMock(LoggerInterface::class)); + } + + private function column(int $id, string $type, string $subtype, string $technicalName): Column { + $column = new Column(); + $column->setId($id); + $column->setType($type); + $column->setSubtype($subtype); + $column->setTechnicalName($technicalName); + return $column; + } + + /** + * @param array $valuesByColumnId + */ + private function row(array $valuesByColumnId): Row2 { + $row = new Row2(); + $row->setId(12); + $row->setUuid(self::ROW_UUID); + $row->setTableId(3); + $row->setCreatedBy('alice'); + $row->setCreatedAt('2026-10-16 12:30:00'); + $row->setLastEditBy('bob'); + $row->setLastEditAt('2026-01-16 08:00:00'); + $dataByAlias = []; + foreach ($valuesByColumnId as $columnId => $value) { + $dataByAlias[$this->columns[$columnId]->getTechnicalName()] = ['columnId' => $columnId, 'value' => $value]; + } + $row->setDataByAlias($dataByAlias); + return $row; + } + + public function testSelfCarriesTheMetadataWithTheUuidAsId(): void { + $this->assertSame([ + 'id' => self::ROW_UUID, + 'rowId' => 12, + 'tableId' => 3, + 'createdBy' => 'alice', + 'createdAt' => '2026-10-16T14:30:00+02:00', + 'lastEditBy' => 'bob', + 'lastEditAt' => '2026-01-16T09:00:00+01:00', + ], $this->serializer->serialize($this->row([]))['@self']); + } + + public function testDatetimesGetTheOffsetOfTheInstanceTimezone(): void { + $object = $this->serializer->serialize($this->row([2 => '2026-10-16 14:30', 3 => '2026-10-16'])); + $this->assertSame('2026-10-16T14:30:00+02:00', $object['meeting']); + $this->assertSame('2026-10-16', $object['birthday']); + } + + public function testLinkBecomesAnObject(): void { + $stored = json_encode(['title' => 'Nextcloud', 'value' => 'https://nextcloud.com', 'providerId' => 'url']); + $this->assertSame( + ['title' => 'Nextcloud', 'url' => 'https://nextcloud.com', 'providerId' => 'url'], + $this->serializer->serialize($this->row([4 => $stored]))['website'], + ); + } + + public function testRelationBecomesTheUuidOfItsTarget(): void { + $this->rowSleeveMapper->expects($this->once())->method('findUuidsByIds')->with([42, 43])->willReturn([42 => self::TARGET_UUID]); + $objects = $this->serializer->serializeAll([$this->row([5 => 42]), $this->row([5 => 43])]); + $this->assertSame(self::TARGET_UUID, $objects[0]['project']); + // a target without a uuid yet keeps its row id instead of losing the relation + $this->assertSame(43, $objects[1]['project']); + } + + public function testOtherValuesAndEmptyCells(): void { + $object = $this->serializer->serialize($this->row([1 => 'Alice', 6 => 'true', 7 => 42, 2 => ''])); + $this->assertSame('Alice', $object['name']); + $this->assertSame('true', $object['is_active']); + $this->assertSame(42, $object['age']); + $this->assertNull($object['meeting']); + } +} From 245f4e92a8505899575ed5e8555477df1a0a39e9 Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Wed, 18 Nov 2026 14:32:02 +0100 Subject: [PATCH 10/62] fix(rows): give the object shape a key per column and @self in UTC - Every column a row is read with gets a property, null when the row has no cell for it. Row2 now carries the columns of its alias payload, narrowed by fields and view like the payload itself, so the serializer no longer loads the columns a second time. - @self is kept when a column has the same key, its times are in UTC as stored, so they can be used as they are in the createdAt and updatedAt filters, and it names the editor updatedBy/updatedAt like those filters. An empty creator stays null instead of "". - A relation is the uuid of the target row, its row id while the target has no uuid yet, and null when the target no longer exists: findUuidsByIds now returns null for an existing row without a uuid. - Stored datetimes with an unknown format are logged once per call. - The shape parameter documents the object shape; the tests cover the daylight saving gap and call getRow without a shape. Refs #3096 Assisted-by: ClaudeCode:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 Signed-off-by: Robert Zondervan --- lib/Controller/RowOCSController.php | 4 +- lib/Db/Row2.php | 23 ++++ lib/Db/RowSleeveMapper.php | 7 +- lib/ResponseDefinitions.php | 6 +- lib/Service/RowObjectSerializer.php | 124 ++++++++++-------- lib/Service/RowService.php | 15 ++- openapi.json | 18 +-- src/types/openapi/openapi.ts | 10 +- .../unit/Controller/RowOCSControllerTest.php | 1 + tests/unit/Db/RowSleeveMapperTest.php | 21 +-- .../unit/Service/RowObjectSerializerTest.php | 75 +++++++++-- tests/unit/Service/RowServiceFindPageTest.php | 10 ++ 12 files changed, 207 insertions(+), 107 deletions(-) diff --git a/lib/Controller/RowOCSController.php b/lib/Controller/RowOCSController.php index f827c795a3..aac4472ddb 100644 --- a/lib/Controller/RowOCSController.php +++ b/lib/Controller/RowOCSController.php @@ -130,7 +130,7 @@ public function createRow(string $nodeCollection, int $nodeId, mixed $data): Dat * @param string|null $search Text to look for in the text cells and the selection labels * @param string|null $fields Comma separated technical names or column ids of the columns to return, the metadata of a row is always returned * @param array>|null $filter Filters as filter[field]=value or filter[field][operator]=value, all of which must match. A deep object in the query string (for example filter[age][is-greater-than]=30&filter[name]=jane), shown as a string because the API description cannot express nested query parameters. field is a technical name, a column id or a meta field; operator is one of the view filter operators that fit the field's type (without one: is-equal, or contains-item on multi-value columns; long and rich text need an operator such as contains); a value is compared as given and written as the column stores it: a decimal number; a row id for relations and id; YYYY-MM-DD HH:MM for date and time columns, YYYY-MM-DD for date columns, HH:MM for time columns; YYYY-MM-DD with an optional HH:MM or HH:MM:SS, after a space or a T, for createdAt and updatedAt, an exact moment, so compare those with is-greater-than and is-lower-than rather than is-equal; an option id for selections; true or false for checkboxes; a user, group or team id for usergroup columns - * @param 'cells'|'object'|null $shape The shape of the returned rows, defaults to "cells" + * @param 'cells'|'object'|null $shape The shape of the returned rows, defaults to "cells". With "object" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC * @return DataResponse|DataResponse * * 200: Rows returned @@ -193,7 +193,7 @@ public function getRows( * @param 'tables'|'views' $nodeCollection Indicates whether to get a row from a table or view * @param int $nodeId The identifier of the targeted table or view * @param string $rowId The identifier of the row, either its integer id or its uuid - * @param 'cells'|'object'|null $shape The shape of the returned row, defaults to "cells" + * @param 'cells'|'object'|null $shape The shape of the returned row, defaults to "cells". With "object" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC * @return DataResponse|DataResponse * * 200: Row returned diff --git a/lib/Db/Row2.php b/lib/Db/Row2.php index ce497d1590..e41d946aa6 100644 --- a/lib/Db/Row2.php +++ b/lib/Db/Row2.php @@ -26,6 +26,8 @@ class Row2 implements JsonSerializable { private ?array $data = []; /** @var array */ private array $dataByAlias = []; + /** @var array the columns the alias payload covers, by alias; not serialized */ + private array $columnsByAlias = []; private array $changedColumnIds = []; // collect column ids that have changed after $loaded = true private bool $loaded = false; // set to true if model is loaded, after that changed column ids will be collected @@ -97,6 +99,23 @@ public function setDataByAlias(array $dataByAlias): void { $this->dataByAlias = $dataByAlias; } + /** + * The columns the alias payload covers, by alias, including the columns that have no + * stored cell in this row. + * + * @return array + */ + public function getColumnsByAlias(): array { + return $this->columnsByAlias; + } + + /** + * @param array $columnsByAlias + */ + public function setColumnsByAlias(array $columnsByAlias): void { + $this->columnsByAlias = $columnsByAlias; + } + /** * @param RowDataInput|list $data * @return void @@ -164,6 +183,10 @@ public function filterDataByAliasByColumns(array $columns): array { $this->dataByAlias, static fn (array $cell): bool => in_array($cell['columnId'], $columns, true), ); + $this->columnsByAlias = array_filter( + $this->columnsByAlias, + static fn (Column $column): bool => in_array($column->getId(), $columns, true), + ); return $this->dataByAlias; } diff --git a/lib/Db/RowSleeveMapper.php b/lib/Db/RowSleeveMapper.php index 3ebe7bdbc3..c4a22580b8 100644 --- a/lib/Db/RowSleeveMapper.php +++ b/lib/Db/RowSleeveMapper.php @@ -114,22 +114,21 @@ public function findIdByUuid(string $uuid, ?int $tableId = null): ?int { /** * @param int[] $ids - * @return array the uuid per row id, rows without a uuid are left out + * @return array the uuid per row id of the rows that exist, null for a row that has no uuid yet * @throws Exception */ public function findUuidsByIds(array $ids): array { $qb = $this->db->getQueryBuilder(); $qb->select('id', 'uuid') ->from($this->table) - ->where($qb->expr()->in('id', $qb->createParameter('chunk'))) - ->andWhere($qb->expr()->isNotNull('uuid')); + ->where($qb->expr()->in('id', $qb->createParameter('chunk'))); $uuids = []; foreach (array_chunk(array_values(array_unique($ids)), self::DB_CHUNK_SIZE) as $chunk) { $qb->setParameter('chunk', $chunk, IQueryBuilder::PARAM_INT_ARRAY); $result = $qb->executeQuery(); while ($row = $result->fetchAssociative()) { - $uuids[(int)$row['id']] = (string)$row['uuid']; + $uuids[(int)$row['id']] = $row['uuid'] === null ? null : (string)$row['uuid']; } $result->closeCursor(); } diff --git a/lib/ResponseDefinitions.php b/lib/ResponseDefinitions.php index 5afce6cc2d..59d11f20ac 100644 --- a/lib/ResponseDefinitions.php +++ b/lib/ResponseDefinitions.php @@ -109,10 +109,10 @@ * id: ?string, * rowId: int, * tableId: int, - * createdBy: string, + * createdBy: ?string, * createdAt: ?string, - * lastEditBy: string, - * lastEditAt: ?string, + * updatedBy: ?string, + * updatedAt: ?string, * } * * @psalm-type TablesRowLink = array{ diff --git a/lib/Service/RowObjectSerializer.php b/lib/Service/RowObjectSerializer.php index 5ad78392d3..837cdabba8 100644 --- a/lib/Service/RowObjectSerializer.php +++ b/lib/Service/RowObjectSerializer.php @@ -13,7 +13,6 @@ use DateTimeInterface; use DateTimeZone; use OCA\Tables\Db\Column; -use OCA\Tables\Db\ColumnMapper; use OCA\Tables\Db\Row2; use OCA\Tables\Db\RowSleeveMapper; use OCA\Tables\Errors\InternalError; @@ -23,8 +22,9 @@ use Psr\Log\LoggerInterface; /** - * Turns rows into the object shape of api/2: one property per column, keyed by its - * technical name, and the metadata in `@self`. + * Turns rows into the object shape of api/2: one property per column the row is read + * with, keyed by its technical name and null when the row has no value for it, and the + * metadata in `@self`. * * @psalm-import-type TablesRowObject from ResponseDefinitions * @psalm-import-type TablesRowSelf from ResponseDefinitions @@ -32,8 +32,10 @@ class RowObjectSerializer { private const STORED_DATETIME_FORMATS = ['Y-m-d H:i:s', 'Y-m-d H:i']; + /** @var list the stored datetimes of the current call that have an unknown format */ + private array $unknownDatetimes = []; + public function __construct( - private readonly ColumnMapper $columnMapper, private readonly RowSleeveMapper $rowSleeveMapper, private readonly InstanceTimezone $instanceTimezone, private readonly LoggerInterface $logger, @@ -54,24 +56,43 @@ public function serialize(Row2 $row): array { * @throws InternalError */ public function serializeAll(array $rows): array { - $columnsById = $this->loadColumns($rows); - $relationUuids = $this->loadRelationTargetUuids($rows, $columnsById); + $this->takeUnknownDatetimes(); + $relationTargets = $this->loadRelationTargets($rows); $objects = []; foreach ($rows as $row) { - $object = ['@self' => $this->self($row)]; - foreach ($row->getDataByAlias() as $alias => $cell) { - $column = $columnsById[$cell['columnId']] ?? null; - $object[$alias] = $column === null - ? $cell['value'] - : $this->value($column, $cell['value'], $relationUuids); + $dataByAlias = $row->getDataByAlias(); + $values = []; + foreach ($row->getColumnsByAlias() as $alias => $column) { + $values[$alias] = $this->value($column, $dataByAlias[$alias]['value'] ?? null, $relationTargets); } - $objects[] = $object; + // the union keeps @self when a column has the same key + $objects[] = ['@self' => $this->self($row)] + $values; + } + + $unknownDatetimes = $this->takeUnknownDatetimes(); + if ($unknownDatetimes !== []) { + $this->logger->warning('Stored datetimes have an unknown format', [ + 'count' => count($unknownDatetimes), + 'example' => $unknownDatetimes[0], + ]); } return $objects; } /** + * @return list the stored datetimes with an unknown format collected since the last call + */ + private function takeUnknownDatetimes(): array { + $unknownDatetimes = $this->unknownDatetimes; + $this->unknownDatetimes = []; + return $unknownDatetimes; + } + + /** + * The metadata, with the times in UTC as they are stored, so that they can be used as + * they are in the createdAt and updatedAt filters and sort of the listing. + * * @return TablesRowSelf */ private function self(Row2 $row): array { @@ -80,35 +101,52 @@ private function self(Row2 $row): array { 'id' => $row->getUuid(), 'rowId' => (int)$row->getId(), 'tableId' => (int)$row->getTableId(), - 'createdBy' => (string)$row->getCreatedBy(), + 'createdBy' => $row->getCreatedBy(), 'createdAt' => $this->isoDatetime($row->getCreatedAt(), $utc), - 'lastEditBy' => (string)$row->getLastEditBy(), - 'lastEditAt' => $this->isoDatetime($row->getLastEditAt(), $utc), + 'updatedBy' => $row->getLastEditBy(), + 'updatedAt' => $this->isoDatetime($row->getLastEditAt(), $utc), ]; } /** - * @param array $relationUuids + * @param array $relationTargets the uuid per existing target row id, null while it has none */ - private function value(Column $column, mixed $value, array $relationUuids): mixed { + private function value(Column $column, mixed $value, array $relationTargets): mixed { if ($value === null || $value === '') { return null; } return match (true) { $this->isPlainDatetime($column) => $this->isoDatetime((string)$value, $this->instanceTimezone->get()) ?? $value, $column->getType() === Column::TYPE_TEXT && $column->getSubtype() === Column::SUBTYPE_TEXT_LINK => $this->link($value), - $column->getType() === Column::TYPE_RELATION => $relationUuids[(int)$value] ?? (int)$value, + $column->getType() === Column::TYPE_RELATION => $this->relation((int)$value, $relationTargets), default => $value, }; } + /** + * The uuid of the target row; its row id while the target has no uuid yet (rows created + * before uuids get theirs from a background job); null when the target row no longer + * exists. + * + * @param array $relationTargets + */ + private function relation(int $targetRowId, array $relationTargets): string|int|null { + if (!array_key_exists($targetRowId, $relationTargets)) { + return null; + } + return $relationTargets[$targetRowId] ?? $targetRowId; + } + private function isPlainDatetime(Column $column): bool { return $column->getType() === Column::TYPE_DATETIME && !in_array($column->getSubtype(), [Column::SUBTYPE_DATETIME_DATE, Column::SUBTYPE_DATETIME_TIME], true); } /** - * A naive stored datetime, read in the given timezone, as ISO 8601 with its offset. + * A naive stored datetime, read in the given timezone, as ISO 8601 with its offset. A + * time in the gap of a daylight saving change does not exist; it is read as the moment + * the clock jumps to, one hour later (02:30 in Europe/Amsterdam on the last Sunday of + * March becomes 03:30+02:00). */ private function isoDatetime(?string $stored, DateTimeZone $timezone): ?string { if ($stored === null || $stored === '') { @@ -117,10 +155,10 @@ private function isoDatetime(?string $stored, DateTimeZone $timezone): ?string { foreach (self::STORED_DATETIME_FORMATS as $format) { $dateTime = DateTimeImmutable::createFromFormat('!' . $format, $stored, $timezone); if ($dateTime !== false) { - return $dateTime->setTimezone($this->instanceTimezone->get())->format(DateTimeInterface::ATOM); + return $dateTime->format(DateTimeInterface::ATOM); } } - $this->logger->warning('Stored datetime has an unknown format', ['value' => $stored]); + $this->unknownDatetimes[] = $stored; return null; } @@ -141,45 +179,17 @@ private function link(mixed $value): mixed { /** * @param Row2[] $rows - * @return array - * @throws InternalError - */ - private function loadColumns(array $rows): array { - $columnIds = []; - foreach ($rows as $row) { - foreach ($row->getDataByAlias() as $cell) { - $columnIds[$cell['columnId']] = true; - } - } - if ($columnIds === []) { - return []; - } - try { - $columns = $this->columnMapper->findAll(array_keys($columnIds)); - } catch (Exception $e) { - $this->logger->error($e->getMessage(), ['exception' => $e]); - throw new InternalError(static::class . ' - ' . __FUNCTION__ . ': ' . $e->getMessage()); - } - $columnsById = []; - foreach ($columns as $column) { - $columnsById[$column->getId()] = $column; - } - return $columnsById; - } - - /** - * @param Row2[] $rows - * @param array $columnsById - * @return array the uuid per target row id + * @return array the uuid per existing target row id, null while it has none * @throws InternalError */ - private function loadRelationTargetUuids(array $rows, array $columnsById): array { + private function loadRelationTargets(array $rows): array { $targetRowIds = []; foreach ($rows as $row) { - foreach ($row->getDataByAlias() as $cell) { - $column = $columnsById[$cell['columnId']] ?? null; - if ($column?->getType() === Column::TYPE_RELATION && is_numeric($cell['value'])) { - $targetRowIds[] = (int)$cell['value']; + $dataByAlias = $row->getDataByAlias(); + foreach ($row->getColumnsByAlias() as $alias => $column) { + $value = $dataByAlias[$alias]['value'] ?? null; + if ($column->getType() === Column::TYPE_RELATION && is_numeric($value)) { + $targetRowIds[] = (int)$value; } } } diff --git a/lib/Service/RowService.php b/lib/Service/RowService.php index 615cb19b10..14e8054e64 100644 --- a/lib/Service/RowService.php +++ b/lib/Service/RowService.php @@ -216,11 +216,11 @@ public function findPage(RowListQuery $query, ?int $tableId, ?int $viewId, strin $filterUserId, ); $this->attachAliasPayloads($rows, $columns); - if ($isMetadataOnly) { - foreach ($rows as $row) { + foreach ($rows as $row) { + if ($isMetadataOnly) { $row->filterDataByColumns([]); - $row->filterDataByAliasByColumns([]); } + $row->filterDataByAliasByColumns($criteria['columnIds']); } return ['rows' => $rows, 'total' => $total]; } @@ -1153,14 +1153,19 @@ private function attachAliasPayloads(array $rows, array $columns): void { * @param Column[] $columns */ private function attachAliasPayload(Row2 $row, array $columns): void { + $aliasByColumnId = $this->buildAliasByColumnId($columns); + $columnsByAlias = []; + foreach ($columns as $column) { + $columnsByAlias[$aliasByColumnId[$column->getId()] ?? ('column_' . $column->getId())] = $column; + } + $row->setColumnsByAlias($columnsByAlias); + $data = $row->getData() ?? []; if ($data === []) { $row->setDataByAlias([]); return; } - $aliasByColumnId = $this->buildAliasByColumnId($columns); - $dataByAlias = []; foreach ($data as $cell) { $columnId = (int)$cell['columnId']; diff --git a/openapi.json b/openapi.json index fbaf0fd7c0..a20142ab75 100644 --- a/openapi.json +++ b/openapi.json @@ -947,8 +947,8 @@ "tableId", "createdBy", "createdAt", - "lastEditBy", - "lastEditAt" + "updatedBy", + "updatedAt" ], "properties": { "id": { @@ -964,16 +964,18 @@ "format": "int64" }, "createdBy": { - "type": "string" + "type": "string", + "nullable": true }, "createdAt": { "type": "string", "nullable": true }, - "lastEditBy": { - "type": "string" + "updatedBy": { + "type": "string", + "nullable": true }, - "lastEditAt": { + "updatedAt": { "type": "string", "nullable": true } @@ -16816,7 +16818,7 @@ { "name": "shape", "in": "query", - "description": "The shape of the returned rows, defaults to \"cells\"", + "description": "The shape of the returned rows, defaults to \"cells\". With \"object\" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC", "schema": { "type": "string", "nullable": true, @@ -17111,7 +17113,7 @@ { "name": "shape", "in": "query", - "description": "The shape of the returned row, defaults to \"cells\"", + "description": "The shape of the returned row, defaults to \"cells\". With \"object\" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC", "schema": { "type": "string", "nullable": true, diff --git a/src/types/openapi/openapi.ts b/src/types/openapi/openapi.ts index d44fb90af7..7deb3128b4 100644 --- a/src/types/openapi/openapi.ts +++ b/src/types/openapi/openapi.ts @@ -1389,10 +1389,10 @@ export type components = { readonly rowId: number; /** Format: int64 */ readonly tableId: number; - readonly createdBy: string; + readonly createdBy: string | null; readonly createdAt: string | null; - readonly lastEditBy: string; - readonly lastEditAt: string | null; + readonly updatedBy: string | null; + readonly updatedAt: string | null; }; readonly RowUsergroup: { readonly id: string; @@ -8821,7 +8821,7 @@ export interface operations { readonly fields?: string | null; /** @description Filters as filter[field]=value or filter[field][operator]=value, all of which must match. A deep object in the query string (for example filter[age][is-greater-than]=30&filter[name]=jane), shown as a string because the API description cannot express nested query parameters. field is a technical name, a column id or a meta field; operator is one of the view filter operators that fit the field's type (without one: is-equal, or contains-item on multi-value columns; long and rich text need an operator such as contains); a value is compared as given and written as the column stores it: a decimal number; a row id for relations and id; YYYY-MM-DD HH:MM for date and time columns, YYYY-MM-DD for date columns, HH:MM for time columns; YYYY-MM-DD with an optional HH:MM or HH:MM:SS, after a space or a T, for createdAt and updatedAt, an exact moment, so compare those with is-greater-than and is-lower-than rather than is-equal; an option id for selections; true or false for checkboxes; a user, group or team id for usergroup columns */ readonly filter?: string | null; - /** @description The shape of the returned rows, defaults to "cells" */ + /** @description The shape of the returned rows, defaults to "cells". With "object" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC */ readonly shape?: "cells" | "object" | null; }; readonly header: { @@ -9055,7 +9055,7 @@ export interface operations { readonly "rowocs-get-row": { readonly parameters: { readonly query?: { - /** @description The shape of the returned row, defaults to "cells" */ + /** @description The shape of the returned row, defaults to "cells". With "object" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC */ readonly shape?: "cells" | "object" | null; }; readonly header: { diff --git a/tests/unit/Controller/RowOCSControllerTest.php b/tests/unit/Controller/RowOCSControllerTest.php index 3556f1ab0f..e9c672cb1b 100644 --- a/tests/unit/Controller/RowOCSControllerTest.php +++ b/tests/unit/Controller/RowOCSControllerTest.php @@ -266,6 +266,7 @@ public function testCellsShapeIsTheDefault(): void { $this->rowService->method('findInNode')->willReturn($this->row(7)); $this->rowObjectSerializer->expects($this->never())->method('serialize'); + $this->assertSame(self::UUID, $this->controller->getRow('tables', 3, '7')->getData()['uuid']); $this->assertSame(self::UUID, $this->controller->getRow('tables', 3, '7', 'cells')->getData()['uuid']); } diff --git a/tests/unit/Db/RowSleeveMapperTest.php b/tests/unit/Db/RowSleeveMapperTest.php index 6448625ec3..b93eb3f578 100644 --- a/tests/unit/Db/RowSleeveMapperTest.php +++ b/tests/unit/Db/RowSleeveMapperTest.php @@ -115,13 +115,13 @@ public function testFindUuidsByIdsReturnsTheUuidPerRowId(): void { $first = $this->insertSleeve($tableId); $second = $this->insertSleeve($tableId); - $this->assertEqualsCanonicalizing( - [$first->getId() => $first->getUuid(), $second->getId() => $second->getUuid()], - $this->mapper->findUuidsByIds([$first->getId(), $second->getId(), $first->getId()]), - ); + $uuids = $this->mapper->findUuidsByIds([$first->getId(), $second->getId(), $first->getId()]); + + ksort($uuids); + $this->assertSame([$first->getId() => $first->getUuid(), $second->getId() => $second->getUuid()], $uuids); } - public function testFindUuidsByIdsLeavesOutRowsWithoutAUuid(): void { + public function testFindUuidsByIdsGivesNullForARowWithoutAUuidAndLeavesOutMissingRows(): void { $tableId = $this->createTable(); $withUuid = $this->insertSleeve($tableId); $withoutUuid = $this->insertSleeve($tableId); @@ -131,10 +131,10 @@ public function testFindUuidsByIdsLeavesOutRowsWithoutAUuid(): void { ->where($qb->expr()->eq('id', $qb->createNamedParameter($withoutUuid->getId()))) ->executeStatement(); - $this->assertSame( - [$withUuid->getId() => $withUuid->getUuid()], - $this->mapper->findUuidsByIds([$withUuid->getId(), $withoutUuid->getId()]), - ); + $uuids = $this->mapper->findUuidsByIds([$withUuid->getId(), $withoutUuid->getId(), $withoutUuid->getId() + 1000]); + + ksort($uuids); + $this->assertSame([$withUuid->getId() => $withUuid->getUuid(), $withoutUuid->getId() => null], $uuids); } public function testFindUuidsByIdsReadsEveryChunk(): void { @@ -145,6 +145,7 @@ public function testFindUuidsByIdsReadsEveryChunk(): void { $uuids = $this->mapper->findUuidsByIds([$first->getId(), ...$missingIds, $last->getId()]); - $this->assertEqualsCanonicalizing([$first->getId() => $first->getUuid(), $last->getId() => $last->getUuid()], $uuids); + ksort($uuids); + $this->assertSame([$first->getId() => $first->getUuid(), $last->getId() => $last->getUuid()], $uuids); } } diff --git a/tests/unit/Service/RowObjectSerializerTest.php b/tests/unit/Service/RowObjectSerializerTest.php index 8d95fdbde6..77081f7bee 100644 --- a/tests/unit/Service/RowObjectSerializerTest.php +++ b/tests/unit/Service/RowObjectSerializerTest.php @@ -10,7 +10,6 @@ namespace OCA\Tables\Tests\Unit\Service; use OCA\Tables\Db\Column; -use OCA\Tables\Db\ColumnMapper; use OCA\Tables\Db\Row2; use OCA\Tables\Db\RowSleeveMapper; use OCA\Tables\Helper\InstanceTimezone; @@ -25,6 +24,7 @@ class RowObjectSerializerTest extends TestCase { private const TARGET_UUID = '0199f1a0-0000-7000-8000-000000000042'; private RowSleeveMapper&MockObject $rowSleeveMapper; + private LoggerInterface&MockObject $logger; private InstanceTimezone $instanceTimezone; private RowObjectSerializer $serializer; /** @var array */ @@ -44,12 +44,9 @@ protected function setUp(): void { 6 => $this->column(6, Column::TYPE_SELECTION, Column::SUBTYPE_SELECTION_CHECK, 'is_active'), 7 => $this->column(7, Column::TYPE_NUMBER, '', 'age'), ]; - $columnMapper = $this->createMock(ColumnMapper::class); - $columnMapper->method('findAll')->willReturnCallback( - fn (array $ids): array => array_values(array_intersect_key($this->columns, array_flip($ids))), - ); $this->rowSleeveMapper = $this->createMock(RowSleeveMapper::class); - $this->serializer = new RowObjectSerializer($columnMapper, $this->rowSleeveMapper, $this->instanceTimezone, $this->createMock(LoggerInterface::class)); + $this->logger = $this->createMock(LoggerInterface::class); + $this->serializer = new RowObjectSerializer($this->rowSleeveMapper, $this->instanceTimezone, $this->logger); } private function column(int $id, string $type, string $subtype, string $technicalName): Column { @@ -62,9 +59,12 @@ private function column(int $id, string $type, string $subtype, string $technica } /** + * A row read with the given columns (all columns by default), holding cells for the given values. + * * @param array $valuesByColumnId + * @param int[]|null $columnIds */ - private function row(array $valuesByColumnId): Row2 { + private function row(array $valuesByColumnId, ?array $columnIds = null): Row2 { $row = new Row2(); $row->setId(12); $row->setUuid(self::ROW_UUID); @@ -73,6 +73,11 @@ private function row(array $valuesByColumnId): Row2 { $row->setCreatedAt('2026-10-16 12:30:00'); $row->setLastEditBy('bob'); $row->setLastEditAt('2026-01-16 08:00:00'); + $columnsByAlias = []; + foreach ($columnIds ?? array_keys($this->columns) as $columnId) { + $columnsByAlias[$this->columns[$columnId]->getTechnicalName()] = $this->columns[$columnId]; + } + $row->setColumnsByAlias($columnsByAlias); $dataByAlias = []; foreach ($valuesByColumnId as $columnId => $value) { $dataByAlias[$this->columns[$columnId]->getTechnicalName()] = ['columnId' => $columnId, 'value' => $value]; @@ -81,24 +86,61 @@ private function row(array $valuesByColumnId): Row2 { return $row; } - public function testSelfCarriesTheMetadataWithTheUuidAsId(): void { + public function testSelfCarriesTheMetadataInUtcWithTheUuidAsId(): void { $this->assertSame([ 'id' => self::ROW_UUID, 'rowId' => 12, 'tableId' => 3, 'createdBy' => 'alice', - 'createdAt' => '2026-10-16T14:30:00+02:00', - 'lastEditBy' => 'bob', - 'lastEditAt' => '2026-01-16T09:00:00+01:00', + 'createdAt' => '2026-10-16T12:30:00+00:00', + 'updatedBy' => 'bob', + 'updatedAt' => '2026-01-16T08:00:00+00:00', ], $this->serializer->serialize($this->row([]))['@self']); } + public function testEveryColumnHasAPropertyAlsoWithoutAStoredCell(): void { + $object = $this->serializer->serialize($this->row([1 => 'Alice'])); + + $this->assertSame(['@self', 'name', 'meeting', 'birthday', 'website', 'project', 'is_active', 'age'], array_keys($object)); + $this->assertSame('Alice', $object['name']); + $this->assertNull($object['age']); + } + + public function testOnlyTheColumnsTheRowIsReadWithArePresent(): void { + $object = $this->serializer->serialize($this->row([1 => 'Alice', 7 => 42], [7])); + + $this->assertSame(['@self', 'age'], array_keys($object)); + } + + public function testAColumnNamedLikeTheMetadataDoesNotReplaceIt(): void { + $row = $this->row([]); + $row->setColumnsByAlias(['@self' => $this->columns[1]]); + $row->setDataByAlias(['@self' => ['columnId' => 1, 'value' => 'Alice']]); + + $this->assertSame(self::ROW_UUID, $this->serializer->serialize($row)['@self']['id']); + } + public function testDatetimesGetTheOffsetOfTheInstanceTimezone(): void { $object = $this->serializer->serialize($this->row([2 => '2026-10-16 14:30', 3 => '2026-10-16'])); $this->assertSame('2026-10-16T14:30:00+02:00', $object['meeting']); $this->assertSame('2026-10-16', $object['birthday']); } + public function testADatetimeInTheDaylightSavingGapIsReadAsTheMomentAfterTheJump(): void { + $object = $this->serializer->serialize($this->row([2 => '2026-03-29 02:30'])); + $this->assertSame('2026-03-29T03:30:00+02:00', $object['meeting']); + } + + public function testUnknownDatetimeFormatsAreLoggedOncePerCall(): void { + $this->logger->expects($this->once()) + ->method('warning') + ->with($this->anything(), $this->callback(static fn (array $context): bool => $context['count'] === 2 && $context['example'] === 'soon')); + + $objects = $this->serializer->serializeAll([$this->row([2 => 'soon']), $this->row([2 => 'later'])]); + + $this->assertSame('soon', $objects[0]['meeting']); + } + public function testLinkBecomesAnObject(): void { $stored = json_encode(['title' => 'Nextcloud', 'value' => 'https://nextcloud.com', 'providerId' => 'url']); $this->assertSame( @@ -108,11 +150,18 @@ public function testLinkBecomesAnObject(): void { } public function testRelationBecomesTheUuidOfItsTarget(): void { - $this->rowSleeveMapper->expects($this->once())->method('findUuidsByIds')->with([42, 43])->willReturn([42 => self::TARGET_UUID]); - $objects = $this->serializer->serializeAll([$this->row([5 => 42]), $this->row([5 => 43])]); + $this->rowSleeveMapper->expects($this->once()) + ->method('findUuidsByIds') + ->with([42, 43, 44]) + ->willReturn([42 => self::TARGET_UUID, 43 => null]); + + $objects = $this->serializer->serializeAll([$this->row([5 => 42]), $this->row([5 => 43]), $this->row([5 => 44])]); + $this->assertSame(self::TARGET_UUID, $objects[0]['project']); // a target without a uuid yet keeps its row id instead of losing the relation $this->assertSame(43, $objects[1]['project']); + // a target that no longer exists is no relation + $this->assertNull($objects[2]['project']); } public function testOtherValuesAndEmptyCells(): void { diff --git a/tests/unit/Service/RowServiceFindPageTest.php b/tests/unit/Service/RowServiceFindPageTest.php index bce6d1deb9..5d32b9b52f 100644 --- a/tests/unit/Service/RowServiceFindPageTest.php +++ b/tests/unit/Service/RowServiceFindPageTest.php @@ -231,6 +231,7 @@ public function testFieldsLimitTheReturnedColumns(): void { $found = $this->rowService->findPage($this->query(['fields' => 'name', 'sort' => 'name', 'limit' => '1']), self::$testTableId, null, 'test_user'); $this->assertSame([$this->columnsByName['name']->getId()], array_column($found['rows'][0]->getData(), 'columnId')); + $this->assertSame(['name'], array_keys($found['rows'][0]->getColumnsByAlias())); } public function testOnlyMetadataStillReturnsTheRows(): void { @@ -238,6 +239,15 @@ public function testOnlyMetadataStillReturnsTheRows(): void { $this->assertCount(5, $found['rows']); $this->assertSame([], $found['rows'][0]->getData()); + $this->assertSame([], $found['rows'][0]->getColumnsByAlias()); + } + + public function testEveryReturnedColumnIsCarriedWithTheRow(): void { + $found = $this->rowService->findPage($this->query([]), self::$testTableId, null, 'test_user'); + + foreach ($found['rows'] as $row) { + $this->assertSame(array_keys($this->columnsByName), array_keys($row->getColumnsByAlias())); + } } public function testARequestFilterNeverWidensTheView(): void { From b302685b97e37b4e0d868d6385b8ffc529248d32 Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Wed, 18 Nov 2026 14:32:02 +0100 Subject: [PATCH 11/62] test(rows): read rows in the object shape through the API A Behat scenario lists a table with ?shape=object and checks the uuid in @self, a value per column and null for a column without a value. Refs #3096 Assisted-by: ClaudeCode:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 Signed-off-by: Robert Zondervan --- tests/integration/features/APIv2.feature | 23 ++++++++++++++++ .../features/bootstrap/FeatureContext.php | 26 +++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/tests/integration/features/APIv2.feature b/tests/integration/features/APIv2.feature index 1c40674eca..95afdb037a 100644 --- a/tests/integration/features/APIv2.feature +++ b/tests/integration/features/APIv2.feature @@ -641,6 +641,29 @@ Feature: APIv2 | five | [{"id": "admin", "type": 0}] | Then the reported status is 200 + @api2 @rows + Scenario: Read rows via v2 in the object shape + Given table "Object shape" with emoji "🧩" exists for user "participant1-v2" as "base1" via v2 + And column "one" exists with following properties + | type | text | + | subtype | line | + | mandatory | 0 | + And column "two" exists with following properties + | type | number | + | mandatory | 0 | + And column "four" exists with following properties + | type | datetime | + | subtype | date | + | mandatory | 0 | + When row exists using v2 with following values + | one | AHA | + | four | 2023-12-24 | + And the rows of the table are listed using v2 in the object shape + Then the object of the last created row has following values + | one | "AHA" | + | two | null | + | four | "2023-12-24" | + @api2 @rows Scenario: Try to create rows via v2 with permissions Given table "Rows check" with emoji "👨🏻‍💻" exists for user "participant1-v2" as "base1" via v2 diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php index 4f6340767f..c23ee0cc15 100644 --- a/tests/integration/features/bootstrap/FeatureContext.php +++ b/tests/integration/features/bootstrap/FeatureContext.php @@ -1733,6 +1733,32 @@ public function createRowV2(TableNode $properties): void { } } + /** + * @When the rows of the table are listed using v2 in the object shape + */ + public function listRowsV2InTheObjectShape(): void { + $this->sendOcsRequest('GET', '/apps/tables/api/2/tables/' . $this->tableId . '/rows?shape=object'); + Assert::assertEquals(200, $this->response->getStatusCode()); + } + + /** + * @Then the object of the last created row has following values + * + * @param TableNode $properties column aliases and the expected value as JSON + */ + public function theObjectOfTheLastCreatedRowHas(TableNode $properties): void { + $objects = $this->getDataFromResponse($this->response)['ocs']['data']['results']; + $matching = array_values(array_filter($objects, fn (array $object): bool => $object['@self']['rowId'] === $this->rowId)); + Assert::assertCount(1, $matching); + $object = $matching[0]; + Assert::assertMatchesRegularExpression('/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/', $object['@self']['id']); + foreach ($properties->getRows() as $row) { + $technicalName = $this->collectionManager->getByAlias('column', $row[0])['technicalName']; + Assert::assertArrayHasKey($technicalName, $object); + Assert::assertSame(json_decode($row[1], true), $object[$technicalName]); + } + } + /** * @Then row exists with following values via legacy interface * From ff1ce2d358714bffe36127bd043263a90ce27d83 Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Wed, 18 Nov 2026 14:41:42 +0100 Subject: [PATCH 12/62] perf(rows): share the alias maps between the rows of one listing The columns a row carries were built again for every row, also on the full listings of the frontend and API v1 that never use the object shape. The rows of one call now share the same maps. A test checks that a view's rows, listed and single, carry only the view's columns. Refs #3096 Assisted-by: ClaudeCode:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 Signed-off-by: Robert Zondervan --- lib/Service/RowService.php | 24 ++++++++++++++++++- tests/unit/Service/RowServiceFindPageTest.php | 17 +++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/lib/Service/RowService.php b/lib/Service/RowService.php index 14e8054e64..4035a7e30a 100644 --- a/lib/Service/RowService.php +++ b/lib/Service/RowService.php @@ -1144,8 +1144,10 @@ private function filterRowResult(?View $view, Row2 $row): Row2 { * @param Column[] $columns */ private function attachAliasPayloads(array $rows, array $columns): void { + $aliasByColumnId = $this->buildAliasByColumnId($columns); + $columnsByAlias = $this->buildColumnsByAlias($columns, $aliasByColumnId); foreach ($rows as $row) { - $this->attachAliasPayload($row, $columns); + $this->attachAliasPayloadByAlias($row, $aliasByColumnId, $columnsByAlias); } } @@ -1154,10 +1156,30 @@ private function attachAliasPayloads(array $rows, array $columns): void { */ private function attachAliasPayload(Row2 $row, array $columns): void { $aliasByColumnId = $this->buildAliasByColumnId($columns); + $this->attachAliasPayloadByAlias($row, $aliasByColumnId, $this->buildColumnsByAlias($columns, $aliasByColumnId)); + } + + /** + * @param Column[] $columns + * @param array $aliasByColumnId + * @return array + */ + private function buildColumnsByAlias(array $columns, array $aliasByColumnId): array { $columnsByAlias = []; foreach ($columns as $column) { $columnsByAlias[$aliasByColumnId[$column->getId()] ?? ('column_' . $column->getId())] = $column; } + return $columnsByAlias; + } + + /** + * The rows of one call share the same alias maps, so that a long listing does not hold + * a copy per row. + * + * @param array $aliasByColumnId + * @param array $columnsByAlias + */ + private function attachAliasPayloadByAlias(Row2 $row, array $aliasByColumnId, array $columnsByAlias): void { $row->setColumnsByAlias($columnsByAlias); $data = $row->getData() ?? []; diff --git a/tests/unit/Service/RowServiceFindPageTest.php b/tests/unit/Service/RowServiceFindPageTest.php index 5d32b9b52f..610b1da614 100644 --- a/tests/unit/Service/RowServiceFindPageTest.php +++ b/tests/unit/Service/RowServiceFindPageTest.php @@ -263,6 +263,23 @@ public function testARequestFilterNeverWidensTheView(): void { $this->assertSame(['names' => ['Alice', 'Eve'], 'total' => 2], $this->namesOf($found)); } + public function testAViewCarriesOnlyItsOwnColumnsWithItsRows(): void { + $view = new View(); + $view->setId(self::VIEW_ID); + $view->setTableId(self::$testTableId); + $view->setColumns(json_encode([$this->columnsByName['name']->getId(), $this->columnsByName['department']->getId()])); + $this->viewMapper->method('find')->willReturn($view); + + $found = $this->rowService->findPage($this->query(['sort' => 'name']), null, self::VIEW_ID, 'test_user'); + $this->assertNotSame([], $found['rows']); + foreach ($found['rows'] as $row) { + $this->assertSame(['name', 'department'], array_keys($row->getColumnsByAlias())); + } + + $single = $this->rowService->findInNode($found['rows'][0]->getId(), null, self::VIEW_ID, 'test_user'); + $this->assertSame(['name', 'department'], array_keys($single->getColumnsByAlias())); + } + public function testASearchInAViewWithoutSearchableColumnsReturnsNothing(): void { $view = new View(); $view->setId(self::VIEW_ID); From 5bed36b744a2aafc168d70c2b67aee79ecd512ee Mon Sep 17 00:00:00 2001 From: Nextcloud bot Date: Thu, 19 Nov 2026 02:10:41 +0000 Subject: [PATCH 13/62] fix(l10n): Update translations from Transifex [skip ci] Signed-off-by: Nextcloud bot --- l10n/af.js | 1 - l10n/af.json | 1 - l10n/ar.js | 1 - l10n/ar.json | 1 - l10n/ast.js | 1 - l10n/ast.json | 1 - l10n/az.js | 1 - l10n/az.json | 1 - l10n/be.js | 1 - l10n/be.json | 1 - l10n/bg.js | 1 - l10n/bg.json | 1 - l10n/bs.js | 1 - l10n/bs.json | 1 - l10n/ca.js | 1 - l10n/ca.json | 1 - l10n/cs.js | 1 - l10n/cs.json | 1 - l10n/cy_GB.js | 1 - l10n/cy_GB.json | 1 - l10n/da.js | 1 - l10n/da.json | 1 - l10n/de.js | 1 - l10n/de.json | 1 - l10n/de_DE.js | 1 - l10n/de_DE.json | 1 - l10n/el.js | 1 - l10n/el.json | 1 - l10n/en_GB.js | 1 - l10n/en_GB.json | 1 - l10n/eo.js | 1 - l10n/eo.json | 1 - l10n/es.js | 1 - l10n/es.json | 1 - l10n/es_419.js | 1 - l10n/es_419.json | 1 - l10n/es_AR.js | 1 - l10n/es_AR.json | 1 - l10n/es_CL.js | 1 - l10n/es_CL.json | 1 - l10n/es_CO.js | 1 - l10n/es_CO.json | 1 - l10n/es_CR.js | 1 - l10n/es_CR.json | 1 - l10n/es_DO.js | 1 - l10n/es_DO.json | 1 - l10n/es_EC.js | 1 - l10n/es_EC.json | 1 - l10n/es_GT.js | 1 - l10n/es_GT.json | 1 - l10n/es_HN.js | 1 - l10n/es_HN.json | 1 - l10n/es_MX.js | 1 - l10n/es_MX.json | 1 - l10n/es_NI.js | 1 - l10n/es_NI.json | 1 - l10n/es_PA.js | 1 - l10n/es_PA.json | 1 - l10n/es_PE.js | 1 - l10n/es_PE.json | 1 - l10n/es_PR.js | 1 - l10n/es_PR.json | 1 - l10n/es_PY.js | 1 - l10n/es_PY.json | 1 - l10n/es_SV.js | 1 - l10n/es_SV.json | 1 - l10n/es_UY.js | 1 - l10n/es_UY.json | 1 - l10n/et_EE.js | 1 - l10n/et_EE.json | 1 - l10n/eu.js | 1 - l10n/eu.json | 1 - l10n/fa.js | 1 - l10n/fa.json | 1 - l10n/fi.js | 1 - l10n/fi.json | 1 - l10n/fr.js | 71 +++++++++++++++++++++++++-- l10n/fr.json | 71 +++++++++++++++++++++++++-- l10n/ga.js | 1 - l10n/ga.json | 1 - l10n/gl.js | 1 - l10n/gl.json | 1 - l10n/he.js | 1 - l10n/he.json | 1 - l10n/hr.js | 1 - l10n/hr.json | 1 - l10n/hu.js | 1 - l10n/hu.json | 1 - l10n/ia.js | 1 - l10n/ia.json | 1 - l10n/id.js | 1 - l10n/id.json | 1 - l10n/is.js | 1 - l10n/is.json | 1 - l10n/it.js | 1 - l10n/it.json | 1 - l10n/ja.js | 1 - l10n/ja.json | 1 - l10n/ka.js | 1 - l10n/ka.json | 1 - l10n/ka_GE.js | 1 - l10n/ka_GE.json | 1 - l10n/kab.js | 1 - l10n/kab.json | 1 - l10n/ko.js | 1 - l10n/ko.json | 1 - l10n/lb.js | 1 - l10n/lb.json | 1 - l10n/lo.js | 1 - l10n/lo.json | 1 - l10n/lt_LT.js | 1 - l10n/lt_LT.json | 1 - l10n/lv.js | 1 - l10n/lv.json | 1 - l10n/mk.js | 1 - l10n/mk.json | 1 - l10n/mn.js | 1 - l10n/mn.json | 1 - l10n/nb.js | 1 - l10n/nb.json | 1 - l10n/nl.js | 1 - l10n/nl.json | 1 - l10n/nn_NO.js | 1 - l10n/nn_NO.json | 1 - l10n/oc.js | 1 - l10n/oc.json | 1 - l10n/pl.js | 1 - l10n/pl.json | 1 - l10n/pt_BR.js | 39 +++++++++++++-- l10n/pt_BR.json | 39 +++++++++++++-- l10n/pt_PT.js | 1 - l10n/pt_PT.json | 1 - l10n/ro.js | 1 - l10n/ro.json | 1 - l10n/ru.js | 1 - l10n/ru.json | 1 - l10n/sc.js | 1 - l10n/sc.json | 1 - l10n/sk.js | 1 - l10n/sk.json | 1 - l10n/sl.js | 1 - l10n/sl.json | 1 - l10n/sq.js | 1 - l10n/sq.json | 1 - l10n/sr.js | 1 - l10n/sr.json | 1 - l10n/sr@latin.js | 1 - l10n/sr@latin.json | 1 - l10n/sv.js | 1 - l10n/sv.json | 1 - l10n/sw.js | 1 - l10n/sw.json | 1 - l10n/th.js | 1 - l10n/th.json | 1 - l10n/tr.js | 116 +++++++++++++++++++++++++++++++++++++++++++-- l10n/tr.json | 116 +++++++++++++++++++++++++++++++++++++++++++-- l10n/ug.js | 1 - l10n/ug.json | 1 - l10n/uk.js | 1 - l10n/uk.json | 1 - l10n/uz.js | 1 - l10n/uz.json | 1 - l10n/vi.js | 1 - l10n/vi.json | 1 - l10n/zh_CN.js | 1 - l10n/zh_CN.json | 1 - l10n/zh_HK.js | 1 - l10n/zh_HK.json | 1 - l10n/zh_TW.js | 1 - l10n/zh_TW.json | 1 - 170 files changed, 430 insertions(+), 186 deletions(-) diff --git a/l10n/af.js b/l10n/af.js index 7e98e6f8c4..85f99ea0fb 100644 --- a/l10n/af.js +++ b/l10n/af.js @@ -50,7 +50,6 @@ OC.L10N.register( "Automatic" : "Outomaties", "Advanced settings" : "Gevorderde instellings", "Saving..." : "Stoor tans…", - "Export" : "Voer uit", "Favorites" : "Gunstelinge", "group" : "Groep", "Can edit" : "Kan redigeer", diff --git a/l10n/af.json b/l10n/af.json index f55b53ec95..84901154cd 100644 --- a/l10n/af.json +++ b/l10n/af.json @@ -48,7 +48,6 @@ "Automatic" : "Outomaties", "Advanced settings" : "Gevorderde instellings", "Saving..." : "Stoor tans…", - "Export" : "Voer uit", "Favorites" : "Gunstelinge", "group" : "Groep", "Can edit" : "Kan redigeer", diff --git a/l10n/ar.js b/l10n/ar.js index 05349b6801..4a74eed223 100644 --- a/l10n/ar.js +++ b/l10n/ar.js @@ -366,7 +366,6 @@ OC.L10N.register( "Saving..." : "الحفظُ جارٍ ...", "Delete application" : "حذف التطبيق", "Do you really want to delete the table \"{table}\"?" : "هل تريد حقًا حذف الجدول \"{table}\"؟", - "Export" : "تصدير", "Add to favorites" : "إضافة إلى المفضلة", "Remove from favorites" : "إزالة مِن المفضلة", "Archive table" : "أرشفة جدول", diff --git a/l10n/ar.json b/l10n/ar.json index ea2fd3a8a7..8d3baef0ca 100644 --- a/l10n/ar.json +++ b/l10n/ar.json @@ -364,7 +364,6 @@ "Saving..." : "الحفظُ جارٍ ...", "Delete application" : "حذف التطبيق", "Do you really want to delete the table \"{table}\"?" : "هل تريد حقًا حذف الجدول \"{table}\"؟", - "Export" : "تصدير", "Add to favorites" : "إضافة إلى المفضلة", "Remove from favorites" : "إزالة مِن المفضلة", "Archive table" : "أرشفة جدول", diff --git a/l10n/ast.js b/l10n/ast.js index 65ede516a7..60e4f2f7f1 100644 --- a/l10n/ast.js +++ b/l10n/ast.js @@ -191,7 +191,6 @@ OC.L10N.register( "Automatic" : "Automáticu", "Advanced settings" : "Configuración avanzada", "Saving..." : "Guardando…", - "Export" : "Esportar", "Add to favorites" : "Meter en Favoritos", "Remove from favorites" : "Quitar de Favoritos", "Delete table" : "Desaniciar la tabla", diff --git a/l10n/ast.json b/l10n/ast.json index 34ba9bb0c9..d89d6cd77d 100644 --- a/l10n/ast.json +++ b/l10n/ast.json @@ -189,7 +189,6 @@ "Automatic" : "Automáticu", "Advanced settings" : "Configuración avanzada", "Saving..." : "Guardando…", - "Export" : "Esportar", "Add to favorites" : "Meter en Favoritos", "Remove from favorites" : "Quitar de Favoritos", "Delete table" : "Desaniciar la tabla", diff --git a/l10n/az.js b/l10n/az.js index 69e037f366..8abfc14d47 100644 --- a/l10n/az.js +++ b/l10n/az.js @@ -47,7 +47,6 @@ OC.L10N.register( "Automatic" : "Avtomatik", "Advanced settings" : "İrəliləmiş quraşdırmalar", "Saving..." : "Saxlama...", - "Export" : "Çıxarış", "Copy" : "Kopyala", "Favorites" : "Sevimlilər", "group" : "qrup", diff --git a/l10n/az.json b/l10n/az.json index 8c9cdc1a73..fa745f9154 100644 --- a/l10n/az.json +++ b/l10n/az.json @@ -45,7 +45,6 @@ "Automatic" : "Avtomatik", "Advanced settings" : "İrəliləmiş quraşdırmalar", "Saving..." : "Saxlama...", - "Export" : "Çıxarış", "Copy" : "Kopyala", "Favorites" : "Sevimlilər", "group" : "qrup", diff --git a/l10n/be.js b/l10n/be.js index e426521eef..bd10bd5f83 100644 --- a/l10n/be.js +++ b/l10n/be.js @@ -199,7 +199,6 @@ OC.L10N.register( "Advanced settings" : "Пашыраныя налады", "Saving..." : "Захаванне…", "Do you really want to delete the table \"{table}\"?" : "Вы сапраўды хочаце выдаліць табліцу \"{table}\"?", - "Export" : "Экспарт", "Add to favorites" : "У абранае", "Remove from favorites" : "Выдаліць з абранага", "Delete table" : "Выдаліць табліцу", diff --git a/l10n/be.json b/l10n/be.json index 741ad9a1b0..750cc6eeb1 100644 --- a/l10n/be.json +++ b/l10n/be.json @@ -197,7 +197,6 @@ "Advanced settings" : "Пашыраныя налады", "Saving..." : "Захаванне…", "Do you really want to delete the table \"{table}\"?" : "Вы сапраўды хочаце выдаліць табліцу \"{table}\"?", - "Export" : "Экспарт", "Add to favorites" : "У абранае", "Remove from favorites" : "Выдаліць з абранага", "Delete table" : "Выдаліць табліцу", diff --git a/l10n/bg.js b/l10n/bg.js index 2219921588..68dc73c37c 100644 --- a/l10n/bg.js +++ b/l10n/bg.js @@ -222,7 +222,6 @@ OC.L10N.register( "Advanced settings" : "Допълнителни настройки", "Saving..." : "Записване...", "Do you really want to delete the table \"{table}\"?" : "Наистина ли искате да изтриете таблицата \"{table}\"?", - "Export" : "Експорт /изнасям/", "Add to favorites" : "Добавяне към любими", "Remove from favorites" : "Премахване от любими", "Delete table" : "Изтриване на таблица", diff --git a/l10n/bg.json b/l10n/bg.json index c5123d4dba..91e562e858 100644 --- a/l10n/bg.json +++ b/l10n/bg.json @@ -220,7 +220,6 @@ "Advanced settings" : "Допълнителни настройки", "Saving..." : "Записване...", "Do you really want to delete the table \"{table}\"?" : "Наистина ли искате да изтриете таблицата \"{table}\"?", - "Export" : "Експорт /изнасям/", "Add to favorites" : "Добавяне към любими", "Remove from favorites" : "Премахване от любими", "Delete table" : "Изтриване на таблица", diff --git a/l10n/bs.js b/l10n/bs.js index 5b6c91d6a8..6d43b65447 100644 --- a/l10n/bs.js +++ b/l10n/bs.js @@ -56,7 +56,6 @@ OC.L10N.register( "Layout" : "Raspored", "Automatic" : "Automatski", "Saving..." : "Spremanje...", - "Export" : "Izvezi", "Copy" : "Kopiraj", "Favorites" : "Favoriti", "group" : "grupa", diff --git a/l10n/bs.json b/l10n/bs.json index 00d978753d..635c5dc86f 100644 --- a/l10n/bs.json +++ b/l10n/bs.json @@ -54,7 +54,6 @@ "Layout" : "Raspored", "Automatic" : "Automatski", "Saving..." : "Spremanje...", - "Export" : "Izvezi", "Copy" : "Kopiraj", "Favorites" : "Favoriti", "group" : "grupa", diff --git a/l10n/ca.js b/l10n/ca.js index e381981356..9e09e50a93 100644 --- a/l10n/ca.js +++ b/l10n/ca.js @@ -216,7 +216,6 @@ OC.L10N.register( "Advanced settings" : "Paràmetres avançats", "Saving..." : "S'està desant...", "Do you really want to delete the table \"{table}\"?" : "Realment voleu suprimir la taula \"{table}\"?", - "Export" : "Exporta", "Add to favorites" : "Afegeix a preferits", "Remove from favorites" : "Suprimeix dels preferits", "Delete table" : "Suprimeix la taula", diff --git a/l10n/ca.json b/l10n/ca.json index da469970f7..2329eaa97e 100644 --- a/l10n/ca.json +++ b/l10n/ca.json @@ -214,7 +214,6 @@ "Advanced settings" : "Paràmetres avançats", "Saving..." : "S'està desant...", "Do you really want to delete the table \"{table}\"?" : "Realment voleu suprimir la taula \"{table}\"?", - "Export" : "Exporta", "Add to favorites" : "Afegeix a preferits", "Remove from favorites" : "Suprimeix dels preferits", "Delete table" : "Suprimeix la taula", diff --git a/l10n/cs.js b/l10n/cs.js index 220c4aa30e..08de749159 100644 --- a/l10n/cs.js +++ b/l10n/cs.js @@ -399,7 +399,6 @@ OC.L10N.register( "Saving..." : "Ukládá se …", "Delete application" : "Smazat aplikaci", "Do you really want to delete the table \"{table}\"?" : "Opravdu chcete tabulku „{table}“ smazat?", - "Export" : "Exportovat", "Add to favorites" : "Přidat do oblíbených", "Remove from favorites" : "Odebrat z oblíbených", "Archive table" : "Archivovat tabulku", diff --git a/l10n/cs.json b/l10n/cs.json index f0624e0324..ce286be5f3 100644 --- a/l10n/cs.json +++ b/l10n/cs.json @@ -397,7 +397,6 @@ "Saving..." : "Ukládá se …", "Delete application" : "Smazat aplikaci", "Do you really want to delete the table \"{table}\"?" : "Opravdu chcete tabulku „{table}“ smazat?", - "Export" : "Exportovat", "Add to favorites" : "Přidat do oblíbených", "Remove from favorites" : "Odebrat z oblíbených", "Archive table" : "Archivovat tabulku", diff --git a/l10n/cy_GB.js b/l10n/cy_GB.js index 89146a64ae..5f6c264998 100644 --- a/l10n/cy_GB.js +++ b/l10n/cy_GB.js @@ -47,7 +47,6 @@ OC.L10N.register( "Sort" : "Trefnu", "Automatic" : "Awtomatig", "Saving..." : "Yn cadw...", - "Export" : "Allforio", "Favorites" : "Ffefrynnau", "group" : "grŵp", "Created at" : "Crëwyd ar", diff --git a/l10n/cy_GB.json b/l10n/cy_GB.json index 5072c6750d..807154f4ff 100644 --- a/l10n/cy_GB.json +++ b/l10n/cy_GB.json @@ -45,7 +45,6 @@ "Sort" : "Trefnu", "Automatic" : "Awtomatig", "Saving..." : "Yn cadw...", - "Export" : "Allforio", "Favorites" : "Ffefrynnau", "group" : "grŵp", "Created at" : "Crëwyd ar", diff --git a/l10n/da.js b/l10n/da.js index 5168d1a11e..3007a00743 100644 --- a/l10n/da.js +++ b/l10n/da.js @@ -572,7 +572,6 @@ OC.L10N.register( "Export scheme" : "Eksportér skema", "Delete application" : "Slet applikation", "Do you really want to delete the table \"{table}\"?" : "Vil du virkelig slette tabellen \"{table}\"?", - "Export" : "Eksportér", "Add to favorites" : "Tilføj til favoritter", "Remove from favorites" : "Fjern fra favoritter", "Archive table" : "Arkiver tabel", diff --git a/l10n/da.json b/l10n/da.json index 1312fa448b..9829fca82f 100644 --- a/l10n/da.json +++ b/l10n/da.json @@ -570,7 +570,6 @@ "Export scheme" : "Eksportér skema", "Delete application" : "Slet applikation", "Do you really want to delete the table \"{table}\"?" : "Vil du virkelig slette tabellen \"{table}\"?", - "Export" : "Eksportér", "Add to favorites" : "Tilføj til favoritter", "Remove from favorites" : "Fjern fra favoritter", "Archive table" : "Arkiver tabel", diff --git a/l10n/de.js b/l10n/de.js index 545bee93bc..c2c43af856 100644 --- a/l10n/de.js +++ b/l10n/de.js @@ -572,7 +572,6 @@ OC.L10N.register( "Export scheme" : "Schema exportieren", "Delete application" : "Anwendung löschen", "Do you really want to delete the table \"{table}\"?" : "Möchtest du wirklich die Tabelle \"{table}\" löschen?", - "Export" : "Exportieren", "Add to favorites" : "Zu Favoriten hinzufügen", "Remove from favorites" : "Von Favoriten entfernen", "Archive table" : "Tabelle archivieren", diff --git a/l10n/de.json b/l10n/de.json index 640eae17fd..37704307cc 100644 --- a/l10n/de.json +++ b/l10n/de.json @@ -570,7 +570,6 @@ "Export scheme" : "Schema exportieren", "Delete application" : "Anwendung löschen", "Do you really want to delete the table \"{table}\"?" : "Möchtest du wirklich die Tabelle \"{table}\" löschen?", - "Export" : "Exportieren", "Add to favorites" : "Zu Favoriten hinzufügen", "Remove from favorites" : "Von Favoriten entfernen", "Archive table" : "Tabelle archivieren", diff --git a/l10n/de_DE.js b/l10n/de_DE.js index 7e4eb6dac2..212c930ff9 100644 --- a/l10n/de_DE.js +++ b/l10n/de_DE.js @@ -572,7 +572,6 @@ OC.L10N.register( "Export scheme" : "Schema exportieren", "Delete application" : "Anwendung löschen", "Do you really want to delete the table \"{table}\"?" : "Möchten Sie wirklich die Tabelle \"{table}\" löschen?", - "Export" : "Exportieren", "Add to favorites" : "Zu Favoriten hinzufügen", "Remove from favorites" : "Von Favoriten entfernen", "Archive table" : "Tabelle archivieren", diff --git a/l10n/de_DE.json b/l10n/de_DE.json index 2da7fe9baf..c8ce6874e7 100644 --- a/l10n/de_DE.json +++ b/l10n/de_DE.json @@ -570,7 +570,6 @@ "Export scheme" : "Schema exportieren", "Delete application" : "Anwendung löschen", "Do you really want to delete the table \"{table}\"?" : "Möchten Sie wirklich die Tabelle \"{table}\" löschen?", - "Export" : "Exportieren", "Add to favorites" : "Zu Favoriten hinzufügen", "Remove from favorites" : "Von Favoriten entfernen", "Archive table" : "Tabelle archivieren", diff --git a/l10n/el.js b/l10n/el.js index d138c5f5d6..e4d1d20c1a 100644 --- a/l10n/el.js +++ b/l10n/el.js @@ -522,7 +522,6 @@ OC.L10N.register( "Saving..." : "Γίνεται αποθήκευση...", "Delete application" : "Διαγραφή εφαρμογής", "Do you really want to delete the table \"{table}\"?" : "Θέλετε πραγματικά να διαγράψετε τον πίνακα \"{table}\";", - "Export" : "Εξαγωγή", "Add to favorites" : "Προσθήκη στα αγαπημένα", "Remove from favorites" : "Αφαίρεση από τα αγαπημένα", "Archive table" : "Αρχειοθέτηση πίνακα", diff --git a/l10n/el.json b/l10n/el.json index 064df59623..2874229d94 100644 --- a/l10n/el.json +++ b/l10n/el.json @@ -520,7 +520,6 @@ "Saving..." : "Γίνεται αποθήκευση...", "Delete application" : "Διαγραφή εφαρμογής", "Do you really want to delete the table \"{table}\"?" : "Θέλετε πραγματικά να διαγράψετε τον πίνακα \"{table}\";", - "Export" : "Εξαγωγή", "Add to favorites" : "Προσθήκη στα αγαπημένα", "Remove from favorites" : "Αφαίρεση από τα αγαπημένα", "Archive table" : "Αρχειοθέτηση πίνακα", diff --git a/l10n/en_GB.js b/l10n/en_GB.js index c606184e1a..e6be6f9859 100644 --- a/l10n/en_GB.js +++ b/l10n/en_GB.js @@ -572,7 +572,6 @@ OC.L10N.register( "Export scheme" : "Export scheme", "Delete application" : "Delete application", "Do you really want to delete the table \"{table}\"?" : "Do you really want to delete the table \"{table}\"?", - "Export" : "Export", "Add to favorites" : "Add to favourites", "Remove from favorites" : "Remove from favourites", "Archive table" : "Archive table", diff --git a/l10n/en_GB.json b/l10n/en_GB.json index e10b3db218..b1feee66d7 100644 --- a/l10n/en_GB.json +++ b/l10n/en_GB.json @@ -570,7 +570,6 @@ "Export scheme" : "Export scheme", "Delete application" : "Delete application", "Do you really want to delete the table \"{table}\"?" : "Do you really want to delete the table \"{table}\"?", - "Export" : "Export", "Add to favorites" : "Add to favourites", "Remove from favorites" : "Remove from favourites", "Archive table" : "Archive table", diff --git a/l10n/eo.js b/l10n/eo.js index adab40a874..174bff2dee 100644 --- a/l10n/eo.js +++ b/l10n/eo.js @@ -69,7 +69,6 @@ OC.L10N.register( "Automatic" : "Aŭtomata", "Advanced settings" : "Altanivela agordo", "Saving..." : "Konservado...", - "Export" : "Eksporti", "Add to favorites" : "Aldoni al pliŝatataĵoj", "Remove from favorites" : "Malpliŝatigi", "Favorites" : "Plej ŝatataj", diff --git a/l10n/eo.json b/l10n/eo.json index bcf5123f01..480b6950db 100644 --- a/l10n/eo.json +++ b/l10n/eo.json @@ -67,7 +67,6 @@ "Automatic" : "Aŭtomata", "Advanced settings" : "Altanivela agordo", "Saving..." : "Konservado...", - "Export" : "Eksporti", "Add to favorites" : "Aldoni al pliŝatataĵoj", "Remove from favorites" : "Malpliŝatigi", "Favorites" : "Plej ŝatataj", diff --git a/l10n/es.js b/l10n/es.js index 933d8d6021..0bbb5b1911 100644 --- a/l10n/es.js +++ b/l10n/es.js @@ -374,7 +374,6 @@ OC.L10N.register( "Saving..." : "Guardando...", "Delete application" : "Eliminar aplicación", "Do you really want to delete the table \"{table}\"?" : "¿Realmente desea eliminar la tabla \"{table}\"?", - "Export" : "Exportar", "Add to favorites" : "Añadir a favoritos", "Remove from favorites" : "Eliminar de favoritos", "Archive table" : "Archivar tabla", diff --git a/l10n/es.json b/l10n/es.json index af845729d1..e9e5dbb804 100644 --- a/l10n/es.json +++ b/l10n/es.json @@ -372,7 +372,6 @@ "Saving..." : "Guardando...", "Delete application" : "Eliminar aplicación", "Do you really want to delete the table \"{table}\"?" : "¿Realmente desea eliminar la tabla \"{table}\"?", - "Export" : "Exportar", "Add to favorites" : "Añadir a favoritos", "Remove from favorites" : "Eliminar de favoritos", "Archive table" : "Archivar tabla", diff --git a/l10n/es_419.js b/l10n/es_419.js index fae6893782..3e3535dbf0 100644 --- a/l10n/es_419.js +++ b/l10n/es_419.js @@ -58,7 +58,6 @@ OC.L10N.register( "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando ...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_419.json b/l10n/es_419.json index 13133d4f54..52c168c9a3 100644 --- a/l10n/es_419.json +++ b/l10n/es_419.json @@ -56,7 +56,6 @@ "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando ...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_AR.js b/l10n/es_AR.js index 5a75f997c4..9619bc0452 100644 --- a/l10n/es_AR.js +++ b/l10n/es_AR.js @@ -82,7 +82,6 @@ OC.L10N.register( "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzadas", "Saving..." : "Guardando ...", - "Export" : "Exportar", "Add to favorites" : "Añadir a favoritos", "Remove from favorites" : "Quitar de favoritos", "Copy" : "Copiar", diff --git a/l10n/es_AR.json b/l10n/es_AR.json index d4b2604f5a..ad370d1ee0 100644 --- a/l10n/es_AR.json +++ b/l10n/es_AR.json @@ -80,7 +80,6 @@ "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzadas", "Saving..." : "Guardando ...", - "Export" : "Exportar", "Add to favorites" : "Añadir a favoritos", "Remove from favorites" : "Quitar de favoritos", "Copy" : "Copiar", diff --git a/l10n/es_CL.js b/l10n/es_CL.js index c311127092..4c233289a9 100644 --- a/l10n/es_CL.js +++ b/l10n/es_CL.js @@ -62,7 +62,6 @@ OC.L10N.register( "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_CL.json b/l10n/es_CL.json index 77397750d6..bf7623d469 100644 --- a/l10n/es_CL.json +++ b/l10n/es_CL.json @@ -60,7 +60,6 @@ "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_CO.js b/l10n/es_CO.js index eff18de030..f6a4d6f650 100644 --- a/l10n/es_CO.js +++ b/l10n/es_CO.js @@ -62,7 +62,6 @@ OC.L10N.register( "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_CO.json b/l10n/es_CO.json index 875b8f29d7..a45a2d7b13 100644 --- a/l10n/es_CO.json +++ b/l10n/es_CO.json @@ -60,7 +60,6 @@ "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_CR.js b/l10n/es_CR.js index b75f9d30bf..8b252aaf21 100644 --- a/l10n/es_CR.js +++ b/l10n/es_CR.js @@ -62,7 +62,6 @@ OC.L10N.register( "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_CR.json b/l10n/es_CR.json index c40135be69..e52532ac15 100644 --- a/l10n/es_CR.json +++ b/l10n/es_CR.json @@ -60,7 +60,6 @@ "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_DO.js b/l10n/es_DO.js index 650a29f60c..a68314565c 100644 --- a/l10n/es_DO.js +++ b/l10n/es_DO.js @@ -60,7 +60,6 @@ OC.L10N.register( "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_DO.json b/l10n/es_DO.json index ca8f04cdc3..f4141afa86 100644 --- a/l10n/es_DO.json +++ b/l10n/es_DO.json @@ -58,7 +58,6 @@ "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_EC.js b/l10n/es_EC.js index 23f14ef2b0..0ca6db9c11 100644 --- a/l10n/es_EC.js +++ b/l10n/es_EC.js @@ -233,7 +233,6 @@ OC.L10N.register( "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", "Do you really want to delete the table \"{table}\"?" : "¿Realmente deseas eliminar la tabla \"{table}\"?", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Delete table" : "Eliminar tabla", "Copy" : "Copiar", diff --git a/l10n/es_EC.json b/l10n/es_EC.json index 7000008a8d..34f3d2055a 100644 --- a/l10n/es_EC.json +++ b/l10n/es_EC.json @@ -231,7 +231,6 @@ "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", "Do you really want to delete the table \"{table}\"?" : "¿Realmente deseas eliminar la tabla \"{table}\"?", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Delete table" : "Eliminar tabla", "Copy" : "Copiar", diff --git a/l10n/es_GT.js b/l10n/es_GT.js index dcb81ea1e3..d766cc4ffb 100644 --- a/l10n/es_GT.js +++ b/l10n/es_GT.js @@ -61,7 +61,6 @@ OC.L10N.register( "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_GT.json b/l10n/es_GT.json index bd1c117b81..c8b096fee9 100644 --- a/l10n/es_GT.json +++ b/l10n/es_GT.json @@ -59,7 +59,6 @@ "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_HN.js b/l10n/es_HN.js index 4eb783d5f8..57f359e726 100644 --- a/l10n/es_HN.js +++ b/l10n/es_HN.js @@ -55,7 +55,6 @@ OC.L10N.register( "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_HN.json b/l10n/es_HN.json index 581ece57a9..4ce8ace563 100644 --- a/l10n/es_HN.json +++ b/l10n/es_HN.json @@ -53,7 +53,6 @@ "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_MX.js b/l10n/es_MX.js index 8040f98a52..800eea6f97 100644 --- a/l10n/es_MX.js +++ b/l10n/es_MX.js @@ -94,7 +94,6 @@ OC.L10N.register( "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzadas", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Añadir a favoritos", "Remove from favorites" : "Eliminar de favoritos", "Copy" : "Copiar", diff --git a/l10n/es_MX.json b/l10n/es_MX.json index b13a3a114f..afaf1f7f55 100644 --- a/l10n/es_MX.json +++ b/l10n/es_MX.json @@ -92,7 +92,6 @@ "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzadas", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Añadir a favoritos", "Remove from favorites" : "Eliminar de favoritos", "Copy" : "Copiar", diff --git a/l10n/es_NI.js b/l10n/es_NI.js index e4141cb230..6b0e5a1573 100644 --- a/l10n/es_NI.js +++ b/l10n/es_NI.js @@ -55,7 +55,6 @@ OC.L10N.register( "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_NI.json b/l10n/es_NI.json index 0806fc303d..1b68f0697b 100644 --- a/l10n/es_NI.json +++ b/l10n/es_NI.json @@ -53,7 +53,6 @@ "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_PA.js b/l10n/es_PA.js index df5170cc0a..323f1b5a7c 100644 --- a/l10n/es_PA.js +++ b/l10n/es_PA.js @@ -54,7 +54,6 @@ OC.L10N.register( "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_PA.json b/l10n/es_PA.json index 1032af7a75..6c6e8c2c03 100644 --- a/l10n/es_PA.json +++ b/l10n/es_PA.json @@ -52,7 +52,6 @@ "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_PE.js b/l10n/es_PE.js index 929db387d3..72b92c961e 100644 --- a/l10n/es_PE.js +++ b/l10n/es_PE.js @@ -54,7 +54,6 @@ OC.L10N.register( "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_PE.json b/l10n/es_PE.json index 25231423ab..b5d4acee4c 100644 --- a/l10n/es_PE.json +++ b/l10n/es_PE.json @@ -52,7 +52,6 @@ "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_PR.js b/l10n/es_PR.js index 404bd09ef5..4de1be265f 100644 --- a/l10n/es_PR.js +++ b/l10n/es_PR.js @@ -54,7 +54,6 @@ OC.L10N.register( "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_PR.json b/l10n/es_PR.json index bc0de49ead..60816fcbd3 100644 --- a/l10n/es_PR.json +++ b/l10n/es_PR.json @@ -52,7 +52,6 @@ "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_PY.js b/l10n/es_PY.js index 3efce30b7a..5ca4744691 100644 --- a/l10n/es_PY.js +++ b/l10n/es_PY.js @@ -54,7 +54,6 @@ OC.L10N.register( "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_PY.json b/l10n/es_PY.json index 78dd05afe5..6c727f02e1 100644 --- a/l10n/es_PY.json +++ b/l10n/es_PY.json @@ -52,7 +52,6 @@ "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_SV.js b/l10n/es_SV.js index d586362f6a..59e3b4de01 100644 --- a/l10n/es_SV.js +++ b/l10n/es_SV.js @@ -60,7 +60,6 @@ OC.L10N.register( "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_SV.json b/l10n/es_SV.json index 265a7f1638..d757196b8a 100644 --- a/l10n/es_SV.json +++ b/l10n/es_SV.json @@ -58,7 +58,6 @@ "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_UY.js b/l10n/es_UY.js index 0c85b189ea..0e000c0155 100644 --- a/l10n/es_UY.js +++ b/l10n/es_UY.js @@ -54,7 +54,6 @@ OC.L10N.register( "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/es_UY.json b/l10n/es_UY.json index d4fe441688..4bfe0de3db 100644 --- a/l10n/es_UY.json +++ b/l10n/es_UY.json @@ -52,7 +52,6 @@ "Automatic" : "Automático", "Advanced settings" : "Configuraciones avanzados", "Saving..." : "Guardando...", - "Export" : "Exportar", "Add to favorites" : "Agregar a favoritos", "Favorites" : "Favoritos", "group" : "grupo", diff --git a/l10n/et_EE.js b/l10n/et_EE.js index 08c78b541b..7ae00ea81c 100644 --- a/l10n/et_EE.js +++ b/l10n/et_EE.js @@ -572,7 +572,6 @@ OC.L10N.register( "Export scheme" : "Ekspordi andmeskeema", "Delete application" : "Kustuta rakendus", "Do you really want to delete the table \"{table}\"?" : "Oled sa kindel, et soovid „{table}“ tabeli kustutada?", - "Export" : "Ekspordi", "Add to favorites" : "Lisa lemmikuks", "Remove from favorites" : "Eemalda lemmikutest", "Archive table" : "Arhiveeri tabel", diff --git a/l10n/et_EE.json b/l10n/et_EE.json index 2572fa767d..0fb0ed5c05 100644 --- a/l10n/et_EE.json +++ b/l10n/et_EE.json @@ -570,7 +570,6 @@ "Export scheme" : "Ekspordi andmeskeema", "Delete application" : "Kustuta rakendus", "Do you really want to delete the table \"{table}\"?" : "Oled sa kindel, et soovid „{table}“ tabeli kustutada?", - "Export" : "Ekspordi", "Add to favorites" : "Lisa lemmikuks", "Remove from favorites" : "Eemalda lemmikutest", "Archive table" : "Arhiveeri tabel", diff --git a/l10n/eu.js b/l10n/eu.js index 497f9e04cf..bfbdabb4d3 100644 --- a/l10n/eu.js +++ b/l10n/eu.js @@ -246,7 +246,6 @@ OC.L10N.register( "Advanced settings" : "Ezarpen aurreratuak", "Saving..." : "Gordetzen...", "Do you really want to delete the table \"{table}\"?" : "Benetan ezabatu nahi al duzu \"{table}\" taula?", - "Export" : "Esportatu", "Add to favorites" : "Gehitu gogokoetara", "Remove from favorites" : "Kendu gogokoetatik", "Archive table" : "Artxibatu taula", diff --git a/l10n/eu.json b/l10n/eu.json index ac3d94070e..13c2d57c13 100644 --- a/l10n/eu.json +++ b/l10n/eu.json @@ -244,7 +244,6 @@ "Advanced settings" : "Ezarpen aurreratuak", "Saving..." : "Gordetzen...", "Do you really want to delete the table \"{table}\"?" : "Benetan ezabatu nahi al duzu \"{table}\" taula?", - "Export" : "Esportatu", "Add to favorites" : "Gehitu gogokoetara", "Remove from favorites" : "Kendu gogokoetatik", "Archive table" : "Artxibatu taula", diff --git a/l10n/fa.js b/l10n/fa.js index e3c5ec70de..6f53f0ff26 100644 --- a/l10n/fa.js +++ b/l10n/fa.js @@ -411,7 +411,6 @@ OC.L10N.register( "Saving..." : "در حال ذخیره...", "Delete application" : "حذف برنامه", "Do you really want to delete the table \"{table}\"?" : "آیا واقعاً می‌خواهید جدول \"{table}\" را حذف کنید؟", - "Export" : "خروجی", "Add to favorites" : "افزودن به موارد دلخواه", "Remove from favorites" : "حذف از موارد دلخواه", "Archive table" : "بایگانی جدول", diff --git a/l10n/fa.json b/l10n/fa.json index 4f61081302..4ca01f27af 100644 --- a/l10n/fa.json +++ b/l10n/fa.json @@ -409,7 +409,6 @@ "Saving..." : "در حال ذخیره...", "Delete application" : "حذف برنامه", "Do you really want to delete the table \"{table}\"?" : "آیا واقعاً می‌خواهید جدول \"{table}\" را حذف کنید؟", - "Export" : "خروجی", "Add to favorites" : "افزودن به موارد دلخواه", "Remove from favorites" : "حذف از موارد دلخواه", "Archive table" : "بایگانی جدول", diff --git a/l10n/fi.js b/l10n/fi.js index da959a4f0f..1c051c2429 100644 --- a/l10n/fi.js +++ b/l10n/fi.js @@ -366,7 +366,6 @@ OC.L10N.register( "Saving..." : "Tallennetaan...", "Delete application" : "Poista sovellus", "Do you really want to delete the table \"{table}\"?" : "Haluatko varmasti poistaa taulukon \"{table}\"?", - "Export" : "Vie", "Add to favorites" : "Lisää suosikkeihin", "Remove from favorites" : "Poista suosikeista", "Archive table" : "Arkistoi taulukko", diff --git a/l10n/fi.json b/l10n/fi.json index c1fe450a94..be729a9737 100644 --- a/l10n/fi.json +++ b/l10n/fi.json @@ -364,7 +364,6 @@ "Saving..." : "Tallennetaan...", "Delete application" : "Poista sovellus", "Do you really want to delete the table \"{table}\"?" : "Haluatko varmasti poistaa taulukon \"{table}\"?", - "Export" : "Vie", "Add to favorites" : "Lisää suosikkeihin", "Remove from favorites" : "Poista suosikeista", "Archive table" : "Arkistoi taulukko", diff --git a/l10n/fr.js b/l10n/fr.js index e702f92971..5867db5ce7 100644 --- a/l10n/fr.js +++ b/l10n/fr.js @@ -572,7 +572,6 @@ OC.L10N.register( "Export scheme" : "Exporter le schéma", "Delete application" : "Supprimer l’application", "Do you really want to delete the table \"{table}\"?" : "Voulez-vous vraiment supprimer le tableau « {table} » ?", - "Export" : "Exporter", "Add to favorites" : "Ajouter aux favoris", "Remove from favorites" : "Retirer des favoris", "Archive table" : "Archiver le tableau", @@ -813,7 +812,7 @@ OC.L10N.register( "ATM" : "DAB", "Horizontal paperclip" : "Trombone horizontal", "Quad bike" : "Quadricycle", - "Clockwise circular arrows" : "Flèches dans le sens anti-horaire", + "Clockwise circular arrows" : "Flèches dans le sens horaire", "Baby" : "Bébé", "Backspace key" : "Touche retour arrière", "Balcony" : "Balcon", @@ -831,6 +830,7 @@ OC.L10N.register( "Biathlon" : "Biathlon", "Bicycle" : "Vélo", "Blender" : "Mixeur", + "Blur dots" : "Points flous", "Book" : "Livre", "Bookmark" : "Favori", "Boombox" : "Radiocassette", @@ -840,37 +840,58 @@ OC.L10N.register( "Bug" : "Insecte", "Bullhorn" : "Mégaphone", "Bus" : "Bus", + "Counterclockwise circular arrows" : "Flèches dans le sens anti-horaire", "Cake" : "Gâteau", "Calendar" : "Agenda", - "Camera" : "Caméra", + "Camera" : "Appareil photo", + "Prohibition sign" : "Signe Interdiction", "Candle" : "Bougie", "Car" : "Voiture", + "Carabiner" : "Mousqueton", + "Shopping cart" : "Chariot de supermarché", + "Casting screen" : "Diffusion d'écran", "Mobile phone" : "Téléphone portable", + "Hand holding a heart" : "Main tenant un cœur", + "Checkbook" : "Chéquier", "Church" : "Église", "City" : "Ville", "Clock" : "Horloge", - "Cloud" : "Cloud", + "Cloud" : "Nuage", "Coffee cup" : "Tasse de café", "Gear" : "Engrenage", "Gears" : "Engrenages", + "Collage" : "Collage", + "Side-by-side panels" : "Panneaux côte à côte", "Compass" : "Boussole", "Compost" : "Compost", "Game controller" : "Contrôleur de jeu", "Cookie" : "Cookie", + "Copyright symbol" : "Symbole de droit d'auteur", + "Kitchen counter" : "Plan de travail de cuisine", "Cradle" : "Berceau", + "Crosshairs" : "Viseur", + "Crowd" : "Foule", "Trash can" : "Corbeille", "Triangle" : "Triangle", "Inverted triangle" : "Triangle inversé", + "Monitor, phone and watch" : "Écran, téléphone et montre", "Keypad" : "Pavé numérique", + "Dishwasher" : "Lave-vaisselle", "Diving" : "Plongée", "DNS servers" : "Serveurs DNS", + "Office building" : "Immeubles de bureaux", + "Download arrow" : "Flèche Téléchargement", "Dumbbell" : "Haltère", "Earth globe" : "Globe terrestre", "Eject symbol" : "Symbole éjection", "Envelope" : "Enveloppe", "Eye" : "Œil", + "Fax machine" : "Fax", + "Fencing" : "Escrime", "Ferry" : "Ferry", "Document page" : "Page de document", + "Film roll" : "Cartouche de film", + "Filmstrip" : "Film", "Fingerprint" : "Empreinte", "Flame" : "Flamme", "Firebase logo" : "Logo Firebase", @@ -878,28 +899,41 @@ OC.L10N.register( "Lightning bolt" : "Éclair", "Flower" : "Fleur", "Folder" : "Dossier", + "Burger and drink" : "Hamburger et boisson", "American football" : "Football américain", "Forest" : "Forêt", + "Chat bubbles" : "Bulles de discussion", "Directional pad" : "Pavé directionnel", "Gauge" : "Jauge", + "Freehand line" : "Ligne à main levée", "Gmail logo" : "Logo Gmail", "Golf" : "Golf", "Google logo" : "Logo Google", "Grass" : "Herbe", "Grid" : "Grille", + "Barbecue grill" : "Barbecue", "Gymnastics" : "Gymnastique", + "Person hailing" : "Personne qui hèle", "Hammer" : "Marteau", "Handball" : "Handball", "HDR label" : "Label HDR", + "Headphones" : "Casque audio", + "Headset with microphone" : "Casque audio avec microphone", "Heart" : "Cœur", "Hiking" : "Randonnée", + "Clock with counterclockwise arrow" : "Horloge avec une flèche dans le sens anti-horaire", "House" : "Foyer", "Air vent" : "Bouche d'aération", "Picture" : "Image", "Information symbol" : "Symbole Information", "Clothes iron" : "Fer à repasser", + "Kabaddi" : "Kabaddi", + "Karate" : "Karaté", + "Kayaking" : "Kayakiste", "Key" : "Clé", "Keyboard" : "Clavier", + "Kite" : "Cerf-volant", + "Ladybug" : "Coccinelle", "Map" : "Carte", "Meditation" : "Méditation", "Microphone" : "Microphone", @@ -915,6 +949,7 @@ OC.L10N.register( "Remote control" : "Télécommande", "RSS feed symbol" : "Symbole de flux RSS", "Rugby" : "Rugby", + "Running person" : "Personne qui court", "Satellite" : "Satellite", "Saxophone" : "Saxophone", "Scanner" : "Numériseur", @@ -924,39 +959,65 @@ OC.L10N.register( "Shield" : "Bouclier", "Paper plane" : "Avion en papier", "Shapes" : "Formes", + "Shopping bag" : "Sac de courses", + "Sigma symbol" : "Symbole sigma", "Fork and knife" : "Fourchette et couteau", "SIM card" : "Carte SIM", "Ice skate" : "Patins à glace", - "Skateboard" : "Skate-board", + "Skateboard" : "Skateboard", + "Skateboarding" : "Skateboarder", "Skier" : "Skieur", "Sledding" : "Luge", "Cigarette" : "Cigarette", + "Snowboard" : "Snowboard", "Snowflake" : "Flocon de neige", "Snowmobile" : "Motoneige", + "Snowshoeing" : "Marche avec des raquettes à neige", "Soccer ball" : "Ballon de foot", "Lotus flower" : "Fleur de lotus", "Speaker" : "Haut-parleur", "Stadium" : "Stade", "Star" : "Étoile", + "Steering wheel" : "Volant", + "Stop symbol" : "Symbole Arrêter", + "Storefront" : "Devanture de magasin", "Subway train" : "Métro", "Surfing" : "Surf", "Synagogue" : "Synagogue", + "Sync arrows" : "Flèches Synchronisation", "Browser tab" : "Onglet de navigateur", "Tablet" : "Tablette", + "Price tag" : "Étiquette de prix", "Taxi" : "Taxi", "Tea" : "Thé", "Television" : "Télévision", "Tennis" : "Tennis", "Mountains" : "Montagnes", + "Text lines" : "Lignes de texte", + "Texture pattern" : "Motif texturé", + "Thermostat" : "Thermostat", + "Ticket" : "Ticket", + "Toolbox" : "Boîte à outils", "Train" : "Train", + "Tram" : "Tramway", + "Translation symbol" : "Symbole Traduction", "Truck" : "Camion", "Tsunami" : "Tsunami", + "Undo arrow" : "Flèche Annuler", + "Clock with clockwise arrow" : "Horloge avec une flèche dans le sens horaire", + "Upload arrow" : "Flèche Téléversement", "USB symbol" : "Symbole USB", "Vacuum cleaner" : "Aspirateur", "Video camera" : "Caméra vidéo", + "Violin" : "Violon", "Volcano" : "Volcan", "Ballot box" : "Urne", + "Walking person" : "Personne qui marche", + "Wallet" : "Portefeuille", + "Wristwatch" : "Montre-bracelet", + "Water drop" : "Goutte d'eau", "Watermark" : "Filigrane", + "Web globe" : "Globe Web", "Wrench" : "Clé à molette", "YouTube logo" : "Logo YouTube", "Could not update cell" : "Impossible de mettre à jour la cellule", diff --git a/l10n/fr.json b/l10n/fr.json index 9837148214..ca0a032fb7 100644 --- a/l10n/fr.json +++ b/l10n/fr.json @@ -570,7 +570,6 @@ "Export scheme" : "Exporter le schéma", "Delete application" : "Supprimer l’application", "Do you really want to delete the table \"{table}\"?" : "Voulez-vous vraiment supprimer le tableau « {table} » ?", - "Export" : "Exporter", "Add to favorites" : "Ajouter aux favoris", "Remove from favorites" : "Retirer des favoris", "Archive table" : "Archiver le tableau", @@ -811,7 +810,7 @@ "ATM" : "DAB", "Horizontal paperclip" : "Trombone horizontal", "Quad bike" : "Quadricycle", - "Clockwise circular arrows" : "Flèches dans le sens anti-horaire", + "Clockwise circular arrows" : "Flèches dans le sens horaire", "Baby" : "Bébé", "Backspace key" : "Touche retour arrière", "Balcony" : "Balcon", @@ -829,6 +828,7 @@ "Biathlon" : "Biathlon", "Bicycle" : "Vélo", "Blender" : "Mixeur", + "Blur dots" : "Points flous", "Book" : "Livre", "Bookmark" : "Favori", "Boombox" : "Radiocassette", @@ -838,37 +838,58 @@ "Bug" : "Insecte", "Bullhorn" : "Mégaphone", "Bus" : "Bus", + "Counterclockwise circular arrows" : "Flèches dans le sens anti-horaire", "Cake" : "Gâteau", "Calendar" : "Agenda", - "Camera" : "Caméra", + "Camera" : "Appareil photo", + "Prohibition sign" : "Signe Interdiction", "Candle" : "Bougie", "Car" : "Voiture", + "Carabiner" : "Mousqueton", + "Shopping cart" : "Chariot de supermarché", + "Casting screen" : "Diffusion d'écran", "Mobile phone" : "Téléphone portable", + "Hand holding a heart" : "Main tenant un cœur", + "Checkbook" : "Chéquier", "Church" : "Église", "City" : "Ville", "Clock" : "Horloge", - "Cloud" : "Cloud", + "Cloud" : "Nuage", "Coffee cup" : "Tasse de café", "Gear" : "Engrenage", "Gears" : "Engrenages", + "Collage" : "Collage", + "Side-by-side panels" : "Panneaux côte à côte", "Compass" : "Boussole", "Compost" : "Compost", "Game controller" : "Contrôleur de jeu", "Cookie" : "Cookie", + "Copyright symbol" : "Symbole de droit d'auteur", + "Kitchen counter" : "Plan de travail de cuisine", "Cradle" : "Berceau", + "Crosshairs" : "Viseur", + "Crowd" : "Foule", "Trash can" : "Corbeille", "Triangle" : "Triangle", "Inverted triangle" : "Triangle inversé", + "Monitor, phone and watch" : "Écran, téléphone et montre", "Keypad" : "Pavé numérique", + "Dishwasher" : "Lave-vaisselle", "Diving" : "Plongée", "DNS servers" : "Serveurs DNS", + "Office building" : "Immeubles de bureaux", + "Download arrow" : "Flèche Téléchargement", "Dumbbell" : "Haltère", "Earth globe" : "Globe terrestre", "Eject symbol" : "Symbole éjection", "Envelope" : "Enveloppe", "Eye" : "Œil", + "Fax machine" : "Fax", + "Fencing" : "Escrime", "Ferry" : "Ferry", "Document page" : "Page de document", + "Film roll" : "Cartouche de film", + "Filmstrip" : "Film", "Fingerprint" : "Empreinte", "Flame" : "Flamme", "Firebase logo" : "Logo Firebase", @@ -876,28 +897,41 @@ "Lightning bolt" : "Éclair", "Flower" : "Fleur", "Folder" : "Dossier", + "Burger and drink" : "Hamburger et boisson", "American football" : "Football américain", "Forest" : "Forêt", + "Chat bubbles" : "Bulles de discussion", "Directional pad" : "Pavé directionnel", "Gauge" : "Jauge", + "Freehand line" : "Ligne à main levée", "Gmail logo" : "Logo Gmail", "Golf" : "Golf", "Google logo" : "Logo Google", "Grass" : "Herbe", "Grid" : "Grille", + "Barbecue grill" : "Barbecue", "Gymnastics" : "Gymnastique", + "Person hailing" : "Personne qui hèle", "Hammer" : "Marteau", "Handball" : "Handball", "HDR label" : "Label HDR", + "Headphones" : "Casque audio", + "Headset with microphone" : "Casque audio avec microphone", "Heart" : "Cœur", "Hiking" : "Randonnée", + "Clock with counterclockwise arrow" : "Horloge avec une flèche dans le sens anti-horaire", "House" : "Foyer", "Air vent" : "Bouche d'aération", "Picture" : "Image", "Information symbol" : "Symbole Information", "Clothes iron" : "Fer à repasser", + "Kabaddi" : "Kabaddi", + "Karate" : "Karaté", + "Kayaking" : "Kayakiste", "Key" : "Clé", "Keyboard" : "Clavier", + "Kite" : "Cerf-volant", + "Ladybug" : "Coccinelle", "Map" : "Carte", "Meditation" : "Méditation", "Microphone" : "Microphone", @@ -913,6 +947,7 @@ "Remote control" : "Télécommande", "RSS feed symbol" : "Symbole de flux RSS", "Rugby" : "Rugby", + "Running person" : "Personne qui court", "Satellite" : "Satellite", "Saxophone" : "Saxophone", "Scanner" : "Numériseur", @@ -922,39 +957,65 @@ "Shield" : "Bouclier", "Paper plane" : "Avion en papier", "Shapes" : "Formes", + "Shopping bag" : "Sac de courses", + "Sigma symbol" : "Symbole sigma", "Fork and knife" : "Fourchette et couteau", "SIM card" : "Carte SIM", "Ice skate" : "Patins à glace", - "Skateboard" : "Skate-board", + "Skateboard" : "Skateboard", + "Skateboarding" : "Skateboarder", "Skier" : "Skieur", "Sledding" : "Luge", "Cigarette" : "Cigarette", + "Snowboard" : "Snowboard", "Snowflake" : "Flocon de neige", "Snowmobile" : "Motoneige", + "Snowshoeing" : "Marche avec des raquettes à neige", "Soccer ball" : "Ballon de foot", "Lotus flower" : "Fleur de lotus", "Speaker" : "Haut-parleur", "Stadium" : "Stade", "Star" : "Étoile", + "Steering wheel" : "Volant", + "Stop symbol" : "Symbole Arrêter", + "Storefront" : "Devanture de magasin", "Subway train" : "Métro", "Surfing" : "Surf", "Synagogue" : "Synagogue", + "Sync arrows" : "Flèches Synchronisation", "Browser tab" : "Onglet de navigateur", "Tablet" : "Tablette", + "Price tag" : "Étiquette de prix", "Taxi" : "Taxi", "Tea" : "Thé", "Television" : "Télévision", "Tennis" : "Tennis", "Mountains" : "Montagnes", + "Text lines" : "Lignes de texte", + "Texture pattern" : "Motif texturé", + "Thermostat" : "Thermostat", + "Ticket" : "Ticket", + "Toolbox" : "Boîte à outils", "Train" : "Train", + "Tram" : "Tramway", + "Translation symbol" : "Symbole Traduction", "Truck" : "Camion", "Tsunami" : "Tsunami", + "Undo arrow" : "Flèche Annuler", + "Clock with clockwise arrow" : "Horloge avec une flèche dans le sens horaire", + "Upload arrow" : "Flèche Téléversement", "USB symbol" : "Symbole USB", "Vacuum cleaner" : "Aspirateur", "Video camera" : "Caméra vidéo", + "Violin" : "Violon", "Volcano" : "Volcan", "Ballot box" : "Urne", + "Walking person" : "Personne qui marche", + "Wallet" : "Portefeuille", + "Wristwatch" : "Montre-bracelet", + "Water drop" : "Goutte d'eau", "Watermark" : "Filigrane", + "Web globe" : "Globe Web", "Wrench" : "Clé à molette", "YouTube logo" : "Logo YouTube", "Could not update cell" : "Impossible de mettre à jour la cellule", diff --git a/l10n/ga.js b/l10n/ga.js index 39b65ff4ca..17f55c16ca 100644 --- a/l10n/ga.js +++ b/l10n/ga.js @@ -572,7 +572,6 @@ OC.L10N.register( "Export scheme" : "Scéim onnmhairithe", "Delete application" : "Scrios iarratas", "Do you really want to delete the table \"{table}\"?" : "An bhfuil tú cinnte gur mhaith leat an tábla \"{table}\" a scriosadh?", - "Export" : "Easpórtáil", "Add to favorites" : "Cuir le ceanáin", "Remove from favorites" : "Bain ó cheanáin", "Archive table" : "Tábla cartlainne", diff --git a/l10n/ga.json b/l10n/ga.json index c8d39cf28b..8209152ce7 100644 --- a/l10n/ga.json +++ b/l10n/ga.json @@ -570,7 +570,6 @@ "Export scheme" : "Scéim onnmhairithe", "Delete application" : "Scrios iarratas", "Do you really want to delete the table \"{table}\"?" : "An bhfuil tú cinnte gur mhaith leat an tábla \"{table}\" a scriosadh?", - "Export" : "Easpórtáil", "Add to favorites" : "Cuir le ceanáin", "Remove from favorites" : "Bain ó cheanáin", "Archive table" : "Tábla cartlainne", diff --git a/l10n/gl.js b/l10n/gl.js index e78fa83394..d653da35f6 100644 --- a/l10n/gl.js +++ b/l10n/gl.js @@ -388,7 +388,6 @@ OC.L10N.register( "Saving..." : "Gardando…", "Delete application" : "Eliminar a aplicación", "Do you really want to delete the table \"{table}\"?" : "Confirma que quere eliminar a táboa «{table}»?", - "Export" : "Exportar", "Add to favorites" : "Engadir a favoritos", "Remove from favorites" : "Retirar dos favoritos", "Archive table" : "Arquivar a táboa", diff --git a/l10n/gl.json b/l10n/gl.json index 786d6c4748..fe0adb602a 100644 --- a/l10n/gl.json +++ b/l10n/gl.json @@ -386,7 +386,6 @@ "Saving..." : "Gardando…", "Delete application" : "Eliminar a aplicación", "Do you really want to delete the table \"{table}\"?" : "Confirma que quere eliminar a táboa «{table}»?", - "Export" : "Exportar", "Add to favorites" : "Engadir a favoritos", "Remove from favorites" : "Retirar dos favoritos", "Archive table" : "Arquivar a táboa", diff --git a/l10n/he.js b/l10n/he.js index f7b2fb0e56..64747e91ca 100644 --- a/l10n/he.js +++ b/l10n/he.js @@ -128,7 +128,6 @@ OC.L10N.register( "Automatic" : "אוטומטי", "Advanced settings" : "הגדרות מתקדמות", "Saving..." : "מתבצעת שמירה…", - "Export" : "ייצוא", "Copy" : "העתקה", "Favorites" : "מועדפים", "Clear filter" : "מחיקת מסנן", diff --git a/l10n/he.json b/l10n/he.json index a7995aedbd..b91fc5f2ca 100644 --- a/l10n/he.json +++ b/l10n/he.json @@ -126,7 +126,6 @@ "Automatic" : "אוטומטי", "Advanced settings" : "הגדרות מתקדמות", "Saving..." : "מתבצעת שמירה…", - "Export" : "ייצוא", "Copy" : "העתקה", "Favorites" : "מועדפים", "Clear filter" : "מחיקת מסנן", diff --git a/l10n/hr.js b/l10n/hr.js index 23aa3ebd18..c3cf5f3aac 100644 --- a/l10n/hr.js +++ b/l10n/hr.js @@ -110,7 +110,6 @@ OC.L10N.register( "Automatic" : "Automatsko", "Advanced settings" : "Napredne postavke", "Saving..." : "Spremanje...", - "Export" : "Izvoz", "Add to favorites" : "Dodaj u favorite", "Remove from favorites" : "Ukloni iz omiljenih", "Copy" : "Kopirajte", diff --git a/l10n/hr.json b/l10n/hr.json index 63dc8f6dd9..ebfbd0844a 100644 --- a/l10n/hr.json +++ b/l10n/hr.json @@ -108,7 +108,6 @@ "Automatic" : "Automatsko", "Advanced settings" : "Napredne postavke", "Saving..." : "Spremanje...", - "Export" : "Izvoz", "Add to favorites" : "Dodaj u favorite", "Remove from favorites" : "Ukloni iz omiljenih", "Copy" : "Kopirajte", diff --git a/l10n/hu.js b/l10n/hu.js index 5606cb7c75..980c9e3893 100644 --- a/l10n/hu.js +++ b/l10n/hu.js @@ -292,7 +292,6 @@ OC.L10N.register( "Advanced settings" : "Speciális beállítások", "Saving..." : "Mentés…", "Do you really want to delete the table \"{table}\"?" : "Biztos, hogy törli a(z) „{table}” táblázatot?", - "Export" : "Exportálás", "Add to favorites" : "Hozzáadás a kedvencekhez ", "Remove from favorites" : "Eltávolítás a kedvencek közül", "Archive table" : "Tábla archiválása", diff --git a/l10n/hu.json b/l10n/hu.json index ca45d5751e..b221267c06 100644 --- a/l10n/hu.json +++ b/l10n/hu.json @@ -290,7 +290,6 @@ "Advanced settings" : "Speciális beállítások", "Saving..." : "Mentés…", "Do you really want to delete the table \"{table}\"?" : "Biztos, hogy törli a(z) „{table}” táblázatot?", - "Export" : "Exportálás", "Add to favorites" : "Hozzáadás a kedvencekhez ", "Remove from favorites" : "Eltávolítás a kedvencek közül", "Archive table" : "Tábla archiválása", diff --git a/l10n/ia.js b/l10n/ia.js index d289e98d3a..4a3def8c89 100644 --- a/l10n/ia.js +++ b/l10n/ia.js @@ -43,7 +43,6 @@ OC.L10N.register( "Automatic" : "Automatic", "Advanced settings" : "Configurationes avantiate", "Saving..." : "Salveguardante...", - "Export" : "Exportar", "Favorites" : "Favoritos", "group" : "gruppo", "Share link" : "Divulgar ligamine", diff --git a/l10n/ia.json b/l10n/ia.json index 5d5084c37e..3688725e8f 100644 --- a/l10n/ia.json +++ b/l10n/ia.json @@ -41,7 +41,6 @@ "Automatic" : "Automatic", "Advanced settings" : "Configurationes avantiate", "Saving..." : "Salveguardante...", - "Export" : "Exportar", "Favorites" : "Favoritos", "group" : "gruppo", "Share link" : "Divulgar ligamine", diff --git a/l10n/id.js b/l10n/id.js index ad86fe62ba..7ff3bc4e0b 100644 --- a/l10n/id.js +++ b/l10n/id.js @@ -567,7 +567,6 @@ OC.L10N.register( "Export scheme" : "Ekspor skema", "Delete application" : "Hapus aplikasi", "Do you really want to delete the table \"{table}\"?" : "Apakah Anda benar-benar ingin menghapus tabel \"{table}\"?", - "Export" : "Ekspor", "Add to favorites" : "Tambahkan ke favorit", "Remove from favorites" : "Hapus dari favorit", "Archive table" : "Arsipkan tabel", diff --git a/l10n/id.json b/l10n/id.json index 1d329a53be..adde607f10 100644 --- a/l10n/id.json +++ b/l10n/id.json @@ -565,7 +565,6 @@ "Export scheme" : "Ekspor skema", "Delete application" : "Hapus aplikasi", "Do you really want to delete the table \"{table}\"?" : "Apakah Anda benar-benar ingin menghapus tabel \"{table}\"?", - "Export" : "Ekspor", "Add to favorites" : "Tambahkan ke favorit", "Remove from favorites" : "Hapus dari favorit", "Archive table" : "Arsipkan tabel", diff --git a/l10n/is.js b/l10n/is.js index dc9aa7a859..36e51487f8 100644 --- a/l10n/is.js +++ b/l10n/is.js @@ -100,7 +100,6 @@ OC.L10N.register( "Automatic" : "Sjálfvirkt", "Advanced settings" : "Ítarlegri valkostir", "Saving..." : "Vista...", - "Export" : "Flytja út", "Add to favorites" : "Bæta í eftirlæti", "Remove from favorites" : "Fjarlægja úr eftirlætum", "Copy" : "Afrita", diff --git a/l10n/is.json b/l10n/is.json index cca1d1ac6e..a4fb6e07ef 100644 --- a/l10n/is.json +++ b/l10n/is.json @@ -98,7 +98,6 @@ "Automatic" : "Sjálfvirkt", "Advanced settings" : "Ítarlegri valkostir", "Saving..." : "Vista...", - "Export" : "Flytja út", "Add to favorites" : "Bæta í eftirlæti", "Remove from favorites" : "Fjarlægja úr eftirlætum", "Copy" : "Afrita", diff --git a/l10n/it.js b/l10n/it.js index 2fed6bbc01..b9e810b82e 100644 --- a/l10n/it.js +++ b/l10n/it.js @@ -250,7 +250,6 @@ OC.L10N.register( "Saving..." : "Salvataggio…", "Delete application" : "Elimina applicazione", "Do you really want to delete the table \"{table}\"?" : "Vuoi davvero eliminare la tabella \"{table}\"?", - "Export" : "Esporta", "Add to favorites" : "Aggiungi ai preferiti", "Remove from favorites" : "Rimuovi dai preferiti", "Delete table" : "Elimina tabella", diff --git a/l10n/it.json b/l10n/it.json index c69e7cd7ec..6925e4a47b 100644 --- a/l10n/it.json +++ b/l10n/it.json @@ -248,7 +248,6 @@ "Saving..." : "Salvataggio…", "Delete application" : "Elimina applicazione", "Do you really want to delete the table \"{table}\"?" : "Vuoi davvero eliminare la tabella \"{table}\"?", - "Export" : "Esporta", "Add to favorites" : "Aggiungi ai preferiti", "Remove from favorites" : "Rimuovi dai preferiti", "Delete table" : "Elimina tabella", diff --git a/l10n/ja.js b/l10n/ja.js index e9843f0bc7..65ff83e88d 100644 --- a/l10n/ja.js +++ b/l10n/ja.js @@ -303,7 +303,6 @@ OC.L10N.register( "Saving..." : "保存中...", "Delete application" : "アプリケーションの削除", "Do you really want to delete the table \"{table}\"?" : "本当にテーブル\"{table}\"を削除しますか?", - "Export" : "エクスポート", "Add to favorites" : "お気に入りに追加", "Remove from favorites" : "お気に入りから削除", "Archive table" : "テーブルをアーカイブする", diff --git a/l10n/ja.json b/l10n/ja.json index 1ec4333054..d2dba6823e 100644 --- a/l10n/ja.json +++ b/l10n/ja.json @@ -301,7 +301,6 @@ "Saving..." : "保存中...", "Delete application" : "アプリケーションの削除", "Do you really want to delete the table \"{table}\"?" : "本当にテーブル\"{table}\"を削除しますか?", - "Export" : "エクスポート", "Add to favorites" : "お気に入りに追加", "Remove from favorites" : "お気に入りから削除", "Archive table" : "テーブルをアーカイブする", diff --git a/l10n/ka.js b/l10n/ka.js index 6c8034b19a..6fee9bc683 100644 --- a/l10n/ka.js +++ b/l10n/ka.js @@ -74,7 +74,6 @@ OC.L10N.register( "Filter" : "Filter", "Automatic" : "Automatic", "Advanced settings" : "Advanced settings", - "Export" : "Export", "Add to favorites" : "Add to favorites", "Remove from favorites" : "Remove from favorites", "Copy" : "Copy", diff --git a/l10n/ka.json b/l10n/ka.json index cc95e47f99..dc964c9ac4 100644 --- a/l10n/ka.json +++ b/l10n/ka.json @@ -72,7 +72,6 @@ "Filter" : "Filter", "Automatic" : "Automatic", "Advanced settings" : "Advanced settings", - "Export" : "Export", "Add to favorites" : "Add to favorites", "Remove from favorites" : "Remove from favorites", "Copy" : "Copy", diff --git a/l10n/ka_GE.js b/l10n/ka_GE.js index bc0fe7e4ee..fd9a5b7686 100644 --- a/l10n/ka_GE.js +++ b/l10n/ka_GE.js @@ -57,7 +57,6 @@ OC.L10N.register( "Automatic" : "ავტომატური", "Advanced settings" : "დამატებითი პარამეტრები", "Saving..." : "მიმხინარეობს შენახვა…", - "Export" : "ექსპორტი", "Remove from favorites" : "რჩეულებიდან მოშორება", "Favorites" : "რჩეულები", "group" : "ჯგუფი", diff --git a/l10n/ka_GE.json b/l10n/ka_GE.json index eb4d001675..f1c5529869 100644 --- a/l10n/ka_GE.json +++ b/l10n/ka_GE.json @@ -55,7 +55,6 @@ "Automatic" : "ავტომატური", "Advanced settings" : "დამატებითი პარამეტრები", "Saving..." : "მიმხინარეობს შენახვა…", - "Export" : "ექსპორტი", "Remove from favorites" : "რჩეულებიდან მოშორება", "Favorites" : "რჩეულები", "group" : "ჯგუფი", diff --git a/l10n/kab.js b/l10n/kab.js index 37e4e9e71b..776ede4e23 100644 --- a/l10n/kab.js +++ b/l10n/kab.js @@ -97,7 +97,6 @@ OC.L10N.register( "Gallery" : "Timidelt", "Automatic" : "Awurman", "Delete application" : "Kkes asnas", - "Export" : "Sifeḍ", "Add to favorites" : "Rnu ismal", "Remove from favorites" : "Kkes-it seg ismal", "Delete table" : "Kkes tafelwit", diff --git a/l10n/kab.json b/l10n/kab.json index 6b67490464..ad396d5609 100644 --- a/l10n/kab.json +++ b/l10n/kab.json @@ -95,7 +95,6 @@ "Gallery" : "Timidelt", "Automatic" : "Awurman", "Delete application" : "Kkes asnas", - "Export" : "Sifeḍ", "Add to favorites" : "Rnu ismal", "Remove from favorites" : "Kkes-it seg ismal", "Delete table" : "Kkes tafelwit", diff --git a/l10n/ko.js b/l10n/ko.js index 98ff8d3bb8..2aba1b4799 100644 --- a/l10n/ko.js +++ b/l10n/ko.js @@ -283,7 +283,6 @@ OC.L10N.register( "Advanced settings" : "고급 설정", "Saving..." : "저장 중...", "Do you really want to delete the table \"{table}\"?" : "표 \"{table}\"을(를) 정말 삭제하겠습니까?", - "Export" : "내보내기", "Remove from favorites" : "즐겨찾기에서 삭제", "Delete table" : "표 삭제", "Copy" : "복사", diff --git a/l10n/ko.json b/l10n/ko.json index 28227ad439..6f1597e623 100644 --- a/l10n/ko.json +++ b/l10n/ko.json @@ -281,7 +281,6 @@ "Advanced settings" : "고급 설정", "Saving..." : "저장 중...", "Do you really want to delete the table \"{table}\"?" : "표 \"{table}\"을(를) 정말 삭제하겠습니까?", - "Export" : "내보내기", "Remove from favorites" : "즐겨찾기에서 삭제", "Delete table" : "표 삭제", "Copy" : "복사", diff --git a/l10n/lb.js b/l10n/lb.js index e36c5687c4..77378918ac 100644 --- a/l10n/lb.js +++ b/l10n/lb.js @@ -52,7 +52,6 @@ OC.L10N.register( "Automatic" : "Automatesch", "Advanced settings" : "Erweidert Astellungen", "Saving..." : "Speicheren...", - "Export" : "Exportéieren", "Copy" : "Kopie", "Favorites" : "Favoriten", "group" : "Grupp", diff --git a/l10n/lb.json b/l10n/lb.json index 2ce12ff2ce..15264de5e4 100644 --- a/l10n/lb.json +++ b/l10n/lb.json @@ -50,7 +50,6 @@ "Automatic" : "Automatesch", "Advanced settings" : "Erweidert Astellungen", "Saving..." : "Speicheren...", - "Export" : "Exportéieren", "Copy" : "Kopie", "Favorites" : "Favoriten", "group" : "Grupp", diff --git a/l10n/lo.js b/l10n/lo.js index 32f91cfbd2..1e5556306c 100644 --- a/l10n/lo.js +++ b/l10n/lo.js @@ -385,7 +385,6 @@ OC.L10N.register( "Saving..." : "ກຳລັງບັນທຶກ...", "Delete application" : "ລຶບແອັບພລິເຄຊັນ", "Do you really want to delete the table \"{table}\"?" : "ທ່ານຕ້ອງການລຶບຕາຕະລາງ \"{table}\" ແທ້ໆບໍ?", - "Export" : "ສົ່ງອອກ", "Add to favorites" : "ເພີ່ມລາຍການທີ່ມັກ", "Remove from favorites" : "ລຶບອອກຈາກລາຍການທີ່ມັກ", "Archive table" : "ຈັດເກັບຕາຕະລາງ", diff --git a/l10n/lo.json b/l10n/lo.json index a3f3d7d91c..7fe733aa5a 100644 --- a/l10n/lo.json +++ b/l10n/lo.json @@ -383,7 +383,6 @@ "Saving..." : "ກຳລັງບັນທຶກ...", "Delete application" : "ລຶບແອັບພລິເຄຊັນ", "Do you really want to delete the table \"{table}\"?" : "ທ່ານຕ້ອງການລຶບຕາຕະລາງ \"{table}\" ແທ້ໆບໍ?", - "Export" : "ສົ່ງອອກ", "Add to favorites" : "ເພີ່ມລາຍການທີ່ມັກ", "Remove from favorites" : "ລຶບອອກຈາກລາຍການທີ່ມັກ", "Archive table" : "ຈັດເກັບຕາຕະລາງ", diff --git a/l10n/lt_LT.js b/l10n/lt_LT.js index e0bbfb40e1..526a7be628 100644 --- a/l10n/lt_LT.js +++ b/l10n/lt_LT.js @@ -530,7 +530,6 @@ OC.L10N.register( "Saving..." : "Įrašoma...", "Delete application" : "Ištrinti paraišką", "Do you really want to delete the table \"{table}\"?" : "Ar tikrai norite ištrinti lentelę „{table}“?", - "Export" : "Eksportuoti", "Add to favorites" : "Pridėti į mėgstamus", "Remove from favorites" : "Šalinti iš svarbiausių", "Archive table" : "Archyvuoti lentelę", diff --git a/l10n/lt_LT.json b/l10n/lt_LT.json index d7299ec259..0da8b662f3 100644 --- a/l10n/lt_LT.json +++ b/l10n/lt_LT.json @@ -528,7 +528,6 @@ "Saving..." : "Įrašoma...", "Delete application" : "Ištrinti paraišką", "Do you really want to delete the table \"{table}\"?" : "Ar tikrai norite ištrinti lentelę „{table}“?", - "Export" : "Eksportuoti", "Add to favorites" : "Pridėti į mėgstamus", "Remove from favorites" : "Šalinti iš svarbiausių", "Archive table" : "Archyvuoti lentelę", diff --git a/l10n/lv.js b/l10n/lv.js index cac5e1fcd0..bf038dd3ac 100644 --- a/l10n/lv.js +++ b/l10n/lv.js @@ -89,7 +89,6 @@ OC.L10N.register( "Automatic" : "Automātisks", "Advanced settings" : "Paplašināti iestatījumi", "Saving..." : "Saglabā...", - "Export" : "Izgūt", "Add to favorites" : "Pievienot izlasei", "Remove from favorites" : "Noņemt no izlases", "Copy" : "Kopēt", diff --git a/l10n/lv.json b/l10n/lv.json index bdbe80ce60..4dc3db38f4 100644 --- a/l10n/lv.json +++ b/l10n/lv.json @@ -87,7 +87,6 @@ "Automatic" : "Automātisks", "Advanced settings" : "Paplašināti iestatījumi", "Saving..." : "Saglabā...", - "Export" : "Izgūt", "Add to favorites" : "Pievienot izlasei", "Remove from favorites" : "Noņemt no izlases", "Copy" : "Kopēt", diff --git a/l10n/mk.js b/l10n/mk.js index 40a8cc1888..d5a038b6de 100644 --- a/l10n/mk.js +++ b/l10n/mk.js @@ -93,7 +93,6 @@ OC.L10N.register( "Automatic" : "Автоматски", "Advanced settings" : "Напредни параметри", "Saving..." : "Зачувува ...", - "Export" : "Извези", "Add to favorites" : "Додади во фаворити", "Remove from favorites" : "Избриши од фаворити", "Copy" : "Копирај", diff --git a/l10n/mk.json b/l10n/mk.json index a3d875586f..7d2f3af583 100644 --- a/l10n/mk.json +++ b/l10n/mk.json @@ -91,7 +91,6 @@ "Automatic" : "Автоматски", "Advanced settings" : "Напредни параметри", "Saving..." : "Зачувува ...", - "Export" : "Извези", "Add to favorites" : "Додади во фаворити", "Remove from favorites" : "Избриши од фаворити", "Copy" : "Копирај", diff --git a/l10n/mn.js b/l10n/mn.js index db4d2300c3..50b08c28e6 100644 --- a/l10n/mn.js +++ b/l10n/mn.js @@ -90,7 +90,6 @@ OC.L10N.register( "Automatic" : "Автомат", "Advanced settings" : "–ù–∞—Ä–∏–π–≤—á–∏–ª—Å–∞–Ω —Ç–æ—Ö–∏—Ä–≥–æ–æ", "Saving..." : "Хадгалж байна...", - "Export" : "–≠–∫—Å–ø–æ—Ä—Ç", "Add to favorites" : "Дуртайд нэмэх", "Remove from favorites" : "Дуртайнуудаас хасах", "Copy" : "—Ö—É—É–ª–∞—Ö", diff --git a/l10n/mn.json b/l10n/mn.json index 46c17fd050..ce903f81c5 100644 --- a/l10n/mn.json +++ b/l10n/mn.json @@ -88,7 +88,6 @@ "Automatic" : "Автомат", "Advanced settings" : "–ù–∞—Ä–∏–π–≤—á–∏–ª—Å–∞–Ω —Ç–æ—Ö–∏—Ä–≥–æ–æ", "Saving..." : "Хадгалж байна...", - "Export" : "–≠–∫—Å–ø–æ—Ä—Ç", "Add to favorites" : "Дуртайд нэмэх", "Remove from favorites" : "Дуртайнуудаас хасах", "Copy" : "—Ö—É—É–ª–∞—Ö", diff --git a/l10n/nb.js b/l10n/nb.js index 648961e2f4..9930165ec6 100644 --- a/l10n/nb.js +++ b/l10n/nb.js @@ -354,7 +354,6 @@ OC.L10N.register( "Saving..." : "Lagrer …", "Delete application" : "Slett applikasjon", "Do you really want to delete the table \"{table}\"?" : "Ønsker du virkelig å slette tabellen \"{table}\"?", - "Export" : "Eksporter", "Add to favorites" : "Legg til favoritter", "Remove from favorites" : "Fjern fra favoritter", "Archive table" : "Arkiver tabell", diff --git a/l10n/nb.json b/l10n/nb.json index 6cff6f7e25..21f6971a98 100644 --- a/l10n/nb.json +++ b/l10n/nb.json @@ -352,7 +352,6 @@ "Saving..." : "Lagrer …", "Delete application" : "Slett applikasjon", "Do you really want to delete the table \"{table}\"?" : "Ønsker du virkelig å slette tabellen \"{table}\"?", - "Export" : "Eksporter", "Add to favorites" : "Legg til favoritter", "Remove from favorites" : "Fjern fra favoritter", "Archive table" : "Arkiver tabell", diff --git a/l10n/nl.js b/l10n/nl.js index 08348cf9b4..62b33a8bb2 100644 --- a/l10n/nl.js +++ b/l10n/nl.js @@ -177,7 +177,6 @@ OC.L10N.register( "Automatic" : "Automatisch", "Advanced settings" : "Geavanceerde instellingen", "Saving..." : "Opslaan...", - "Export" : "Exporteren", "Add to favorites" : "Toevoegen aan favorieten", "Remove from favorites" : "Verwijder uit favorieten", "Archive table" : "Archiveer tabel", diff --git a/l10n/nl.json b/l10n/nl.json index 4217eb07ae..97c5b13068 100644 --- a/l10n/nl.json +++ b/l10n/nl.json @@ -175,7 +175,6 @@ "Automatic" : "Automatisch", "Advanced settings" : "Geavanceerde instellingen", "Saving..." : "Opslaan...", - "Export" : "Exporteren", "Add to favorites" : "Toevoegen aan favorieten", "Remove from favorites" : "Verwijder uit favorieten", "Archive table" : "Archiveer tabel", diff --git a/l10n/nn_NO.js b/l10n/nn_NO.js index c70ccb62fe..e974abc127 100644 --- a/l10n/nn_NO.js +++ b/l10n/nn_NO.js @@ -64,7 +64,6 @@ OC.L10N.register( "Automatic" : "Automatisk", "Advanced settings" : "Avanserte innstillingar", "Saving..." : "Lagrar …", - "Export" : "Eksporter", "Add to favorites" : "Legg til i favorittar", "Copy" : "Kopier", "Favorites" : "Favorittar", diff --git a/l10n/nn_NO.json b/l10n/nn_NO.json index 5cdc0e0165..72ebcd1806 100644 --- a/l10n/nn_NO.json +++ b/l10n/nn_NO.json @@ -62,7 +62,6 @@ "Automatic" : "Automatisk", "Advanced settings" : "Avanserte innstillingar", "Saving..." : "Lagrar …", - "Export" : "Eksporter", "Add to favorites" : "Legg til i favorittar", "Copy" : "Kopier", "Favorites" : "Favorittar", diff --git a/l10n/oc.js b/l10n/oc.js index b54a660950..0145d55840 100644 --- a/l10n/oc.js +++ b/l10n/oc.js @@ -68,7 +68,6 @@ OC.L10N.register( "Automatic" : "Automatic", "Advanced settings" : "Paramètres avançats", "Saving..." : "Enregistrament...", - "Export" : "Exportar", "Add to favorites" : "Apondre als favorits", "Remove from favorites" : "Tirar dels favorits", "Favorites" : "Favorits", diff --git a/l10n/oc.json b/l10n/oc.json index cad34cf318..79783622a5 100644 --- a/l10n/oc.json +++ b/l10n/oc.json @@ -66,7 +66,6 @@ "Automatic" : "Automatic", "Advanced settings" : "Paramètres avançats", "Saving..." : "Enregistrament...", - "Export" : "Exportar", "Add to favorites" : "Apondre als favorits", "Remove from favorites" : "Tirar dels favorits", "Favorites" : "Favorits", diff --git a/l10n/pl.js b/l10n/pl.js index 30413426b8..94b32d7687 100644 --- a/l10n/pl.js +++ b/l10n/pl.js @@ -193,7 +193,6 @@ OC.L10N.register( "Advanced settings" : "Ustawienia zaawansowane", "Saving..." : "Zapisywanie…", "Do you really want to delete the table \"{table}\"?" : "Czy na pewno chcesz usunąć tabelę \"{table}\"?", - "Export" : "Eksportuj", "Add to favorites" : "Dodaj do ulubionych", "Remove from favorites" : "Usuń z ulubionych", "Archive table" : "Zarchiwizuj tabelę", diff --git a/l10n/pl.json b/l10n/pl.json index 66543b70ca..8aeaa4dc1e 100644 --- a/l10n/pl.json +++ b/l10n/pl.json @@ -191,7 +191,6 @@ "Advanced settings" : "Ustawienia zaawansowane", "Saving..." : "Zapisywanie…", "Do you really want to delete the table \"{table}\"?" : "Czy na pewno chcesz usunąć tabelę \"{table}\"?", - "Export" : "Eksportuj", "Add to favorites" : "Dodaj do ulubionych", "Remove from favorites" : "Usuń z ulubionych", "Archive table" : "Zarchiwizuj tabelę", diff --git a/l10n/pt_BR.js b/l10n/pt_BR.js index 46c02db9d7..3e5e820305 100644 --- a/l10n/pt_BR.js +++ b/l10n/pt_BR.js @@ -572,7 +572,6 @@ OC.L10N.register( "Export scheme" : "Exportar esquema", "Delete application" : "Excluir aplicativo", "Do you really want to delete the table \"{table}\"?" : "Você realmente deseja excluir a tabela \"{table}\"?", - "Export" : "Exportar", "Add to favorites" : "Adicionar aos favoritos", "Remove from favorites" : "Remover dos favoritos", "Archive table" : "Arquivar tabela", @@ -800,17 +799,30 @@ OC.L10N.register( "Could not remove share." : "Não foi possível remover compartilhamento.", "Could not update share." : "Não foi possível atualizar compartilhamento.", "Person" : "Pessoa", + "Target circle" : "Círculo-alvo", + "Alarm clock" : "Despertador", + "Vinyl record" : "Disco de vinil", "Warning triangle" : "Triângulo de aviso", "Anchor" : "Âncora", "Android logo" : "Logotipo do Android", + "Stacked frames" : "Molduras empilhadas", "Antenna" : "Antena", "API symbol" : "Símbolo de API", "App grid" : "Grade de aplicativos", + "Speech bubble with sparkle" : "Balão de diálogo com brilho", "At sign" : "Arroba", "ATM" : "Caixa eletrônico", + "Horizontal paperclip" : "Clipe de papel horizontal", "Quad bike" : "Quadriciclo", + "Clockwise circular arrows" : "Setas circulares no sentido horário", "Baby" : "Bebê", + "Backspace key" : "Tecla Backspace", "Balcony" : "Sacada", + "Ballot paper" : "Cédula eleitoral", + "Bandage" : "Curativo", + "Bank building" : "Prédio do banco", + "Oil barrel" : "Barril de petróleo", + "Shopping basket" : "Cesta de compras", "Basketball" : "Basquete", "Bathtub" : "Banheira", "Battery" : "Bateria", @@ -819,22 +831,43 @@ OC.L10N.register( "Bell" : "Sino", "Biathlon" : "Biátlon", "Bicycle" : "Bicicleta", + "Blender" : "Liquidificador", + "Blur dots" : "Pontos desfocados", "Book" : "Livro", "Bookmark" : "Marcador de livro", + "Briefcase" : "Pasta", + "Broadcast signal" : "Sinal de transmissão", + "Brush" : "Pincel", + "Bug" : "Inseto", "Bus" : "Ônibus", + "Counterclockwise circular arrows" : "Setas circulares no sentido anti-horário", "Cake" : "Bolo", "Calendar" : "Calendário", "Camera" : "Câmera", + "Prohibition sign" : "Placa de proibição", "Candle" : "Vela", "Car" : "Carro", + "Shopping cart" : "Cesta de compras", "Mobile phone" : "Celular", + "Hand holding a heart" : "Mão segurando um coração", + "Check mark" : "Marca de seleção", + "Checkbook" : "Talão de cheques", "Church" : "Igreja", "City" : "Cidade", "Clock" : "Relógio", + "Cross mark" : "Marca de cruz", "Cloud" : "Nuvem", "Coffee cup" : "Xícara de café", + "Gear" : "Engrenagem", + "Gears" : "Engrenagens", "Compass" : "Bússola", + "Contact card" : "Cartão de contato", + "Game controller" : "Controle de videogame", + "Copyright symbol" : "Símbolo de direitos autorais", + "Kitchen counter" : "Bancada de cozinha", "Cradle" : "Berço", + "Sparkles" : "Brilhos", + "Cricket bat" : "Taco de críquete", "Trash can" : "Lixeira", "Triangle" : "Triângulo", "Inverted triangle" : "Triângulo invertido", @@ -877,7 +910,7 @@ OC.L10N.register( "Radio" : "Rádio", "Rocket" : "Foguete", "Scanner" : "Escaneador", - "Scooter" : "Scooter", + "Scooter" : "Patinete", "Chair" : "Cadeira", "Paper plane" : "Avião de papel", "SIM card" : "Cartão SIM", @@ -894,7 +927,7 @@ OC.L10N.register( "Television" : "Televisão", "Tennis" : "Tênis", "Mountains" : "Montanhas", - "Ticket" : "Bilhete", + "Ticket" : "Ingresso", "Train" : "Trem", "Truck" : "Caminhão", "USB symbol" : "Símbolo USB", diff --git a/l10n/pt_BR.json b/l10n/pt_BR.json index 157179c2e9..406256073f 100644 --- a/l10n/pt_BR.json +++ b/l10n/pt_BR.json @@ -570,7 +570,6 @@ "Export scheme" : "Exportar esquema", "Delete application" : "Excluir aplicativo", "Do you really want to delete the table \"{table}\"?" : "Você realmente deseja excluir a tabela \"{table}\"?", - "Export" : "Exportar", "Add to favorites" : "Adicionar aos favoritos", "Remove from favorites" : "Remover dos favoritos", "Archive table" : "Arquivar tabela", @@ -798,17 +797,30 @@ "Could not remove share." : "Não foi possível remover compartilhamento.", "Could not update share." : "Não foi possível atualizar compartilhamento.", "Person" : "Pessoa", + "Target circle" : "Círculo-alvo", + "Alarm clock" : "Despertador", + "Vinyl record" : "Disco de vinil", "Warning triangle" : "Triângulo de aviso", "Anchor" : "Âncora", "Android logo" : "Logotipo do Android", + "Stacked frames" : "Molduras empilhadas", "Antenna" : "Antena", "API symbol" : "Símbolo de API", "App grid" : "Grade de aplicativos", + "Speech bubble with sparkle" : "Balão de diálogo com brilho", "At sign" : "Arroba", "ATM" : "Caixa eletrônico", + "Horizontal paperclip" : "Clipe de papel horizontal", "Quad bike" : "Quadriciclo", + "Clockwise circular arrows" : "Setas circulares no sentido horário", "Baby" : "Bebê", + "Backspace key" : "Tecla Backspace", "Balcony" : "Sacada", + "Ballot paper" : "Cédula eleitoral", + "Bandage" : "Curativo", + "Bank building" : "Prédio do banco", + "Oil barrel" : "Barril de petróleo", + "Shopping basket" : "Cesta de compras", "Basketball" : "Basquete", "Bathtub" : "Banheira", "Battery" : "Bateria", @@ -817,22 +829,43 @@ "Bell" : "Sino", "Biathlon" : "Biátlon", "Bicycle" : "Bicicleta", + "Blender" : "Liquidificador", + "Blur dots" : "Pontos desfocados", "Book" : "Livro", "Bookmark" : "Marcador de livro", + "Briefcase" : "Pasta", + "Broadcast signal" : "Sinal de transmissão", + "Brush" : "Pincel", + "Bug" : "Inseto", "Bus" : "Ônibus", + "Counterclockwise circular arrows" : "Setas circulares no sentido anti-horário", "Cake" : "Bolo", "Calendar" : "Calendário", "Camera" : "Câmera", + "Prohibition sign" : "Placa de proibição", "Candle" : "Vela", "Car" : "Carro", + "Shopping cart" : "Cesta de compras", "Mobile phone" : "Celular", + "Hand holding a heart" : "Mão segurando um coração", + "Check mark" : "Marca de seleção", + "Checkbook" : "Talão de cheques", "Church" : "Igreja", "City" : "Cidade", "Clock" : "Relógio", + "Cross mark" : "Marca de cruz", "Cloud" : "Nuvem", "Coffee cup" : "Xícara de café", + "Gear" : "Engrenagem", + "Gears" : "Engrenagens", "Compass" : "Bússola", + "Contact card" : "Cartão de contato", + "Game controller" : "Controle de videogame", + "Copyright symbol" : "Símbolo de direitos autorais", + "Kitchen counter" : "Bancada de cozinha", "Cradle" : "Berço", + "Sparkles" : "Brilhos", + "Cricket bat" : "Taco de críquete", "Trash can" : "Lixeira", "Triangle" : "Triângulo", "Inverted triangle" : "Triângulo invertido", @@ -875,7 +908,7 @@ "Radio" : "Rádio", "Rocket" : "Foguete", "Scanner" : "Escaneador", - "Scooter" : "Scooter", + "Scooter" : "Patinete", "Chair" : "Cadeira", "Paper plane" : "Avião de papel", "SIM card" : "Cartão SIM", @@ -892,7 +925,7 @@ "Television" : "Televisão", "Tennis" : "Tênis", "Mountains" : "Montanhas", - "Ticket" : "Bilhete", + "Ticket" : "Ingresso", "Train" : "Trem", "Truck" : "Caminhão", "USB symbol" : "Símbolo USB", diff --git a/l10n/pt_PT.js b/l10n/pt_PT.js index fd8e3bcac3..355d2192b0 100644 --- a/l10n/pt_PT.js +++ b/l10n/pt_PT.js @@ -388,7 +388,6 @@ OC.L10N.register( "Saving..." : "A guardar...", "Delete application" : "Excluir aplicativo", "Do you really want to delete the table \"{table}\"?" : "Você realmente deseja excluir a tabela \"{table}\"?", - "Export" : "Exportar", "Add to favorites" : "Adicionar aos favoritos", "Remove from favorites" : "Remover dos favoritos", "Archive table" : "Arquivar tabela", diff --git a/l10n/pt_PT.json b/l10n/pt_PT.json index 4614b760e2..a476cb7e51 100644 --- a/l10n/pt_PT.json +++ b/l10n/pt_PT.json @@ -386,7 +386,6 @@ "Saving..." : "A guardar...", "Delete application" : "Excluir aplicativo", "Do you really want to delete the table \"{table}\"?" : "Você realmente deseja excluir a tabela \"{table}\"?", - "Export" : "Exportar", "Add to favorites" : "Adicionar aos favoritos", "Remove from favorites" : "Remover dos favoritos", "Archive table" : "Arquivar tabela", diff --git a/l10n/ro.js b/l10n/ro.js index b642bd0ddd..767ea13c6e 100644 --- a/l10n/ro.js +++ b/l10n/ro.js @@ -572,7 +572,6 @@ OC.L10N.register( "Export scheme" : "Exportă schema", "Delete application" : "Șterge aplicația", "Do you really want to delete the table \"{table}\"?" : "Sigur vrei să ștergi tabelul „{table}”?", - "Export" : "Exportă", "Add to favorites" : "Adaugă la favorite", "Remove from favorites" : "Elimină din favorite", "Archive table" : "Arhivează tabelul", diff --git a/l10n/ro.json b/l10n/ro.json index 40f4112a36..ec46f495c2 100644 --- a/l10n/ro.json +++ b/l10n/ro.json @@ -570,7 +570,6 @@ "Export scheme" : "Exportă schema", "Delete application" : "Șterge aplicația", "Do you really want to delete the table \"{table}\"?" : "Sigur vrei să ștergi tabelul „{table}”?", - "Export" : "Exportă", "Add to favorites" : "Adaugă la favorite", "Remove from favorites" : "Elimină din favorite", "Archive table" : "Arhivează tabelul", diff --git a/l10n/ru.js b/l10n/ru.js index 32dcba7688..264527afb6 100644 --- a/l10n/ru.js +++ b/l10n/ru.js @@ -572,7 +572,6 @@ OC.L10N.register( "Export scheme" : "Экспорт схемы", "Delete application" : "Удалить приложение", "Do you really want to delete the table \"{table}\"?" : "Удалить таблицу «{table}»?", - "Export" : "Экспорт", "Add to favorites" : "Добавить в избранное", "Remove from favorites" : "Убрать из избранного", "Archive table" : "Архивировать таблицу", diff --git a/l10n/ru.json b/l10n/ru.json index ddaefd6033..d18aaffeff 100644 --- a/l10n/ru.json +++ b/l10n/ru.json @@ -570,7 +570,6 @@ "Export scheme" : "Экспорт схемы", "Delete application" : "Удалить приложение", "Do you really want to delete the table \"{table}\"?" : "Удалить таблицу «{table}»?", - "Export" : "Экспорт", "Add to favorites" : "Добавить в избранное", "Remove from favorites" : "Убрать из избранного", "Archive table" : "Архивировать таблицу", diff --git a/l10n/sc.js b/l10n/sc.js index 28d8e200ca..3063a50eae 100644 --- a/l10n/sc.js +++ b/l10n/sc.js @@ -84,7 +84,6 @@ OC.L10N.register( "Automatic" : "Automàticu", "Advanced settings" : "Cunfiguratzione avantzada", "Saving..." : "Sarvende...", - "Export" : "Esporta", "Add to favorites" : "Agiunghe a preferidos", "Remove from favorites" : "Boga·nche dae preferidos", "Copy" : "Còpia", diff --git a/l10n/sc.json b/l10n/sc.json index c9d614bc78..4c006f50ba 100644 --- a/l10n/sc.json +++ b/l10n/sc.json @@ -82,7 +82,6 @@ "Automatic" : "Automàticu", "Advanced settings" : "Cunfiguratzione avantzada", "Saving..." : "Sarvende...", - "Export" : "Esporta", "Add to favorites" : "Agiunghe a preferidos", "Remove from favorites" : "Boga·nche dae preferidos", "Copy" : "Còpia", diff --git a/l10n/sk.js b/l10n/sk.js index 7b77e316fe..cacfbdd9e4 100644 --- a/l10n/sk.js +++ b/l10n/sk.js @@ -572,7 +572,6 @@ OC.L10N.register( "Export scheme" : "Exportovať schému", "Delete application" : "Vymazať aplikáciu", "Do you really want to delete the table \"{table}\"?" : "Naozaj chcete odstrániť tabuľku \"{table}\"?", - "Export" : "Exportovať", "Add to favorites" : "Pridať do obľúbených", "Remove from favorites" : "Odstrániť z obľúbených", "Archive table" : "Archivovať tabuľku", diff --git a/l10n/sk.json b/l10n/sk.json index 38d430e689..d2acb59721 100644 --- a/l10n/sk.json +++ b/l10n/sk.json @@ -570,7 +570,6 @@ "Export scheme" : "Exportovať schému", "Delete application" : "Vymazať aplikáciu", "Do you really want to delete the table \"{table}\"?" : "Naozaj chcete odstrániť tabuľku \"{table}\"?", - "Export" : "Exportovať", "Add to favorites" : "Pridať do obľúbených", "Remove from favorites" : "Odstrániť z obľúbených", "Archive table" : "Archivovať tabuľku", diff --git a/l10n/sl.js b/l10n/sl.js index d36b9500cd..01674c4482 100644 --- a/l10n/sl.js +++ b/l10n/sl.js @@ -270,7 +270,6 @@ OC.L10N.register( "Advanced settings" : "Napredne nastavitve", "Saving..." : "Poteka shranjevanje ...", "Do you really want to delete the table \"{table}\"?" : "Ali res želite izbrisati razpredelnico »{table}«?", - "Export" : "Izvozi", "Add to favorites" : "Dodaj med priljubljene", "Remove from favorites" : "Odstrani iz priljubljenih", "Delete table" : "Izbriši razpredelnico", diff --git a/l10n/sl.json b/l10n/sl.json index 73ee03da20..8bd45fe463 100644 --- a/l10n/sl.json +++ b/l10n/sl.json @@ -268,7 +268,6 @@ "Advanced settings" : "Napredne nastavitve", "Saving..." : "Poteka shranjevanje ...", "Do you really want to delete the table \"{table}\"?" : "Ali res želite izbrisati razpredelnico »{table}«?", - "Export" : "Izvozi", "Add to favorites" : "Dodaj med priljubljene", "Remove from favorites" : "Odstrani iz priljubljenih", "Delete table" : "Izbriši razpredelnico", diff --git a/l10n/sq.js b/l10n/sq.js index 41de0d14d5..4c8f0b2d0d 100644 --- a/l10n/sq.js +++ b/l10n/sq.js @@ -79,7 +79,6 @@ OC.L10N.register( "Automatic" : "Automatike", "Advanced settings" : "Rregullime të mëtejshme", "Saving..." : "Duke ruajtur...", - "Export" : "Eksport", "Add to favorites" : "U shtua te të parapëlqyerat", "Remove from favorites" : "Hiqeni nga të parapëlqyerat", "Copy" : "Kopjoni", diff --git a/l10n/sq.json b/l10n/sq.json index 800bf44cad..3d14ec4ac1 100644 --- a/l10n/sq.json +++ b/l10n/sq.json @@ -77,7 +77,6 @@ "Automatic" : "Automatike", "Advanced settings" : "Rregullime të mëtejshme", "Saving..." : "Duke ruajtur...", - "Export" : "Eksport", "Add to favorites" : "U shtua te të parapëlqyerat", "Remove from favorites" : "Hiqeni nga të parapëlqyerat", "Copy" : "Kopjoni", diff --git a/l10n/sr.js b/l10n/sr.js index 73822f126f..86796430eb 100644 --- a/l10n/sr.js +++ b/l10n/sr.js @@ -387,7 +387,6 @@ OC.L10N.register( "Saving..." : "Снимам...", "Delete application" : "Обриши апликацију", "Do you really want to delete the table \"{table}\"?" : "Да ли заиста желите да обришете табелу „{table}”?", - "Export" : "Извези", "Add to favorites" : "Додаје у омиљене", "Remove from favorites" : "Избаци из омиљених", "Archive table" : "Архивирај табелу", diff --git a/l10n/sr.json b/l10n/sr.json index f76dab7dd7..83ee771e9d 100644 --- a/l10n/sr.json +++ b/l10n/sr.json @@ -385,7 +385,6 @@ "Saving..." : "Снимам...", "Delete application" : "Обриши апликацију", "Do you really want to delete the table \"{table}\"?" : "Да ли заиста желите да обришете табелу „{table}”?", - "Export" : "Извези", "Add to favorites" : "Додаје у омиљене", "Remove from favorites" : "Избаци из омиљених", "Archive table" : "Архивирај табелу", diff --git a/l10n/sr@latin.js b/l10n/sr@latin.js index 472fdb2b6f..f5b3e98510 100644 --- a/l10n/sr@latin.js +++ b/l10n/sr@latin.js @@ -58,7 +58,6 @@ OC.L10N.register( "Layout" : "Raspored", "Automatic" : "Automatski", "Saving..." : "Upisujem...", - "Export" : "Izvezi", "Copy" : "Kopiraj", "Favorites" : "Omiljene", "group" : "grupa", diff --git a/l10n/sr@latin.json b/l10n/sr@latin.json index 51e98c0ae7..40bd4de117 100644 --- a/l10n/sr@latin.json +++ b/l10n/sr@latin.json @@ -56,7 +56,6 @@ "Layout" : "Raspored", "Automatic" : "Automatski", "Saving..." : "Upisujem...", - "Export" : "Izvezi", "Copy" : "Kopiraj", "Favorites" : "Omiljene", "group" : "grupa", diff --git a/l10n/sv.js b/l10n/sv.js index 7c26efecbb..3fa34f46f5 100644 --- a/l10n/sv.js +++ b/l10n/sv.js @@ -572,7 +572,6 @@ OC.L10N.register( "Export scheme" : "Exportera schema", "Delete application" : "Ta bort app", "Do you really want to delete the table \"{table}\"?" : "Vill du verkligen ta bort tabellen \"{table}\"?", - "Export" : "Exportera", "Add to favorites" : "Lägg till i favoriter", "Remove from favorites" : "Ta bort från favoriter", "Archive table" : "Arkivera tabell", diff --git a/l10n/sv.json b/l10n/sv.json index 5b838dcfbd..8a2cefcfe9 100644 --- a/l10n/sv.json +++ b/l10n/sv.json @@ -570,7 +570,6 @@ "Export scheme" : "Exportera schema", "Delete application" : "Ta bort app", "Do you really want to delete the table \"{table}\"?" : "Vill du verkligen ta bort tabellen \"{table}\"?", - "Export" : "Exportera", "Add to favorites" : "Lägg till i favoriter", "Remove from favorites" : "Ta bort från favoriter", "Archive table" : "Arkivera tabell", diff --git a/l10n/sw.js b/l10n/sw.js index 5e04396661..ff1227251d 100644 --- a/l10n/sw.js +++ b/l10n/sw.js @@ -104,7 +104,6 @@ OC.L10N.register( "Automatic" : "Moja kwa moja", "Advanced settings" : "Mipangilio ya kiwango cha juu", "Saving..." : "Inahifadhi", - "Export" : "Safirisha", "Add to favorites" : "Ongeza kwenye pendwa", "Remove from favorites" : "Ondoa kutoka katika pendwa", "Archive table" : "Jedwali la kumbukumbu", diff --git a/l10n/sw.json b/l10n/sw.json index 4cdcc028d6..6d4682ca72 100644 --- a/l10n/sw.json +++ b/l10n/sw.json @@ -102,7 +102,6 @@ "Automatic" : "Moja kwa moja", "Advanced settings" : "Mipangilio ya kiwango cha juu", "Saving..." : "Inahifadhi", - "Export" : "Safirisha", "Add to favorites" : "Ongeza kwenye pendwa", "Remove from favorites" : "Ondoa kutoka katika pendwa", "Archive table" : "Jedwali la kumbukumbu", diff --git a/l10n/th.js b/l10n/th.js index 67f24fc558..72b5b237c3 100644 --- a/l10n/th.js +++ b/l10n/th.js @@ -56,7 +56,6 @@ OC.L10N.register( "Automatic" : "อัตโนมัติ", "Advanced settings" : "การตั้งค่าขั้นสูง", "Saving..." : "กำลังบันทึก...", - "Export" : "ส่งออก", "Add to favorites" : "เพิ่มในรายการโปรด", "Remove from favorites" : "เอาออกจากรายการโปรด", "Copy" : "คัดลอก", diff --git a/l10n/th.json b/l10n/th.json index 883c9e769d..04fc2223f3 100644 --- a/l10n/th.json +++ b/l10n/th.json @@ -54,7 +54,6 @@ "Automatic" : "อัตโนมัติ", "Advanced settings" : "การตั้งค่าขั้นสูง", "Saving..." : "กำลังบันทึก...", - "Export" : "ส่งออก", "Add to favorites" : "เพิ่มในรายการโปรด", "Remove from favorites" : "เอาออกจากรายการโปรด", "Copy" : "คัดลอก", diff --git a/l10n/tr.js b/l10n/tr.js index 1765a644a6..8cb503bdb3 100644 --- a/l10n/tr.js +++ b/l10n/tr.js @@ -572,7 +572,6 @@ OC.L10N.register( "Export scheme" : "Şenayı dışa aktar", "Delete application" : "Uygulamayı sil", "Do you really want to delete the table \"{table}\"?" : "\"{table}\" tablosunu silmek istediğinize emin misiniz?", - "Export" : "Dışa aktar", "Add to favorites" : "Sık kullanılanlara ekle", "Remove from favorites" : "Sık kullanılanlardan kaldır", "Archive table" : "Tabloyu arşivle", @@ -919,28 +918,139 @@ OC.L10N.register( "Chat bubbles" : "Sohbet balonları", "Forward arrow" : "İleri ok", "Fullscreen corners" : "Tam ekran köşeler", + "Directional pad" : "Yön tuşları", + "Gauge" : "Gösterge", + "Freehand line" : "Serbest çizim", + "Gmail logo" : "Gmail logosu", "Golf" : "Golf", + "Google logo" : "Google logosu", + "Grain dots" : "Buğday taneleri", + "Grass" : "Çimen", "Grid" : "Izgara", + "Barbecue grill" : "Mangal", "Gymnastics" : "Jimnastik", + "Person hailing" : "Selam veren kişi", + "Hammer" : "Çekiç", + "Handball" : "Hentbol", + "HDR label" : "HDR etiketi", + "Headphones" : "Kulaklık", + "Headset with microphone" : "Mikrofonlu kulaklık", "Heart" : "Kalp", "Hiking" : "Doğa yürüyüşü", + "Clock with counterclockwise arrow" : "Saat yönünün tersine oklu saat", "House" : "Ev", + "Hub" : "Göbek", + "Human figure" : "İnsan şekli", + "Air vent" : "Havalandırma", "Picture" : "Fotoğraf", + "Inbox tray" : "Gelen kutusu", + "Information symbol" : "Bilgi simgesi", + "Clothes iron" : "Ütü", + "Kabaddi" : "Kabaddi", + "Karate" : "Karate", + "Kayaking" : "Kano", "Key" : "Anahtar", "Keyboard" : "Klavye", + "Kite" : "Kite", + "Kitesurfing" : "Kitesurf", + "Label shape" : "Etiket şekli", + "Ladybug" : "Uğur böceği", + "Landslide" : "Heyelan", + "Laptop" : "Dizüstü bilgisayar", + "External link arrow" : "Dış bağlantı oku", + "Stacked layers" : "Üst üste katmanlar", + "Signal waves" : "Sinyal dalgaları", + "Person reading a book" : "Kitap okuyan kişi", + "Award seal" : "Ödül mührü", + "Lightbulb" : "Ampul", + "Chain link" : "Zincir bağlantı", + "Liquor bottle" : "Likör şişesi", + "Padlock" : "Asma kilit", + "Sign-in arrow" : "Giriş oku", + "Sign-out arrow" : "Çıkış oku", + "Rainbow" : "Gökkuşağı", + "Magnifying glass with plus" : "Artı işareti ile büyüteç", + "Magnifying glass" : "Büyüteç", "Map" : "Harita", + "Highlighter" : "Fosforlu kalem", + "Pill bottle" : "İlaç şişesi", "Meditation" : "Meditasyon", + "Memory chip" : "Bellek çipi", + "Menu lines" : "Menü satırları", + "Merging arrows" : "Birleştirme okları", + "Speech bubble" : "Konuşma balonu", "Microphone" : "Mikrofon", + "Minus sign" : "Eksi işareti", + "Computer monitor" : "Bilgisayar ekranı", + "Moped" : "Moped", + "More options symbol" : "Diğer seçenekleri simgesi", + "Mosque" : "Cami", + "Motorbike" : "Motosiklet", + "Computer mouse" : "Bilgisayar faresi", + "Mustache" : "Bıyık", + "Tree" : "Ağaç", + "Navigation arrow" : "Gezinme oku", + "Newspaper" : "Gazete", + "Half-filled drop" : "Yarım dolu damla", + "Paint palette" : "Resim paleti", + "Panorama photo" : "Manzara fotoğrafı", + "Paperclip" : "Ataş", + "Paragliding" : "Yamaç paraşütü", + "Parking sign" : "Park işareti", "Pasta" : "Makarna", + "Pause symbol" : "Duraklatma simgesi", + "Pencil" : "Kurşun kalem", + "Telephone" : "Telefon", + "Piano" : "Piyano", "Pizza" : "Pizza", + "Play symbol" : "Oynatma simgesi", + "Plus sign" : "Artı işareti", + "Podcast symbol" : "Podcast simgesi", + "Polo" : "Polo", + "Blog post page" : "Günlük iletisi sayfası", + "Power symbol" : "Güç simgesi", + "Printer" : "Yazıcı", "Puzzle" : "Yap boz", + "Racquetball" : "Raketbol", + "Radar screen" : "Radar ekranı", "Radio" : "Radyo", + "RAW label" : "RAW etiketi", + "Redo arrow" : "Yineleme oku", + "Refresh arrow" : "Yenileme oku", + "Remote control" : "Uzaktan kumanda", + "Pencil on a line" : "Bir çizgi üzerinde kurşun kalem", + "Repeat arrows" : "Yineleme okları", + "Replay arrow" : "Yeniden oynatma oku", + "Reply arrow" : "Yanıtla oku", + "Restart arrow" : "Yeniden başlatma oku", + "Restore arrow" : "Geri yükleme oku", + "Rewind symbol" : "Geri sarma simgesi", + "Ribbon" : "Şerit", + "Rocket" : "Roket", + "RSS feed symbol" : "RSS akışı simgesi", + "Rugby" : "Ragbi", + "Running person" : "Koşan insan", + "Satellite" : "Uydu", + "Saxophone" : "Saksafon", "Scanner" : "Tarayıcı", + "Graduation cap" : "Mezuniyet şapkası", "Scooter" : "Skutır", - "Skateboard" : "Skateboard", + "SD card" : "SD kart", + "Chair" : "Sandalye", + "Shield" : "Kalkan", + "Text segments" : "Yazı parçaları", + "Paper plane" : "Kağıttan uçak", + "Shapes" : "Şekiller", + "Share arrow" : "Paylaşma oku", + "Shopping bag" : "Alışveriş torbası", + "Shuffle arrows" : "Karıştırma okları", + "Sigma symbol" : "Sigma simgesi", + "Fork and knife" : "Çatal ve bıçak", + "SIM card" : "SIM kart", + "Skateboard" : "Kaykay", "Snowmobile" : "Kar aracı", "Speaker" : "Hoparlör", - "Star" : "Yıldız koy", + "Star" : "Yıldız", "Mountains" : "Dağlar", "Train" : "Tren", "Truck" : "Kamyon", diff --git a/l10n/tr.json b/l10n/tr.json index 31c29b6f45..c8a38c32e8 100644 --- a/l10n/tr.json +++ b/l10n/tr.json @@ -570,7 +570,6 @@ "Export scheme" : "Şenayı dışa aktar", "Delete application" : "Uygulamayı sil", "Do you really want to delete the table \"{table}\"?" : "\"{table}\" tablosunu silmek istediğinize emin misiniz?", - "Export" : "Dışa aktar", "Add to favorites" : "Sık kullanılanlara ekle", "Remove from favorites" : "Sık kullanılanlardan kaldır", "Archive table" : "Tabloyu arşivle", @@ -917,28 +916,139 @@ "Chat bubbles" : "Sohbet balonları", "Forward arrow" : "İleri ok", "Fullscreen corners" : "Tam ekran köşeler", + "Directional pad" : "Yön tuşları", + "Gauge" : "Gösterge", + "Freehand line" : "Serbest çizim", + "Gmail logo" : "Gmail logosu", "Golf" : "Golf", + "Google logo" : "Google logosu", + "Grain dots" : "Buğday taneleri", + "Grass" : "Çimen", "Grid" : "Izgara", + "Barbecue grill" : "Mangal", "Gymnastics" : "Jimnastik", + "Person hailing" : "Selam veren kişi", + "Hammer" : "Çekiç", + "Handball" : "Hentbol", + "HDR label" : "HDR etiketi", + "Headphones" : "Kulaklık", + "Headset with microphone" : "Mikrofonlu kulaklık", "Heart" : "Kalp", "Hiking" : "Doğa yürüyüşü", + "Clock with counterclockwise arrow" : "Saat yönünün tersine oklu saat", "House" : "Ev", + "Hub" : "Göbek", + "Human figure" : "İnsan şekli", + "Air vent" : "Havalandırma", "Picture" : "Fotoğraf", + "Inbox tray" : "Gelen kutusu", + "Information symbol" : "Bilgi simgesi", + "Clothes iron" : "Ütü", + "Kabaddi" : "Kabaddi", + "Karate" : "Karate", + "Kayaking" : "Kano", "Key" : "Anahtar", "Keyboard" : "Klavye", + "Kite" : "Kite", + "Kitesurfing" : "Kitesurf", + "Label shape" : "Etiket şekli", + "Ladybug" : "Uğur böceği", + "Landslide" : "Heyelan", + "Laptop" : "Dizüstü bilgisayar", + "External link arrow" : "Dış bağlantı oku", + "Stacked layers" : "Üst üste katmanlar", + "Signal waves" : "Sinyal dalgaları", + "Person reading a book" : "Kitap okuyan kişi", + "Award seal" : "Ödül mührü", + "Lightbulb" : "Ampul", + "Chain link" : "Zincir bağlantı", + "Liquor bottle" : "Likör şişesi", + "Padlock" : "Asma kilit", + "Sign-in arrow" : "Giriş oku", + "Sign-out arrow" : "Çıkış oku", + "Rainbow" : "Gökkuşağı", + "Magnifying glass with plus" : "Artı işareti ile büyüteç", + "Magnifying glass" : "Büyüteç", "Map" : "Harita", + "Highlighter" : "Fosforlu kalem", + "Pill bottle" : "İlaç şişesi", "Meditation" : "Meditasyon", + "Memory chip" : "Bellek çipi", + "Menu lines" : "Menü satırları", + "Merging arrows" : "Birleştirme okları", + "Speech bubble" : "Konuşma balonu", "Microphone" : "Mikrofon", + "Minus sign" : "Eksi işareti", + "Computer monitor" : "Bilgisayar ekranı", + "Moped" : "Moped", + "More options symbol" : "Diğer seçenekleri simgesi", + "Mosque" : "Cami", + "Motorbike" : "Motosiklet", + "Computer mouse" : "Bilgisayar faresi", + "Mustache" : "Bıyık", + "Tree" : "Ağaç", + "Navigation arrow" : "Gezinme oku", + "Newspaper" : "Gazete", + "Half-filled drop" : "Yarım dolu damla", + "Paint palette" : "Resim paleti", + "Panorama photo" : "Manzara fotoğrafı", + "Paperclip" : "Ataş", + "Paragliding" : "Yamaç paraşütü", + "Parking sign" : "Park işareti", "Pasta" : "Makarna", + "Pause symbol" : "Duraklatma simgesi", + "Pencil" : "Kurşun kalem", + "Telephone" : "Telefon", + "Piano" : "Piyano", "Pizza" : "Pizza", + "Play symbol" : "Oynatma simgesi", + "Plus sign" : "Artı işareti", + "Podcast symbol" : "Podcast simgesi", + "Polo" : "Polo", + "Blog post page" : "Günlük iletisi sayfası", + "Power symbol" : "Güç simgesi", + "Printer" : "Yazıcı", "Puzzle" : "Yap boz", + "Racquetball" : "Raketbol", + "Radar screen" : "Radar ekranı", "Radio" : "Radyo", + "RAW label" : "RAW etiketi", + "Redo arrow" : "Yineleme oku", + "Refresh arrow" : "Yenileme oku", + "Remote control" : "Uzaktan kumanda", + "Pencil on a line" : "Bir çizgi üzerinde kurşun kalem", + "Repeat arrows" : "Yineleme okları", + "Replay arrow" : "Yeniden oynatma oku", + "Reply arrow" : "Yanıtla oku", + "Restart arrow" : "Yeniden başlatma oku", + "Restore arrow" : "Geri yükleme oku", + "Rewind symbol" : "Geri sarma simgesi", + "Ribbon" : "Şerit", + "Rocket" : "Roket", + "RSS feed symbol" : "RSS akışı simgesi", + "Rugby" : "Ragbi", + "Running person" : "Koşan insan", + "Satellite" : "Uydu", + "Saxophone" : "Saksafon", "Scanner" : "Tarayıcı", + "Graduation cap" : "Mezuniyet şapkası", "Scooter" : "Skutır", - "Skateboard" : "Skateboard", + "SD card" : "SD kart", + "Chair" : "Sandalye", + "Shield" : "Kalkan", + "Text segments" : "Yazı parçaları", + "Paper plane" : "Kağıttan uçak", + "Shapes" : "Şekiller", + "Share arrow" : "Paylaşma oku", + "Shopping bag" : "Alışveriş torbası", + "Shuffle arrows" : "Karıştırma okları", + "Sigma symbol" : "Sigma simgesi", + "Fork and knife" : "Çatal ve bıçak", + "SIM card" : "SIM kart", + "Skateboard" : "Kaykay", "Snowmobile" : "Kar aracı", "Speaker" : "Hoparlör", - "Star" : "Yıldız koy", + "Star" : "Yıldız", "Mountains" : "Dağlar", "Train" : "Tren", "Truck" : "Kamyon", diff --git a/l10n/ug.js b/l10n/ug.js index a906037e78..182023d383 100644 --- a/l10n/ug.js +++ b/l10n/ug.js @@ -385,7 +385,6 @@ OC.L10N.register( "Saving..." : "ساقلاۋاتىدۇ…", "Delete application" : "پروگراممىنى ئۆچۈرۈڭ", "Do you really want to delete the table \"{table}\"?" : "جەدۋەل «{table}» نى ئۆچۈرمەكچىمۇ؟", - "Export" : "چىقار", "Add to favorites" : "ياقتۇرىدىغانلارغا قوشۇڭ", "Remove from favorites" : "ياقتۇرىدىغانلاردىن ئۆچۈرۈڭ", "Archive table" : "ئارخىپ جەدۋىلى", diff --git a/l10n/ug.json b/l10n/ug.json index 2d479fa079..a664ebc292 100644 --- a/l10n/ug.json +++ b/l10n/ug.json @@ -383,7 +383,6 @@ "Saving..." : "ساقلاۋاتىدۇ…", "Delete application" : "پروگراممىنى ئۆچۈرۈڭ", "Do you really want to delete the table \"{table}\"?" : "جەدۋەل «{table}» نى ئۆچۈرمەكچىمۇ؟", - "Export" : "چىقار", "Add to favorites" : "ياقتۇرىدىغانلارغا قوشۇڭ", "Remove from favorites" : "ياقتۇرىدىغانلاردىن ئۆچۈرۈڭ", "Archive table" : "ئارخىپ جەدۋىلى", diff --git a/l10n/uk.js b/l10n/uk.js index 9c99b7fcec..bc39626f94 100644 --- a/l10n/uk.js +++ b/l10n/uk.js @@ -490,7 +490,6 @@ OC.L10N.register( "Saving..." : "Збереження...", "Delete application" : "Вилучити застосунок", "Do you really want to delete the table \"{table}\"?" : "Дійсно вилучити таблицю \"{table}\"?", - "Export" : "Експорт", "Add to favorites" : "Додати зірочку", "Remove from favorites" : "Прибрати зірочку", "Archive table" : "Архівувати таблицю", diff --git a/l10n/uk.json b/l10n/uk.json index b2e080d927..80a36b606d 100644 --- a/l10n/uk.json +++ b/l10n/uk.json @@ -488,7 +488,6 @@ "Saving..." : "Збереження...", "Delete application" : "Вилучити застосунок", "Do you really want to delete the table \"{table}\"?" : "Дійсно вилучити таблицю \"{table}\"?", - "Export" : "Експорт", "Add to favorites" : "Додати зірочку", "Remove from favorites" : "Прибрати зірочку", "Archive table" : "Архівувати таблицю", diff --git a/l10n/uz.js b/l10n/uz.js index 85bcb32854..c9dcfceabc 100644 --- a/l10n/uz.js +++ b/l10n/uz.js @@ -81,7 +81,6 @@ OC.L10N.register( "Gallery" : "Galereya", "Automatic" : "Automatik", "Saving..." : "Saqlanmoqda...", - "Export" : "Eksport", "Add to favorites" : "Sevimlilarga qo'shing", "Remove from favorites" : "Sevimlilardan olib tashlang", "Archive table" : "Arxiv jadvali", diff --git a/l10n/uz.json b/l10n/uz.json index 072a13079d..fdbc2312ba 100644 --- a/l10n/uz.json +++ b/l10n/uz.json @@ -79,7 +79,6 @@ "Gallery" : "Galereya", "Automatic" : "Automatik", "Saving..." : "Saqlanmoqda...", - "Export" : "Eksport", "Add to favorites" : "Sevimlilarga qo'shing", "Remove from favorites" : "Sevimlilardan olib tashlang", "Archive table" : "Arxiv jadvali", diff --git a/l10n/vi.js b/l10n/vi.js index 3de39c1026..7675c8cf7c 100644 --- a/l10n/vi.js +++ b/l10n/vi.js @@ -164,7 +164,6 @@ OC.L10N.register( "Automatic" : "Tự động", "Advanced settings" : "Cài đặt nâng cao", "Saving..." : "Đang lưu...", - "Export" : "Xuất ra", "Favorites" : "Ưa thích", "Clear filter" : "Xóa bộ lọc", "Copy internal link to clipboard" : "Sao chép liên kết nội bộ vào bộ nhớ tạm", diff --git a/l10n/vi.json b/l10n/vi.json index 8f574b3bb4..bdde31a444 100644 --- a/l10n/vi.json +++ b/l10n/vi.json @@ -162,7 +162,6 @@ "Automatic" : "Tự động", "Advanced settings" : "Cài đặt nâng cao", "Saving..." : "Đang lưu...", - "Export" : "Xuất ra", "Favorites" : "Ưa thích", "Clear filter" : "Xóa bộ lọc", "Copy internal link to clipboard" : "Sao chép liên kết nội bộ vào bộ nhớ tạm", diff --git a/l10n/zh_CN.js b/l10n/zh_CN.js index 52a85a7a0a..6e5435c917 100644 --- a/l10n/zh_CN.js +++ b/l10n/zh_CN.js @@ -353,7 +353,6 @@ OC.L10N.register( "Saving..." : "正在保存……", "Delete application" : "删除应用程序", "Do you really want to delete the table \"{table}\"?" : "您真的想要删除数据表“{table}”吗?", - "Export" : "导出", "Add to favorites" : "添加到收藏", "Remove from favorites" : "从收藏中移除", "Archive table" : "封存数据表", diff --git a/l10n/zh_CN.json b/l10n/zh_CN.json index bf3b8d6fa9..1649d047f7 100644 --- a/l10n/zh_CN.json +++ b/l10n/zh_CN.json @@ -351,7 +351,6 @@ "Saving..." : "正在保存……", "Delete application" : "删除应用程序", "Do you really want to delete the table \"{table}\"?" : "您真的想要删除数据表“{table}”吗?", - "Export" : "导出", "Add to favorites" : "添加到收藏", "Remove from favorites" : "从收藏中移除", "Archive table" : "封存数据表", diff --git a/l10n/zh_HK.js b/l10n/zh_HK.js index 92189fe9d6..e3599658f2 100644 --- a/l10n/zh_HK.js +++ b/l10n/zh_HK.js @@ -572,7 +572,6 @@ OC.L10N.register( "Export scheme" : "匯出結構", "Delete application" : "刪除應用程式", "Do you really want to delete the table \"{table}\"?" : "您確定要刪除 \"{table}\" 數據庫表嗎?", - "Export" : "匯出", "Add to favorites" : "新增收藏", "Remove from favorites" : "從最愛中移除", "Archive table" : "封存數據庫表", diff --git a/l10n/zh_HK.json b/l10n/zh_HK.json index b328394ac6..8e476ddb59 100644 --- a/l10n/zh_HK.json +++ b/l10n/zh_HK.json @@ -570,7 +570,6 @@ "Export scheme" : "匯出結構", "Delete application" : "刪除應用程式", "Do you really want to delete the table \"{table}\"?" : "您確定要刪除 \"{table}\" 數據庫表嗎?", - "Export" : "匯出", "Add to favorites" : "新增收藏", "Remove from favorites" : "從最愛中移除", "Archive table" : "封存數據庫表", diff --git a/l10n/zh_TW.js b/l10n/zh_TW.js index 707f78fc8a..f866c65120 100644 --- a/l10n/zh_TW.js +++ b/l10n/zh_TW.js @@ -572,7 +572,6 @@ OC.L10N.register( "Export scheme" : "匯出格式", "Delete application" : "刪除應用程式", "Do you really want to delete the table \"{table}\"?" : "您真的想要刪除表格「{table}」嗎?", - "Export" : "匯出", "Add to favorites" : "新增至我的最愛", "Remove from favorites" : "取消我的最愛", "Archive table" : "封存表格", diff --git a/l10n/zh_TW.json b/l10n/zh_TW.json index e3b18aa0fb..e79792db2a 100644 --- a/l10n/zh_TW.json +++ b/l10n/zh_TW.json @@ -570,7 +570,6 @@ "Export scheme" : "匯出格式", "Delete application" : "刪除應用程式", "Do you really want to delete the table \"{table}\"?" : "您真的想要刪除表格「{table}」嗎?", - "Export" : "匯出", "Add to favorites" : "新增至我的最愛", "Remove from favorites" : "取消我的最愛", "Archive table" : "封存表格", From c1210b3512237a756f3cf44f9df2c2d9aea6ec4f Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Wed, 18 Nov 2026 17:31:09 +0100 Subject: [PATCH 14/62] perf(rows): attach only the returned columns in findPage findPage attached the payload with every column of the table or view and then filtered each row, which gave every row its own copy of the column map and a per-row filter on every listing. The payload is now attached with only the returned columns, after the data of a request for metadata only is emptied, so the rows of one listing share one map. Refs #3096 Assisted-by: ClaudeCode:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 Signed-off-by: Robert Zondervan --- lib/Service/RowService.php | 11 +++-- tests/unit/Service/RowServiceFindPageTest.php | 41 +++++++++++++++++++ 2 files changed, 48 insertions(+), 4 deletions(-) diff --git a/lib/Service/RowService.php b/lib/Service/RowService.php index 4035a7e30a..15b5400f46 100644 --- a/lib/Service/RowService.php +++ b/lib/Service/RowService.php @@ -215,13 +215,16 @@ public function findPage(RowListQuery $query, ?int $tableId, ?int $viewId, strin $criteria['sort'] ?: null, $filterUserId, ); - $this->attachAliasPayloads($rows, $columns); - foreach ($rows as $row) { - if ($isMetadataOnly) { + if ($isMetadataOnly) { + foreach ($rows as $row) { $row->filterDataByColumns([]); } - $row->filterDataByAliasByColumns($criteria['columnIds']); } + $returnedColumnIds = $criteria['columnIds']; + $this->attachAliasPayloads($rows, array_values(array_filter( + $columns, + static fn (Column $column): bool => in_array($column->getId(), $returnedColumnIds, true), + ))); return ['rows' => $rows, 'total' => $total]; } diff --git a/tests/unit/Service/RowServiceFindPageTest.php b/tests/unit/Service/RowServiceFindPageTest.php index 610b1da614..ab471070d8 100644 --- a/tests/unit/Service/RowServiceFindPageTest.php +++ b/tests/unit/Service/RowServiceFindPageTest.php @@ -250,6 +250,47 @@ public function testEveryReturnedColumnIsCarriedWithTheRow(): void { } } + public static function sharedColumnMapProvider(): array { + return [ + 'all columns' => [[], null], + 'fields' => [['fields' => 'name,age'], null], + 'metadata only' => [['fields' => 'id'], null], + 'view' => [[], ['name', 'department']], + ]; + } + + /** + * @dataProvider sharedColumnMapProvider + * @param list|null $viewColumns + */ + public function testTheRowsOfOneListingShareOneColumnMap(array $parameters, ?array $viewColumns): void { + $viewId = null; + if ($viewColumns !== null) { + $view = new View(); + $view->setId(self::VIEW_ID); + $view->setTableId(self::$testTableId); + $view->setColumns(json_encode(array_map(fn (string $name): int => $this->columnsByName[$name]->getId(), $viewColumns))); + $this->viewMapper->method('find')->willReturn($view); + $viewId = self::VIEW_ID; + } + + $found = $this->rowService->findPage($this->query($parameters), $viewId === null ? self::$testTableId : null, $viewId, 'test_user'); + $this->assertCount(5, $found['rows']); + $columnsByAlias = $found['rows'][0]->getColumnsByAlias(); + foreach ($found['rows'] as $row) { + $this->assertSame($columnsByAlias, $row->getColumnsByAlias()); + } + if ($columnsByAlias === []) { + return; + } + + ob_start(); + debug_zval_dump($columnsByAlias); + $dump = (string)ob_get_clean(); + $this->assertSame(1, preg_match('/^array\(\d+\) refcount\((\d+)\)/', $dump, $matches), $dump); + $this->assertGreaterThan(count($found['rows']), (int)$matches[1], 'Each row holds its own copy of the column map.'); + } + public function testARequestFilterNeverWidensTheView(): void { $view = new View(); $view->setId(self::VIEW_ID); From fcb69854c8c3623d2b10024ea2f9dcc5abc858e8 Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Wed, 18 Nov 2026 17:38:11 +0100 Subject: [PATCH 15/62] fix(rows): accept Z and offsets in the createdAt and updatedAt filters The object shape returns the @self times as ATOM in UTC, with +00:00, but the createdAt and updatedAt filters refused any offset, so a time taken from a response was a bad request. A time that ends in Z or an offset of at most 14 hours is now converted to UTC, in which the meta fields are stored, and compared without it. Refs #3096 Assisted-by: ClaudeCode:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 Signed-off-by: Robert Zondervan --- lib/Controller/RowOCSController.php | 2 +- lib/Service/RowObjectSerializer.php | 2 +- lib/Service/RowQueryResolver.php | 30 +++++++++++++++++-- openapi.json | 2 +- src/types/openapi/openapi.ts | 2 +- tests/unit/Service/RowQueryResolverTest.php | 32 +++++++++++++++++++++ 6 files changed, 63 insertions(+), 7 deletions(-) diff --git a/lib/Controller/RowOCSController.php b/lib/Controller/RowOCSController.php index aac4472ddb..5ae6213c49 100644 --- a/lib/Controller/RowOCSController.php +++ b/lib/Controller/RowOCSController.php @@ -129,7 +129,7 @@ public function createRow(string $nodeCollection, int $nodeId, mixed $data): Dat * @param string|null $sort Comma separated technical names, column ids or meta fields (id, createdBy, createdAt, updatedBy, updatedAt), a minus sorts descending. Defaults to the sort of the table or view * @param string|null $search Text to look for in the text cells and the selection labels * @param string|null $fields Comma separated technical names or column ids of the columns to return, the metadata of a row is always returned - * @param array>|null $filter Filters as filter[field]=value or filter[field][operator]=value, all of which must match. A deep object in the query string (for example filter[age][is-greater-than]=30&filter[name]=jane), shown as a string because the API description cannot express nested query parameters. field is a technical name, a column id or a meta field; operator is one of the view filter operators that fit the field's type (without one: is-equal, or contains-item on multi-value columns; long and rich text need an operator such as contains); a value is compared as given and written as the column stores it: a decimal number; a row id for relations and id; YYYY-MM-DD HH:MM for date and time columns, YYYY-MM-DD for date columns, HH:MM for time columns; YYYY-MM-DD with an optional HH:MM or HH:MM:SS, after a space or a T, for createdAt and updatedAt, an exact moment, so compare those with is-greater-than and is-lower-than rather than is-equal; an option id for selections; true or false for checkboxes; a user, group or team id for usergroup columns + * @param array>|null $filter Filters as filter[field]=value or filter[field][operator]=value, all of which must match. A deep object in the query string (for example filter[age][is-greater-than]=30&filter[name]=jane), shown as a string because the API description cannot express nested query parameters. field is a technical name, a column id or a meta field; operator is one of the view filter operators that fit the field's type (without one: is-equal, or contains-item on multi-value columns; long and rich text need an operator such as contains); a value is compared as given and written as the column stores it: a decimal number; a row id for relations and id; YYYY-MM-DD HH:MM for date and time columns, YYYY-MM-DD for date columns, HH:MM for time columns; YYYY-MM-DD with an optional HH:MM or HH:MM:SS, after a space or a T, for createdAt and updatedAt, in UTC unless the time ends in Z or an offset such as +02:00, an exact moment, so compare those with is-greater-than and is-lower-than rather than is-equal; an option id for selections; true or false for checkboxes; a user, group or team id for usergroup columns * @param 'cells'|'object'|null $shape The shape of the returned rows, defaults to "cells". With "object" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC * @return DataResponse|DataResponse * diff --git a/lib/Service/RowObjectSerializer.php b/lib/Service/RowObjectSerializer.php index 837cdabba8..f05f2229f0 100644 --- a/lib/Service/RowObjectSerializer.php +++ b/lib/Service/RowObjectSerializer.php @@ -91,7 +91,7 @@ private function takeUnknownDatetimes(): array { /** * The metadata, with the times in UTC as they are stored, so that they can be used as - * they are in the createdAt and updatedAt filters and sort of the listing. + * they are, offset included, in the createdAt and updatedAt filters of the listing. * * @return TablesRowSelf */ diff --git a/lib/Service/RowQueryResolver.php b/lib/Service/RowQueryResolver.php index ea8f93990f..0209af224c 100644 --- a/lib/Service/RowQueryResolver.php +++ b/lib/Service/RowQueryResolver.php @@ -62,8 +62,12 @@ class RowQueryResolver { 'datetime' => [['Y-m-d H:i'], 'a date and time as YYYY-MM-DD HH:MM'], 'datetime-date' => [['Y-m-d'], 'a date as YYYY-MM-DD'], 'datetime-time' => [['H:i'], 'a time as HH:MM'], - 'meta-datetime' => [['Y-m-d', 'Y-m-d H:i', 'Y-m-d H:i:s', 'Y-m-d\\TH:i', 'Y-m-d\\TH:i:s'], 'a date as YYYY-MM-DD, optionally followed by a space or T and a time as HH:MM or HH:MM:SS'], + 'meta-datetime' => [['Y-m-d', 'Y-m-d H:i', 'Y-m-d H:i:s', 'Y-m-d\\TH:i', 'Y-m-d\\TH:i:s'], 'a date as YYYY-MM-DD, optionally followed by a space or T and a time as HH:MM or HH:MM:SS, which may end in Z or an offset such as +02:00'], ]; + /** + * The formats of a meta date with a time, which may carry a UTC offset. + */ + private const META_DATETIME_FORMATS_WITH_TIME = ['Y-m-d H:i', 'Y-m-d H:i:s', 'Y-m-d\\TH:i', 'Y-m-d\\TH:i:s']; private const COMPARISONS = [ FilterOperator::IS_EQUAL, FilterOperator::IS_NOT_EQUAL, FilterOperator::IS_GREATER_THAN, FilterOperator::IS_GREATER_THAN_OR_EQUAL, @@ -213,10 +217,30 @@ private function resolveFilter(array $filter, array $columnsByName): array { $columnId = $this->resolveColumnId($filter['field'], $columnsByName); $column = $columnId > 0 ? $columnsByName[$columnId] : null; $operator = $filter['operator'] ?? $this->defaultOperator($column); + $typeKey = $column === null ? (self::META_FIELD_TYPES[$columnId] ?? '') : $this->columnTypeKey($column); + $value = $typeKey === 'meta-datetime' ? $this->metaDatetimeInUtc($filter['value']) : $filter['value']; - $this->assertFilterFitsField($filter['field'], $column === null ? (self::META_FIELD_TYPES[$columnId] ?? '') : $this->columnTypeKey($column), $operator, $filter['value']); + $this->assertFilterFitsField($filter['field'], $typeKey, $operator, $value); - return ['columnId' => $columnId, 'operator' => $operator->value, 'value' => $filter['value'], 'literal' => true]; + return ['columnId' => $columnId, 'operator' => $operator->value, 'value' => $value, 'literal' => true]; + } + + /** + * The meta fields are stored in UTC, so a time with Z or an offset is converted to UTC and + * written without it. Any other value is returned unchanged. + */ + private function metaDatetimeInUtc(string $value): string { + if (preg_match('/^(.+?)(Z|[+-](?:0\d|1[0-4]):[0-5]\d)\z/', $value, $matches) !== 1) { + return $value; + } + $offset = new DateTimeZone($matches[2] === 'Z' ? '+00:00' : $matches[2]); + foreach (self::META_DATETIME_FORMATS_WITH_TIME as $format) { + $parsed = DateTimeImmutable::createFromFormat('!' . $format, $matches[1], $offset); + if ($parsed !== false && $parsed->format($format) === $matches[1]) { + return $parsed->setTimezone(new DateTimeZone('UTC'))->format('Y-m-d H:i:s'); + } + } + return $value; } /** diff --git a/openapi.json b/openapi.json index a20142ab75..6d216de619 100644 --- a/openapi.json +++ b/openapi.json @@ -16809,7 +16809,7 @@ { "name": "filter", "in": "query", - "description": "Filters as filter[field]=value or filter[field][operator]=value, all of which must match. A deep object in the query string (for example filter[age][is-greater-than]=30&filter[name]=jane), shown as a string because the API description cannot express nested query parameters. field is a technical name, a column id or a meta field; operator is one of the view filter operators that fit the field's type (without one: is-equal, or contains-item on multi-value columns; long and rich text need an operator such as contains); a value is compared as given and written as the column stores it: a decimal number; a row id for relations and id; YYYY-MM-DD HH:MM for date and time columns, YYYY-MM-DD for date columns, HH:MM for time columns; YYYY-MM-DD with an optional HH:MM or HH:MM:SS, after a space or a T, for createdAt and updatedAt, an exact moment, so compare those with is-greater-than and is-lower-than rather than is-equal; an option id for selections; true or false for checkboxes; a user, group or team id for usergroup columns", + "description": "Filters as filter[field]=value or filter[field][operator]=value, all of which must match. A deep object in the query string (for example filter[age][is-greater-than]=30&filter[name]=jane), shown as a string because the API description cannot express nested query parameters. field is a technical name, a column id or a meta field; operator is one of the view filter operators that fit the field's type (without one: is-equal, or contains-item on multi-value columns; long and rich text need an operator such as contains); a value is compared as given and written as the column stores it: a decimal number; a row id for relations and id; YYYY-MM-DD HH:MM for date and time columns, YYYY-MM-DD for date columns, HH:MM for time columns; YYYY-MM-DD with an optional HH:MM or HH:MM:SS, after a space or a T, for createdAt and updatedAt, in UTC unless the time ends in Z or an offset such as +02:00, an exact moment, so compare those with is-greater-than and is-lower-than rather than is-equal; an option id for selections; true or false for checkboxes; a user, group or team id for usergroup columns", "schema": { "type": "string", "nullable": true diff --git a/src/types/openapi/openapi.ts b/src/types/openapi/openapi.ts index 7deb3128b4..4c894517ad 100644 --- a/src/types/openapi/openapi.ts +++ b/src/types/openapi/openapi.ts @@ -8819,7 +8819,7 @@ export interface operations { readonly search?: string | null; /** @description Comma separated technical names or column ids of the columns to return, the metadata of a row is always returned */ readonly fields?: string | null; - /** @description Filters as filter[field]=value or filter[field][operator]=value, all of which must match. A deep object in the query string (for example filter[age][is-greater-than]=30&filter[name]=jane), shown as a string because the API description cannot express nested query parameters. field is a technical name, a column id or a meta field; operator is one of the view filter operators that fit the field's type (without one: is-equal, or contains-item on multi-value columns; long and rich text need an operator such as contains); a value is compared as given and written as the column stores it: a decimal number; a row id for relations and id; YYYY-MM-DD HH:MM for date and time columns, YYYY-MM-DD for date columns, HH:MM for time columns; YYYY-MM-DD with an optional HH:MM or HH:MM:SS, after a space or a T, for createdAt and updatedAt, an exact moment, so compare those with is-greater-than and is-lower-than rather than is-equal; an option id for selections; true or false for checkboxes; a user, group or team id for usergroup columns */ + /** @description Filters as filter[field]=value or filter[field][operator]=value, all of which must match. A deep object in the query string (for example filter[age][is-greater-than]=30&filter[name]=jane), shown as a string because the API description cannot express nested query parameters. field is a technical name, a column id or a meta field; operator is one of the view filter operators that fit the field's type (without one: is-equal, or contains-item on multi-value columns; long and rich text need an operator such as contains); a value is compared as given and written as the column stores it: a decimal number; a row id for relations and id; YYYY-MM-DD HH:MM for date and time columns, YYYY-MM-DD for date columns, HH:MM for time columns; YYYY-MM-DD with an optional HH:MM or HH:MM:SS, after a space or a T, for createdAt and updatedAt, in UTC unless the time ends in Z or an offset such as +02:00, an exact moment, so compare those with is-greater-than and is-lower-than rather than is-equal; an option id for selections; true or false for checkboxes; a user, group or team id for usergroup columns */ readonly filter?: string | null; /** @description The shape of the returned rows, defaults to "cells". With "object" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC */ readonly shape?: "cells" | "object" | null; diff --git a/tests/unit/Service/RowQueryResolverTest.php b/tests/unit/Service/RowQueryResolverTest.php index dbfdcafd35..b978ab0d16 100644 --- a/tests/unit/Service/RowQueryResolverTest.php +++ b/tests/unit/Service/RowQueryResolverTest.php @@ -189,6 +189,13 @@ public static function filterThatDoesNotFitProvider(): array { 'a selection option id with a leading zero' => [['status' => '01']], 'a multi selection item id with a leading zero' => [['tags' => '01']], 'a meta date with a T but no time' => [['createdAt' => '2026-01-01T']], + 'a meta date without a time but with an offset' => [['createdAt' => '2026-01-01+02:00']], + 'a meta date with Z but no time' => [['createdAt' => '2026-01-01Z']], + 'a meta date with a lowercase z' => [['createdAt' => '2026-01-01T08:30z']], + 'a meta date with an offset without a colon' => [['createdAt' => '2026-01-01T08:30+0200']], + 'a meta date with an offset beyond 14 hours' => [['createdAt' => '2026-01-01T08:30+15:00']], + 'a meta date with an impossible time and an offset' => [['createdAt' => '2026-01-01T25:00+00:00']], + 'an offset on a datetime cell' => [['stamp' => '2026-01-01 10:00+00:00']], ]; } @@ -246,6 +253,31 @@ public function testMetaDatesAcceptAnIsoTimeSeparator(): void { ], $criteria['filter'][0]); } + public static function metaDateWithAnOffsetProvider(): array { + return [ + 'Z' => ['2026-10-16T12:30:00Z', '2026-10-16 12:30:00'], + 'a zero offset, as the object shape returns it' => ['2026-10-16T12:30:00+00:00', '2026-10-16 12:30:00'], + 'a positive offset' => ['2026-10-16T14:30:00+02:00', '2026-10-16 12:30:00'], + 'a negative offset across midnight' => ['2026-10-15T19:00-05:30', '2026-10-16 00:30:00'], + 'a space and minutes only' => ['2026-01-01 00:15+01:00', '2025-12-31 23:15:00'], + ]; + } + + /** + * @dataProvider metaDateWithAnOffsetProvider + */ + public function testAMetaDateWithAnOffsetIsFilteredInUtc(string $given, string $inUtc): void { + $criteria = $this->resolve(['filter' => [ + 'createdAt' => ['is-greater-than' => $given], + 'updatedAt' => ['is-lower-than' => $given], + ]]); + + $this->assertSame([ + ['columnId' => Column::TYPE_META_CREATED_AT, 'operator' => 'is-greater-than', 'value' => $inUtc, 'literal' => true], + ['columnId' => Column::TYPE_META_UPDATED_AT, 'operator' => 'is-lower-than', 'value' => $inUtc, 'literal' => true], + ], $criteria['filter'][0]); + } + public function testADateInADaylightSavingGapIsAccepted(): void { $timeZone = date_default_timezone_get(); date_default_timezone_set('Europe/Amsterdam'); From efb21af7182797e55c7fdad79ba42dc4ead50c77 Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Wed, 18 Nov 2026 17:40:24 +0100 Subject: [PATCH 16/62] test(rows): pin that a time column passes through the object shape Refs #3096 Assisted-by: ClaudeCode:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 Signed-off-by: Robert Zondervan --- tests/unit/Service/RowObjectSerializerTest.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/unit/Service/RowObjectSerializerTest.php b/tests/unit/Service/RowObjectSerializerTest.php index 77081f7bee..276bd6ff87 100644 --- a/tests/unit/Service/RowObjectSerializerTest.php +++ b/tests/unit/Service/RowObjectSerializerTest.php @@ -43,6 +43,7 @@ protected function setUp(): void { 5 => $this->column(5, Column::TYPE_RELATION, '', 'project'), 6 => $this->column(6, Column::TYPE_SELECTION, Column::SUBTYPE_SELECTION_CHECK, 'is_active'), 7 => $this->column(7, Column::TYPE_NUMBER, '', 'age'), + 8 => $this->column(8, Column::TYPE_DATETIME, Column::SUBTYPE_DATETIME_TIME, 'starts_at'), ]; $this->rowSleeveMapper = $this->createMock(RowSleeveMapper::class); $this->logger = $this->createMock(LoggerInterface::class); @@ -101,7 +102,7 @@ public function testSelfCarriesTheMetadataInUtcWithTheUuidAsId(): void { public function testEveryColumnHasAPropertyAlsoWithoutAStoredCell(): void { $object = $this->serializer->serialize($this->row([1 => 'Alice'])); - $this->assertSame(['@self', 'name', 'meeting', 'birthday', 'website', 'project', 'is_active', 'age'], array_keys($object)); + $this->assertSame(['@self', 'name', 'meeting', 'birthday', 'website', 'project', 'is_active', 'age', 'starts_at'], array_keys($object)); $this->assertSame('Alice', $object['name']); $this->assertNull($object['age']); } @@ -126,6 +127,12 @@ public function testDatetimesGetTheOffsetOfTheInstanceTimezone(): void { $this->assertSame('2026-10-16', $object['birthday']); } + public function testATimeIsReturnedAsItIsStored(): void { + $this->logger->expects($this->never())->method('warning'); + + $this->assertSame('09:30', $this->serializer->serialize($this->row([8 => '09:30']))['starts_at']); + } + public function testADatetimeInTheDaylightSavingGapIsReadAsTheMomentAfterTheJump(): void { $object = $this->serializer->serialize($this->row([2 => '2026-03-29 02:30'])); $this->assertSame('2026-03-29T03:30:00+02:00', $object['meeting']); From 792be9d1b2e71dbf65ec7d841fa32e45c551b4c8 Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Wed, 18 Nov 2026 17:54:36 +0100 Subject: [PATCH 17/62] test(rows): read a table and a view in the object shape through the API A Behat scenario lists a table with a datetime, a time, a link and a relation column in the object shape, and a view of it with two of these columns. It checks the offset of the datetime, the link object, the uuid of the relation target, null for empty cells, the uuid in @self and that each object holds exactly the columns of the table or view. Refs #3096 Assisted-by: ClaudeCode:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 Signed-off-by: Robert Zondervan --- tests/integration/features/APIv2.feature | 58 +++++++++++++ .../features/bootstrap/FeatureContext.php | 81 ++++++++++++++++++- 2 files changed, 138 insertions(+), 1 deletion(-) diff --git a/tests/integration/features/APIv2.feature b/tests/integration/features/APIv2.feature index 95afdb037a..cd6af96266 100644 --- a/tests/integration/features/APIv2.feature +++ b/tests/integration/features/APIv2.feature @@ -664,6 +664,64 @@ Feature: APIv2 | two | null | | four | "2023-12-24" | + @api2 @rows + Scenario: Read rows of a table and a view via v2 in the object shape + Given table "Object targets" with emoji "🎯" exists for user "participant1-v2" as "object-targets" via v2 + And column "label" exists with following properties + | type | text | + | subtype | line | + | mandatory | 0 | + And using table "object-targets" + And user "participant1-v2" creates row "target" with following values: + | label | Target | + And table "Object shape" with emoji "🧩" exists for user "participant1-v2" as "object-shape" via v2 + And column "name" exists with following properties + | type | text | + | subtype | line | + | mandatory | 0 | + And column "meeting" exists with following properties + | type | datetime | + | mandatory | 0 | + And column "starts" exists with following properties + | type | datetime | + | subtype | time | + | mandatory | 0 | + And column "website" exists with following properties + | type | text | + | subtype | link | + | textAllowedPattern | url | + | mandatory | 0 | + And relation column "project" exists on table "object-shape" pointing to table "object-targets" using label column "label" + And using table "object-shape" + And user "participant1-v2" creates row "first" relating "project" to row "target" with following values: + | name | AHA | + | meeting | 2026-10-16 14:30 | + | starts | 09:30 | + | website | {"title":"Nextcloud","subline":"URL","providerId":"url","value":"https://nextcloud.com"} | + And user "participant1-v2" creates row "second" with following values: + | name | Empty | + When user "participant1-v2" lists the rows of table "object-shape" using v2 in the object shape + Then the listed objects have exactly the properties "name,meeting,starts,website,project" + And the listed object of row "first" has following values + | name | "AHA" | + | meeting | "2026-10-16T14:30:00+00:00" | + | starts | "09:30" | + | website | {"title":"Nextcloud","url":"https://nextcloud.com","providerId":"url"} | + And the listed object of row "first" has the uuid of row "target" as "project" + And the listed object of row "second" has following values + | name | "Empty" | + | meeting | null | + | starts | null | + | website | null | + | project | null | + When user "participant1-v2" create view "Object view" with emoji "👁" for "object-shape" as "object-view" + And user "participant1-v2" sets columnSettings "name,project" to view "object-view" + And user "participant1-v2" lists the rows of view "object-view" using v2 in the object shape + Then the listed objects have exactly the properties "name,project" + And the listed object of row "first" has following values + | name | "AHA" | + And the listed object of row "first" has the uuid of row "target" as "project" + @api2 @rows Scenario: Try to create rows via v2 with permissions Given table "Rows check" with emoji "👨🏻‍💻" exists for user "participant1-v2" as "base1" via v2 diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php index c23ee0cc15..5ecf9af82e 100644 --- a/tests/integration/features/bootstrap/FeatureContext.php +++ b/tests/integration/features/bootstrap/FeatureContext.php @@ -72,6 +72,8 @@ class FeatureContext implements Context { /** @var array|null Decoded relations response data, stored to allow multiple assertion steps */ private ?array $relationsData = null; + /** @var list> */ + private array $listedObjects = []; /** * FeatureContext constructor. @@ -1759,6 +1761,63 @@ public function theObjectOfTheLastCreatedRowHas(TableNode $properties): void { } } + /** + * @When user :user lists the rows of :nodeType :nodeAlias using v2 in the object shape + */ + public function userListsRowsV2InTheObjectShape(string $user, string $nodeType, string $nodeAlias): void { + $this->setCurrentUser($user); + $node = $this->collectionManager->getByAlias($nodeType, $nodeAlias); + $this->sendOcsRequest('GET', sprintf('/apps/tables/api/2/%ss/%d/rows?shape=object', $nodeType, $node['id'])); + Assert::assertEquals(200, $this->response->getStatusCode()); + $this->listedObjects = $this->getDataFromResponse($this->response)['ocs']['data']['results']; + } + + /** + * @Then the listed objects have exactly the properties :columnAliasList + */ + public function theListedObjectsHaveExactlyTheProperties(string $columnAliasList): void { + $expected = ['@self']; + foreach (explode(',', $columnAliasList) as $columnAlias) { + $expected[] = $this->collectionManager->getByAlias('column', $columnAlias)['technicalName']; + } + Assert::assertNotEmpty($this->listedObjects); + foreach ($this->listedObjects as $object) { + Assert::assertSame($expected, array_keys($object)); + } + } + + /** + * @Then the listed object of row :rowAlias has following values + * + * @param TableNode $properties column aliases and the expected value as JSON + */ + public function theListedObjectOfRowHas(string $rowAlias, TableNode $properties): void { + $object = $this->findListedObject($rowAlias); + foreach ($properties->getRows() as $row) { + $technicalName = $this->collectionManager->getByAlias('column', $row[0])['technicalName']; + Assert::assertArrayHasKey($technicalName, $object); + Assert::assertSame(json_decode($row[1], true, 512, JSON_THROW_ON_ERROR), $object[$technicalName]); + } + } + + /** + * @Then the listed object of row :rowAlias has the uuid of row :targetRowAlias as :columnAlias + */ + public function theListedObjectOfRowRelatesTo(string $rowAlias, string $targetRowAlias, string $columnAlias): void { + $object = $this->findListedObject($rowAlias); + $technicalName = $this->collectionManager->getByAlias('column', $columnAlias)['technicalName']; + Assert::assertSame($this->collectionManager->getByAlias('row', $targetRowAlias)['uuid'], $object[$technicalName]); + } + + private function findListedObject(string $rowAlias): array { + $row = $this->collectionManager->getByAlias('row', $rowAlias); + $matching = array_values(array_filter($this->listedObjects, static fn (array $object): bool => $object['@self']['rowId'] === $row['id'])); + Assert::assertCount(1, $matching); + Assert::assertMatchesRegularExpression('/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/', $matching[0]['@self']['id']); + Assert::assertSame($row['uuid'], $matching[0]['@self']['id']); + return $matching[0]; + } + /** * @Then row exists with following values via legacy interface * @@ -3049,13 +3108,33 @@ public function using(string $nodeType, string $alias): void { * @Given user :user creates row :rowAlias with following values: */ public function userCreatesRowWithFollowingValues(string $user, string $rowAlias, TableNode $properties): void { - $this->setCurrentUser($user); + $props = []; + foreach ($properties->getRows() as $row) { + $columnId = $this->collectionManager->getByAlias('column', $row[0])['id']; + $props[$columnId] = $row[1]; + } + $this->createRowInActiveNode($user, $rowAlias, $props); + } + /** + * @Given user :user creates row :rowAlias relating :columnAlias to row :targetRowAlias with following values: + */ + public function userCreatesRelatingRowWithFollowingValues(string $user, string $rowAlias, string $columnAlias, string $targetRowAlias, TableNode $properties): void { $props = []; foreach ($properties->getRows() as $row) { $columnId = $this->collectionManager->getByAlias('column', $row[0])['id']; $props[$columnId] = $row[1]; } + $props[$this->collectionManager->getByAlias('column', $columnAlias)['id']] = $this->collectionManager->getByAlias('row', $targetRowAlias)['id']; + $this->createRowInActiveNode($user, $rowAlias, $props); + Assert::assertEquals(200, $this->response->getStatusCode()); + } + + /** + * @param array $props + */ + private function createRowInActiveNode(string $user, string $rowAlias, array $props): void { + $this->setCurrentUser($user); if (!$this->activeNode) { throw new \LogicException('Set an active node via "@And using table|view nodeAlias"'); From 412bd4b5e88e69c516c411fc2c1a313d62d25ade Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Wed, 18 Nov 2026 20:35:01 +0100 Subject: [PATCH 18/62] fix(rows): refuse the object shape for an XML response OCS renders a key that starts with @ as an XML attribute, so the @self block of the object shape made every XML response a 500. Until the object shape has an XML form, a request for it is refused with a 400 when the response would be XML, which OCS gives unless the format parameter or else the Accept header asks for JSON. Refs #3096 Assisted-by: ClaudeCode:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 Signed-off-by: Robert Zondervan --- lib/Controller/RowOCSController.php | 22 +++++++++-- openapi.json | 4 +- src/types/openapi/openapi.ts | 4 +- .../unit/Controller/RowOCSControllerTest.php | 37 ++++++++++++++++++- 4 files changed, 58 insertions(+), 9 deletions(-) diff --git a/lib/Controller/RowOCSController.php b/lib/Controller/RowOCSController.php index 5ae6213c49..caef52f2bf 100644 --- a/lib/Controller/RowOCSController.php +++ b/lib/Controller/RowOCSController.php @@ -130,7 +130,7 @@ public function createRow(string $nodeCollection, int $nodeId, mixed $data): Dat * @param string|null $search Text to look for in the text cells and the selection labels * @param string|null $fields Comma separated technical names or column ids of the columns to return, the metadata of a row is always returned * @param array>|null $filter Filters as filter[field]=value or filter[field][operator]=value, all of which must match. A deep object in the query string (for example filter[age][is-greater-than]=30&filter[name]=jane), shown as a string because the API description cannot express nested query parameters. field is a technical name, a column id or a meta field; operator is one of the view filter operators that fit the field's type (without one: is-equal, or contains-item on multi-value columns; long and rich text need an operator such as contains); a value is compared as given and written as the column stores it: a decimal number; a row id for relations and id; YYYY-MM-DD HH:MM for date and time columns, YYYY-MM-DD for date columns, HH:MM for time columns; YYYY-MM-DD with an optional HH:MM or HH:MM:SS, after a space or a T, for createdAt and updatedAt, in UTC unless the time ends in Z or an offset such as +02:00, an exact moment, so compare those with is-greater-than and is-lower-than rather than is-equal; an option id for selections; true or false for checkboxes; a user, group or team id for usergroup columns - * @param 'cells'|'object'|null $shape The shape of the returned rows, defaults to "cells". With "object" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC + * @param 'cells'|'object'|null $shape The shape of the returned rows, defaults to "cells". With "object" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC; only available as JSON * @return DataResponse|DataResponse * * 200: Rows returned @@ -161,7 +161,7 @@ public function getRows( } try { $query = RowListQuery::createFromRequest($page, $offset, $limit, $sort, $search, $fields, $filter); - $rowShape = RowShape::fromRequest($shape); + $rowShape = $this->rowShapeFromRequest($shape); } catch (\InvalidArgumentException $e) { throw new BadRequestError($e->getMessage()); } @@ -193,7 +193,7 @@ public function getRows( * @param 'tables'|'views' $nodeCollection Indicates whether to get a row from a table or view * @param int $nodeId The identifier of the targeted table or view * @param string $rowId The identifier of the row, either its integer id or its uuid - * @param 'cells'|'object'|null $shape The shape of the returned row, defaults to "cells". With "object" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC + * @param 'cells'|'object'|null $shape The shape of the returned row, defaults to "cells". With "object" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC; only available as JSON * @return DataResponse|DataResponse * * 200: Row returned @@ -209,7 +209,7 @@ public function getRow(string $nodeCollection, int $nodeId, string $rowId, ?stri [$tableId, $viewId] = $this->splitNode($nodeCollection, $nodeId); try { try { - $rowShape = RowShape::fromRequest($shape); + $rowShape = $this->rowShapeFromRequest($shape); } catch (\InvalidArgumentException $e) { throw new BadRequestError($e->getMessage()); } @@ -318,6 +318,20 @@ public function deleteRow(string $nodeCollection, int $nodeId, string $rowId): D } } + /** + * The shape a request asks for. The object shape is refused for an XML response, which + * OCS gives unless the format parameter or else the Accept header asks for JSON. + * + * @throws \InvalidArgumentException + */ + private function rowShapeFromRequest(?string $shape): RowShape { + $rowShape = RowShape::fromRequest($shape); + if ($rowShape === RowShape::Object && $this->request->getFormat() !== 'json') { + throw new \InvalidArgumentException('The object shape is only available as JSON.'); + } + return $rowShape; + } + /** * @return TablesRow|TablesRowObject * @throws InternalError diff --git a/openapi.json b/openapi.json index 6d216de619..c6d33938e2 100644 --- a/openapi.json +++ b/openapi.json @@ -16818,7 +16818,7 @@ { "name": "shape", "in": "query", - "description": "The shape of the returned rows, defaults to \"cells\". With \"object\" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC", + "description": "The shape of the returned rows, defaults to \"cells\". With \"object\" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC; only available as JSON", "schema": { "type": "string", "nullable": true, @@ -17113,7 +17113,7 @@ { "name": "shape", "in": "query", - "description": "The shape of the returned row, defaults to \"cells\". With \"object\" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC", + "description": "The shape of the returned row, defaults to \"cells\". With \"object\" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC; only available as JSON", "schema": { "type": "string", "nullable": true, diff --git a/src/types/openapi/openapi.ts b/src/types/openapi/openapi.ts index 4c894517ad..112ae9ece4 100644 --- a/src/types/openapi/openapi.ts +++ b/src/types/openapi/openapi.ts @@ -8821,7 +8821,7 @@ export interface operations { readonly fields?: string | null; /** @description Filters as filter[field]=value or filter[field][operator]=value, all of which must match. A deep object in the query string (for example filter[age][is-greater-than]=30&filter[name]=jane), shown as a string because the API description cannot express nested query parameters. field is a technical name, a column id or a meta field; operator is one of the view filter operators that fit the field's type (without one: is-equal, or contains-item on multi-value columns; long and rich text need an operator such as contains); a value is compared as given and written as the column stores it: a decimal number; a row id for relations and id; YYYY-MM-DD HH:MM for date and time columns, YYYY-MM-DD for date columns, HH:MM for time columns; YYYY-MM-DD with an optional HH:MM or HH:MM:SS, after a space or a T, for createdAt and updatedAt, in UTC unless the time ends in Z or an offset such as +02:00, an exact moment, so compare those with is-greater-than and is-lower-than rather than is-equal; an option id for selections; true or false for checkboxes; a user, group or team id for usergroup columns */ readonly filter?: string | null; - /** @description The shape of the returned rows, defaults to "cells". With "object" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC */ + /** @description The shape of the returned rows, defaults to "cells". With "object" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC; only available as JSON */ readonly shape?: "cells" | "object" | null; }; readonly header: { @@ -9055,7 +9055,7 @@ export interface operations { readonly "rowocs-get-row": { readonly parameters: { readonly query?: { - /** @description The shape of the returned row, defaults to "cells". With "object" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC */ + /** @description The shape of the returned row, defaults to "cells". With "object" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC; only available as JSON */ readonly shape?: "cells" | "object" | null; }; readonly header: { diff --git a/tests/unit/Controller/RowOCSControllerTest.php b/tests/unit/Controller/RowOCSControllerTest.php index e9c672cb1b..9b81b06175 100644 --- a/tests/unit/Controller/RowOCSControllerTest.php +++ b/tests/unit/Controller/RowOCSControllerTest.php @@ -9,6 +9,7 @@ namespace OCA\Tables\Tests\Unit\Controller; +use OC\AppFramework\OCS\V2Response; use OCA\Tables\Controller\RowOCSController; use OCA\Tables\Db\Row2; use OCA\Tables\Db\Table; @@ -36,6 +37,7 @@ class RowOCSControllerTest extends TestCase { private FederationService&MockObject $federationService; private RowObjectSerializer&MockObject $rowObjectSerializer; private RowOCSController $controller; + private ?string $responseFormat = 'json'; protected function setUp(): void { $this->rowService = $this->createMock(RowService::class); @@ -44,8 +46,10 @@ protected function setUp(): void { $this->rowObjectSerializer = $this->createMock(RowObjectSerializer::class); $l10n = $this->createMock(IL10N::class); $l10n->method('t')->willReturnArgument(0); + $request = $this->createMock(IRequest::class); + $request->method('getFormat')->willReturnCallback(fn (): ?string => $this->responseFormat); $this->controller = new RowOCSController( - $this->createMock(IRequest::class), + $request, $this->createMock(LoggerInterface::class), $l10n, 'user1', @@ -261,6 +265,37 @@ public function testGetRowsInTheObjectShape(): void { $this->assertSame([['name' => 'Alice'], ['name' => 'Bob']], $data['results']); } + /** + * @return array + */ + public static function xmlResponseFormat(): array { + return [ + 'format parameter or Accept header' => ['xml'], + 'neither, which OCS answers in XML' => [null], + 'a format OCS does not know' => ['yaml'], + ]; + } + + /** + * @dataProvider xmlResponseFormat + */ + public function testObjectShapeIsRefusedForAnXmlResponse(?string $format): void { + $this->responseFormat = $format; + $this->rowService->method('resolveRowId')->willReturn(7); + $this->rowService->method('findInNode')->willReturn($this->row(7)); + $this->rowService->method('findPage')->willReturn(['rows' => [$this->row(7)], 'total' => 1]); + $this->rowObjectSerializer->method('serialize')->willReturn(['@self' => ['id' => self::UUID], 'name' => 'Alice']); + $this->rowObjectSerializer->method('serializeAll')->willReturn([['@self' => ['id' => self::UUID], 'name' => 'Alice']]); + + foreach ([$this->controller->getRow('tables', 3, self::UUID, 'object'), $this->controller->getRows('tables', 3, shape: 'object')] as $response) { + $this->assertSame(Http::STATUS_BAD_REQUEST, $response->getStatus()); + $this->assertSame(['message' => 'The object shape is only available as JSON.'], $response->getData()); + $this->assertStringContainsString('The object shape is only available as JSON.', (new V2Response($response, 'xml'))->render()); + } + $this->assertSame(Http::STATUS_OK, $this->controller->getRow('tables', 3, self::UUID, 'cells')->getStatus()); + $this->assertSame(Http::STATUS_OK, $this->controller->getRows('tables', 3, shape: 'cells')->getStatus()); + } + public function testCellsShapeIsTheDefault(): void { $this->rowService->method('resolveRowId')->willReturn(7); $this->rowService->method('findInNode')->willReturn($this->row(7)); From 7ccf9726335d1ff7caf08335ff4906bc1aa65b65 Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Wed, 18 Nov 2026 20:48:02 +0100 Subject: [PATCH 19/62] fix(rows): accept a UTC offset of at most 14 hours in meta date filters The offset pattern accepted up to 14:59; the largest offset in use is +14:00, so anything beyond it is refused. Refs #3096 Assisted-by: ClaudeCode:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 Signed-off-by: Robert Zondervan --- lib/Service/RowQueryResolver.php | 2 +- tests/unit/Service/RowQueryResolverTest.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Service/RowQueryResolver.php b/lib/Service/RowQueryResolver.php index 0209af224c..07e6ed8ba7 100644 --- a/lib/Service/RowQueryResolver.php +++ b/lib/Service/RowQueryResolver.php @@ -230,7 +230,7 @@ private function resolveFilter(array $filter, array $columnsByName): array { * written without it. Any other value is returned unchanged. */ private function metaDatetimeInUtc(string $value): string { - if (preg_match('/^(.+?)(Z|[+-](?:0\d|1[0-4]):[0-5]\d)\z/', $value, $matches) !== 1) { + if (preg_match('/^(.+?)(Z|[+-](?:(?:0\d|1[0-3]):[0-5]\d|14:00))\z/', $value, $matches) !== 1) { return $value; } $offset = new DateTimeZone($matches[2] === 'Z' ? '+00:00' : $matches[2]); diff --git a/tests/unit/Service/RowQueryResolverTest.php b/tests/unit/Service/RowQueryResolverTest.php index b978ab0d16..61eb1c3636 100644 --- a/tests/unit/Service/RowQueryResolverTest.php +++ b/tests/unit/Service/RowQueryResolverTest.php @@ -194,6 +194,7 @@ public static function filterThatDoesNotFitProvider(): array { 'a meta date with a lowercase z' => [['createdAt' => '2026-01-01T08:30z']], 'a meta date with an offset without a colon' => [['createdAt' => '2026-01-01T08:30+0200']], 'a meta date with an offset beyond 14 hours' => [['createdAt' => '2026-01-01T08:30+15:00']], + 'a meta date with an offset of 14 hours and some minutes' => [['createdAt' => '2026-01-01T08:30+14:30']], 'a meta date with an impossible time and an offset' => [['createdAt' => '2026-01-01T25:00+00:00']], 'an offset on a datetime cell' => [['stamp' => '2026-01-01 10:00+00:00']], ]; @@ -260,6 +261,7 @@ public static function metaDateWithAnOffsetProvider(): array { 'a positive offset' => ['2026-10-16T14:30:00+02:00', '2026-10-16 12:30:00'], 'a negative offset across midnight' => ['2026-10-15T19:00-05:30', '2026-10-16 00:30:00'], 'a space and minutes only' => ['2026-01-01 00:15+01:00', '2025-12-31 23:15:00'], + 'the largest offset' => ['2026-01-01T14:00+14:00', '2026-01-01 00:00:00'], ]; } From 8ea100236ab8d558f7876e7086d313189dd9f72e Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Wed, 18 Nov 2026 20:48:02 +0100 Subject: [PATCH 20/62] docs(rows): note %2B for offsets in query strings and the shape 400 A + in a query string reads as a space, so the offset of a time taken from @self has to be written as %2B there. The 400 of a single row also covers an unknown shape and the object shape for a response that is not JSON. Refs #3096 Assisted-by: ClaudeCode:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 Signed-off-by: Robert Zondervan --- lib/Controller/RowOCSController.php | 4 ++-- lib/Service/RowObjectSerializer.php | 3 ++- openapi.json | 4 ++-- src/types/openapi/openapi.ts | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/Controller/RowOCSController.php b/lib/Controller/RowOCSController.php index caef52f2bf..36ecc4ddbd 100644 --- a/lib/Controller/RowOCSController.php +++ b/lib/Controller/RowOCSController.php @@ -129,7 +129,7 @@ public function createRow(string $nodeCollection, int $nodeId, mixed $data): Dat * @param string|null $sort Comma separated technical names, column ids or meta fields (id, createdBy, createdAt, updatedBy, updatedAt), a minus sorts descending. Defaults to the sort of the table or view * @param string|null $search Text to look for in the text cells and the selection labels * @param string|null $fields Comma separated technical names or column ids of the columns to return, the metadata of a row is always returned - * @param array>|null $filter Filters as filter[field]=value or filter[field][operator]=value, all of which must match. A deep object in the query string (for example filter[age][is-greater-than]=30&filter[name]=jane), shown as a string because the API description cannot express nested query parameters. field is a technical name, a column id or a meta field; operator is one of the view filter operators that fit the field's type (without one: is-equal, or contains-item on multi-value columns; long and rich text need an operator such as contains); a value is compared as given and written as the column stores it: a decimal number; a row id for relations and id; YYYY-MM-DD HH:MM for date and time columns, YYYY-MM-DD for date columns, HH:MM for time columns; YYYY-MM-DD with an optional HH:MM or HH:MM:SS, after a space or a T, for createdAt and updatedAt, in UTC unless the time ends in Z or an offset such as +02:00, an exact moment, so compare those with is-greater-than and is-lower-than rather than is-equal; an option id for selections; true or false for checkboxes; a user, group or team id for usergroup columns + * @param array>|null $filter Filters as filter[field]=value or filter[field][operator]=value, all of which must match. A deep object in the query string (for example filter[age][is-greater-than]=30&filter[name]=jane), shown as a string because the API description cannot express nested query parameters. field is a technical name, a column id or a meta field; operator is one of the view filter operators that fit the field's type (without one: is-equal, or contains-item on multi-value columns; long and rich text need an operator such as contains); a value is compared as given and written as the column stores it: a decimal number; a row id for relations and id; YYYY-MM-DD HH:MM for date and time columns, YYYY-MM-DD for date columns, HH:MM for time columns; YYYY-MM-DD with an optional HH:MM or HH:MM:SS, after a space or a T, for createdAt and updatedAt, in UTC unless the time ends in Z or an offset such as +02:00 (written %2B02:00 in the query string, where + means a space), an exact moment, so compare those with is-greater-than and is-lower-than rather than is-equal; an option id for selections; true or false for checkboxes; a user, group or team id for usergroup columns * @param 'cells'|'object'|null $shape The shape of the returned rows, defaults to "cells". With "object" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC; only available as JSON * @return DataResponse|DataResponse * @@ -197,7 +197,7 @@ public function getRows( * @return DataResponse|DataResponse * * 200: Row returned - * 400: Invalid row identifier, or the table or view is federated + * 400: Invalid row identifier, an unknown shape or the object shape for a response that is not JSON, or the table or view is federated * 403: No permissions * 404: Not found * 500: Internal error diff --git a/lib/Service/RowObjectSerializer.php b/lib/Service/RowObjectSerializer.php index f05f2229f0..b0c776f6c6 100644 --- a/lib/Service/RowObjectSerializer.php +++ b/lib/Service/RowObjectSerializer.php @@ -91,7 +91,8 @@ private function takeUnknownDatetimes(): array { /** * The metadata, with the times in UTC as they are stored, so that they can be used as - * they are, offset included, in the createdAt and updatedAt filters of the listing. + * they are, offset included, in the createdAt and updatedAt filters of the listing; in a + * query string the + of the offset is written as %2B. * * @return TablesRowSelf */ diff --git a/openapi.json b/openapi.json index c6d33938e2..739d7a42d4 100644 --- a/openapi.json +++ b/openapi.json @@ -16809,7 +16809,7 @@ { "name": "filter", "in": "query", - "description": "Filters as filter[field]=value or filter[field][operator]=value, all of which must match. A deep object in the query string (for example filter[age][is-greater-than]=30&filter[name]=jane), shown as a string because the API description cannot express nested query parameters. field is a technical name, a column id or a meta field; operator is one of the view filter operators that fit the field's type (without one: is-equal, or contains-item on multi-value columns; long and rich text need an operator such as contains); a value is compared as given and written as the column stores it: a decimal number; a row id for relations and id; YYYY-MM-DD HH:MM for date and time columns, YYYY-MM-DD for date columns, HH:MM for time columns; YYYY-MM-DD with an optional HH:MM or HH:MM:SS, after a space or a T, for createdAt and updatedAt, in UTC unless the time ends in Z or an offset such as +02:00, an exact moment, so compare those with is-greater-than and is-lower-than rather than is-equal; an option id for selections; true or false for checkboxes; a user, group or team id for usergroup columns", + "description": "Filters as filter[field]=value or filter[field][operator]=value, all of which must match. A deep object in the query string (for example filter[age][is-greater-than]=30&filter[name]=jane), shown as a string because the API description cannot express nested query parameters. field is a technical name, a column id or a meta field; operator is one of the view filter operators that fit the field's type (without one: is-equal, or contains-item on multi-value columns; long and rich text need an operator such as contains); a value is compared as given and written as the column stores it: a decimal number; a row id for relations and id; YYYY-MM-DD HH:MM for date and time columns, YYYY-MM-DD for date columns, HH:MM for time columns; YYYY-MM-DD with an optional HH:MM or HH:MM:SS, after a space or a T, for createdAt and updatedAt, in UTC unless the time ends in Z or an offset such as +02:00 (written %2B02:00 in the query string, where + means a space), an exact moment, so compare those with is-greater-than and is-lower-than rather than is-equal; an option id for selections; true or false for checkboxes; a user, group or team id for usergroup columns", "schema": { "type": "string", "nullable": true @@ -17212,7 +17212,7 @@ } }, "400": { - "description": "Invalid row identifier, or the table or view is federated", + "description": "Invalid row identifier, an unknown shape or the object shape for a response that is not JSON, or the table or view is federated", "content": { "application/json": { "schema": { diff --git a/src/types/openapi/openapi.ts b/src/types/openapi/openapi.ts index 112ae9ece4..cbd2a881a6 100644 --- a/src/types/openapi/openapi.ts +++ b/src/types/openapi/openapi.ts @@ -8819,7 +8819,7 @@ export interface operations { readonly search?: string | null; /** @description Comma separated technical names or column ids of the columns to return, the metadata of a row is always returned */ readonly fields?: string | null; - /** @description Filters as filter[field]=value or filter[field][operator]=value, all of which must match. A deep object in the query string (for example filter[age][is-greater-than]=30&filter[name]=jane), shown as a string because the API description cannot express nested query parameters. field is a technical name, a column id or a meta field; operator is one of the view filter operators that fit the field's type (without one: is-equal, or contains-item on multi-value columns; long and rich text need an operator such as contains); a value is compared as given and written as the column stores it: a decimal number; a row id for relations and id; YYYY-MM-DD HH:MM for date and time columns, YYYY-MM-DD for date columns, HH:MM for time columns; YYYY-MM-DD with an optional HH:MM or HH:MM:SS, after a space or a T, for createdAt and updatedAt, in UTC unless the time ends in Z or an offset such as +02:00, an exact moment, so compare those with is-greater-than and is-lower-than rather than is-equal; an option id for selections; true or false for checkboxes; a user, group or team id for usergroup columns */ + /** @description Filters as filter[field]=value or filter[field][operator]=value, all of which must match. A deep object in the query string (for example filter[age][is-greater-than]=30&filter[name]=jane), shown as a string because the API description cannot express nested query parameters. field is a technical name, a column id or a meta field; operator is one of the view filter operators that fit the field's type (without one: is-equal, or contains-item on multi-value columns; long and rich text need an operator such as contains); a value is compared as given and written as the column stores it: a decimal number; a row id for relations and id; YYYY-MM-DD HH:MM for date and time columns, YYYY-MM-DD for date columns, HH:MM for time columns; YYYY-MM-DD with an optional HH:MM or HH:MM:SS, after a space or a T, for createdAt and updatedAt, in UTC unless the time ends in Z or an offset such as +02:00 (written %2B02:00 in the query string, where + means a space), an exact moment, so compare those with is-greater-than and is-lower-than rather than is-equal; an option id for selections; true or false for checkboxes; a user, group or team id for usergroup columns */ readonly filter?: string | null; /** @description The shape of the returned rows, defaults to "cells". With "object" a row is one object with a property per column, keyed by its technical name and null without a value: datetimes with the offset of the instance timezone, links as {title, url, providerId}, relations as the uuid of the target row (its row id while it has no uuid yet, null when it no longer exists), and the metadata in @self, with its times in UTC; only available as JSON */ readonly shape?: "cells" | "object" | null; @@ -9088,7 +9088,7 @@ export interface operations { }; }; }; - /** @description Invalid row identifier, or the table or view is federated */ + /** @description Invalid row identifier, an unknown shape or the object shape for a response that is not JSON, or the table or view is federated */ readonly 400: { headers: { readonly [name: string]: unknown; From 11fe56251424e0694c3f66ba42b5acd69fe86cf4 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 19 Nov 2026 23:09:33 +0100 Subject: [PATCH 21/62] fix(Notifications): set a name for a row if possible - fixes the "row row" on assignment notifications - uses the value of the view's title source if set - falls back to the sad row ID Signed-off-by: Arthur Schiwon --- lib/Notification/NotificationHelper.php | 2 + lib/Notification/Notifier.php | 71 +++++++++++++++++++++---- 2 files changed, 64 insertions(+), 9 deletions(-) diff --git a/lib/Notification/NotificationHelper.php b/lib/Notification/NotificationHelper.php index e06414052a..c4a3a819c0 100644 --- a/lib/Notification/NotificationHelper.php +++ b/lib/Notification/NotificationHelper.php @@ -361,6 +361,7 @@ private function sendNotifiesByElement(Table|View $element, string $subject, arr $params['view'] = [ 'id' => $element->getId(), 'title' => $element->getTitle(), + 'labelColumnId' => $element->getViewSettingsObject()->getCardTitleSource() ]; } @@ -724,6 +725,7 @@ private function buildAssignedSubjectParams(array $subjectParams, array $target, $params['view'] = [ 'id' => $view->getId(), 'title' => $view->getTitle(), + 'labelColumnId' => $view->getViewSettingsObject()->getCardTitleSource() ]; } diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index 74758258cb..e1549dbc1e 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -10,7 +10,18 @@ use OCA\Tables\Activity\ActivityManager; use OCA\Tables\AppInfo\Application; +use OCA\Tables\Db\ColumnMapper; +use OCA\Tables\Db\Row2Mapper; +use OCA\Tables\Errors\InternalError; +use OCA\Tables\Errors\NotFoundError; +use OCA\Tables\Errors\PermissionError; use OCA\Tables\Service\PermissionsService; +use OCA\Tables\Service\RowVisibilityService; +use OCA\Tables\Service\ViewService; +use OCP\AppFramework\Db\DoesNotExistException; +use OCP\AppFramework\Db\MultipleObjectsReturnedException; +use OCP\DB\Exception; +use OCP\IL10N; use OCP\IURLGenerator; use OCP\IUserManager; use OCP\L10N\IFactory; @@ -24,6 +35,10 @@ public function __construct( protected readonly IURLGenerator $url, protected readonly IUserManager $userManager, protected readonly PermissionsService $permissionsService, + protected readonly Row2Mapper $row2Mapper, + protected readonly ViewService $viewService, + protected readonly ColumnMapper $columnMapper, + protected readonly RowVisibilityService $rowVisibilityService, ) { } @@ -63,10 +78,7 @@ public function prepare(INotification $notification, string $languageCode): INot $notification->setIcon($this->url->getAbsoluteURL($this->url->imagePath('tables', 'app-dark.svg'))); $params = $notification->getSubjectParameters(); $hasViewContext = ($params['isViewContext'] ?? false) === true; - $parsedSubject = ''; - $subject = $notification->getSubject(); $richParams = []; - $link = ''; if (isset($params['author'])) { $authorId = (string)$params['author']; @@ -80,7 +92,10 @@ public function prepare(INotification $notification, string $languageCode): INot } if (isset($params['table']['id'], $params['table']['title'])) { - if (!$this->permissionsService->canAccessNodeById(Application::NODE_TYPE_TABLE, $params['table']['id'])) { + if (!$hasViewContext + && !isset($params['view']['id'], $params['view']['title']) + && !$this->permissionsService->canAccessNodeById(Application::NODE_TYPE_TABLE, $params['table']['id']) + ) { throw new UnknownNotificationException(); } @@ -109,7 +124,7 @@ public function prepare(INotification $notification, string $languageCode): INot $richParams['row'] = [ 'type' => 'highlight', 'id' => (string)$params['row']['id'], - 'name' => 'row', + 'name' => $this->resolveRowName($params, $notification->getUser(), $l), 'link' => $hasViewContext && isset($params['view']['id']) ? $this->tablesUrl('/view/' . $params['view']['id'] . '/row/' . $params['row']['id']) : $this->tablesUrl('/table/' . $params['table']['id'] . '/row/' . $params['row']['id']), @@ -170,8 +185,8 @@ public function prepare(INotification $notification, string $languageCode): INot $richParams['table']['name'] ?? '', ]); $subject = $hasViewContext - ? $l->t('{user} has updated this {row} in view {view}') - : $l->t('{user} has updated this {row} in table {table}'); + ? $l->t('{user} has updated row {row} in view {view}') + : $l->t('{user} has updated row {row} in table {table}'); break; case ActivityManager::SUBJECT_ROW_DELETE: @@ -186,8 +201,8 @@ public function prepare(INotification $notification, string $languageCode): INot $richParams['table']['name'] ?? '', ]); $subject = $hasViewContext - ? $l->t('{user} has deleted this {row} in view {view}') - : $l->t('{user} has deleted this {row} in table {table}'); + ? $l->t('{user} has deleted a row in view {view}') + : $l->t('{user} has deleted a row in table {table}'); break; case ActivityManager::SUBJECT_ROW_ASSIGN: @@ -369,4 +384,42 @@ public function prepare(INotification $notification, string $languageCode): INot private function tablesUrl(string $endpoint): string { return $this->url->linkToRouteAbsolute('tables.page.index') . '#/' . trim($endpoint, '/'); } + + public function resolveRowName(array $params, string $userId, IL10N $l): string { + if (!isset($params['row']['id'])) { + return ''; + } + + // TRANSLATORS: A numeric identifier like: #12 + $defaultName = $l->t('#%d', $params['row']['id']); + + if (!isset($params['view']['labelColumnId'])) { + return $defaultName; + } + + try { + $view = $this->viewService->find($params['view']['id']); + + $columns = $view->getColumnIds(); + if (!in_array($params['view']['labelColumnId'], $columns, true)) { + return $defaultName; + } + + $seeingRow = $this->rowVisibilityService->usersSeeingRow($params['row']['id'], $view, [$userId]); + if (empty($seeingRow)) { + return $defaultName; + } + + $column = $this->columnMapper->find($params['view']['labelColumnId']); + $row = $this->row2Mapper->find($params['row']['id'], [$column]); + + $rowName = trim(strip_tags((string)($row->getData()[0]['value'] ?? ''))); + if ($rowName !== '') { + return $rowName; + } + } catch (NotFoundError|InternalError|PermissionError|DoesNotExistException|MultipleObjectsReturnedException|Exception) { + // pass for fallback + } + return $defaultName; + } } From e1f084cd012b5cb8998da19b90d51d44cb0a29b2 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 19 Nov 2026 23:16:50 +0100 Subject: [PATCH 22/62] test(Notifications): cover row names and view-context permission checks - NotifierTest: row name from the view's card title source, fallbacks to #id, view-only recipients, new update/delete subjects - NotificationHelperTest: labelColumnId is part of view notification payloads Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Arthur Schiwon --- .../Notification/NotificationHelperTest.php | 28 +- tests/unit/Notification/NotifierTest.php | 296 ++++++++++++++++++ 2 files changed, 323 insertions(+), 1 deletion(-) create mode 100644 tests/unit/Notification/NotifierTest.php diff --git a/tests/unit/Notification/NotificationHelperTest.php b/tests/unit/Notification/NotificationHelperTest.php index a73366aeff..6767cac737 100644 --- a/tests/unit/Notification/NotificationHelperTest.php +++ b/tests/unit/Notification/NotificationHelperTest.php @@ -34,6 +34,8 @@ final class NotificationHelperTest extends TestCase { private View $view; /** @var list */ private array $notifiedUsers = []; + /** @var list */ + private array $subjectParams = []; protected function setUp(): void { parent::setUp(); @@ -65,9 +67,13 @@ protected function setUp(): void { ); $notification = $this->createMock(INotification::class); - foreach (['setApp', 'setDateTime', 'setObject', 'setSubject'] as $setter) { + foreach (['setApp', 'setDateTime', 'setObject'] as $setter) { $notification->method($setter)->willReturnSelf(); } + $notification->method('setSubject')->willReturnCallback(function (string $subject, array $params) use ($notification): INotification { + $this->subjectParams[] = $params; + return $notification; + }); $notification->method('setUser')->willReturnCallback(function (string $userId) use ($notification): INotification { $this->notifiedUsers[] = $userId; return $notification; @@ -110,6 +116,26 @@ public function testNoViewNotificationWhenRowIsNotInView(): void { $this->assertSame([], $this->notifiedUsers); } + public function testViewNotificationCarriesCardTitleSource(): void { + $this->view->setViewSettings(json_encode(['cardTitleSource' => 3])); + $this->rowVisibility->method('usersSeeingRow')->willReturn(['visible']); + + $this->sendRowCreated(); + + $this->assertCount(1, $this->subjectParams); + $this->assertTrue($this->subjectParams[0]['isViewContext']); + $this->assertSame(['id' => 7, 'title' => 'View', 'labelColumnId' => 3], $this->subjectParams[0]['view']); + } + + public function testViewNotificationWithoutCardTitleSource(): void { + $this->rowVisibility->method('usersSeeingRow')->willReturn(['visible']); + + $this->sendRowCreated(); + + $this->assertCount(1, $this->subjectParams); + $this->assertNull($this->subjectParams[0]['view']['labelColumnId']); + } + private function sendRowCreated(): void { $this->helper->sendNotification(ActivityManager::TABLES_OBJECT_ROW, $this->row(), ActivityManager::SUBJECT_ROW_CREATE, [], 'author'); } diff --git a/tests/unit/Notification/NotifierTest.php b/tests/unit/Notification/NotifierTest.php new file mode 100644 index 0000000000..864e7d6e72 --- /dev/null +++ b/tests/unit/Notification/NotifierTest.php @@ -0,0 +1,296 @@ +createMock(IL10N::class); + $l->method('t')->willReturnCallback( + static fn (string $text, $parameters = []): string => vsprintf($text, is_array($parameters) ? $parameters : [$parameters]), + ); + $l10nFactory = $this->createMock(IFactory::class); + $l10nFactory->method('get')->willReturn($l); + + $url = $this->createMock(IURLGenerator::class); + $url->method('linkToRouteAbsolute')->willReturn('https://cloud.example/apps/tables/'); + + $this->permissionsService = $this->createMock(PermissionsService::class); + $this->row2Mapper = $this->createMock(Row2Mapper::class); + $this->viewService = $this->createMock(ViewService::class); + $this->columnMapper = $this->createMock(ColumnMapper::class); + $this->rowVisibilityService = $this->createMock(RowVisibilityService::class); + // by default the recipient still sees the row + $this->rowVisibilityService->method('usersSeeingRow')->willReturnArgument(2); + + $this->l10nFactory = $l10nFactory; + $this->url = $url; + $this->rebuildNotifier(); + } + + private function rebuildNotifier(): void { + $this->notifier = new Notifier( + $this->l10nFactory, + $this->url, + $this->createMock(IUserManager::class), + $this->permissionsService, + $this->row2Mapper, + $this->viewService, + $this->columnMapper, + $this->rowVisibilityService, + ); + } + + public function testTableContextUsesRowIdAsName(): void { + $this->permissionsService->method('canAccessNodeById')->willReturn(true); + $this->row2Mapper->expects($this->never())->method('find'); + + $this->prepare(ActivityManager::SUBJECT_ROW_UPDATE, $this->tableParams()); + + $this->assertSame('#42', $this->richParams['row']['name']); + $this->assertSame('{user} has updated row {row} in table {table}', $this->richSubject); + } + + public function testTableContextChecksTablePermission(): void { + $this->permissionsService->expects($this->once()) + ->method('canAccessNodeById') + ->with(Application::NODE_TYPE_TABLE, self::TABLE_ID) + ->willReturn(false); + + $this->expectException(UnknownNotificationException::class); + $this->prepare(ActivityManager::SUBJECT_ROW_UPDATE, $this->tableParams()); + } + + public function testViewContextOnlyChecksViewPermission(): void { + // a recipient with only a view share cannot read the table + $this->permissionsService->expects($this->once()) + ->method('canAccessNodeById') + ->with(Application::NODE_TYPE_VIEW, self::VIEW_ID) + ->willReturn(true); + + $this->prepare(ActivityManager::SUBJECT_ROW_ASSIGN, $this->viewParams(null)); + + $this->assertSame('#42', $this->richParams['row']['name']); + $this->assertStringContainsString('/view/7/row/42', $this->richParams['row']['link']); + } + + public function testViewContextDeniedWithoutViewPermission(): void { + $this->permissionsService->method('canAccessNodeById')->willReturn(false); + + $this->expectException(UnknownNotificationException::class); + $this->prepare(ActivityManager::SUBJECT_ROW_ASSIGN, $this->viewParams(self::TITLE_COLUMN_ID)); + } + + public function testViewContextUsesTitleSourceValue(): void { + $this->permissionsService->method('canAccessNodeById')->willReturn(true); + $this->mockView([1, self::TITLE_COLUMN_ID]); + $this->mockTitleCell('Buy milk'); + + $this->prepare(ActivityManager::SUBJECT_ROW_ASSIGN, $this->viewParams(self::TITLE_COLUMN_ID)); + + $this->assertSame('Buy milk', $this->richParams['row']['name']); + $this->assertSame('You have been assigned in row Buy milk of view View by .', $this->parsedSubject); + } + + public function testRichTextTitleIsStrippedAndTrimmed(): void { + $this->permissionsService->method('canAccessNodeById')->willReturn(true); + $this->mockView([self::TITLE_COLUMN_ID]); + $this->mockTitleCell("

Buy milk

\n"); + + $this->prepare(ActivityManager::SUBJECT_ROW_UPDATE, $this->viewParams(self::TITLE_COLUMN_ID)); + + $this->assertSame('Buy milk', $this->richParams['row']['name']); + $this->assertSame('{user} has updated row {row} in view {view}', $this->richSubject); + } + + public function testWhitespaceOnlyTitleFallsBackToRowId(): void { + $this->permissionsService->method('canAccessNodeById')->willReturn(true); + $this->mockView([self::TITLE_COLUMN_ID]); + $this->mockTitleCell('

'); + + $this->prepare(ActivityManager::SUBJECT_ROW_UPDATE, $this->viewParams(self::TITLE_COLUMN_ID)); + + $this->assertSame('#42', $this->richParams['row']['name']); + } + + public function testTitleSourceNotInViewFallsBackToRowId(): void { + $this->permissionsService->method('canAccessNodeById')->willReturn(true); + $this->mockView([1, 2]); + $this->columnMapper->expects($this->never())->method('find'); + $this->row2Mapper->expects($this->never())->method('find'); + + $this->prepare(ActivityManager::SUBJECT_ROW_UPDATE, $this->viewParams(self::TITLE_COLUMN_ID)); + + $this->assertSame('#42', $this->richParams['row']['name']); + } + + public function testMissingRowFallsBackToRowId(): void { + $this->permissionsService->method('canAccessNodeById')->willReturn(true); + $this->mockView([self::TITLE_COLUMN_ID]); + $this->columnMapper->method('find')->willReturn($this->titleColumn()); + $this->row2Mapper->method('find')->willThrowException(new NotFoundError('gone')); + + $this->prepare(ActivityManager::SUBJECT_ROW_UPDATE, $this->viewParams(self::TITLE_COLUMN_ID)); + + $this->assertSame('#42', $this->richParams['row']['name']); + } + + public function testInaccessibleViewFallsBackToRowId(): void { + $this->permissionsService->method('canAccessNodeById')->willReturn(true); + $this->viewService->method('find')->willThrowException(new PermissionError('nope')); + + $this->prepare(ActivityManager::SUBJECT_ROW_UPDATE, $this->viewParams(self::TITLE_COLUMN_ID)); + + $this->assertSame('#42', $this->richParams['row']['name']); + } + + public function testDeleteSubjectDoesNotReferenceRow(): void { + $this->permissionsService->method('canAccessNodeById')->willReturn(true); + + $this->prepare(ActivityManager::SUBJECT_ROW_DELETE, $this->tableParams()); + $this->assertSame('{user} has deleted a row in table {table}', $this->richSubject); + + $this->prepare(ActivityManager::SUBJECT_ROW_DELETE, $this->viewParams(null)); + $this->assertSame('{user} has deleted a row in view {view}', $this->richSubject); + } + + public function testVisibilityIsCheckedForRecipient(): void { + $this->permissionsService->method('canAccessNodeById')->willReturn(true); + $this->rowVisibilityService = $this->createMock(RowVisibilityService::class); + $this->rowVisibilityService->expects($this->once()) + ->method('usersSeeingRow') + ->with(self::ROW_ID, $this->isInstanceOf(View::class), [self::RECIPIENT]) + ->willReturn([self::RECIPIENT]); + $this->rebuildNotifier(); + $this->mockView([self::TITLE_COLUMN_ID]); + $this->mockTitleCell('Buy milk'); + + $this->prepare(ActivityManager::SUBJECT_ROW_UPDATE, $this->viewParams(self::TITLE_COLUMN_ID)); + + $this->assertSame('Buy milk', $this->richParams['row']['name']); + } + + public function testRowFilteredOutOfViewDoesNotExposeValue(): void { + $this->permissionsService->method('canAccessNodeById')->willReturn(true); + $this->rowVisibilityService = $this->createMock(RowVisibilityService::class); + $this->rowVisibilityService->method('usersSeeingRow')->willReturn([]); + $this->rebuildNotifier(); + $this->mockView([self::TITLE_COLUMN_ID]); + $this->columnMapper->expects($this->never())->method('find'); + $this->row2Mapper->expects($this->never())->method('find'); + + $this->prepare(ActivityManager::SUBJECT_ROW_ASSIGN, $this->viewParams(self::TITLE_COLUMN_ID)); + + $this->assertSame('#42', $this->richParams['row']['name']); + $this->assertSame('You have been assigned in row #42 of view View by .', $this->parsedSubject); + } + + private function prepare(string $subject, array $params): void { + $notification = $this->createMock(INotification::class); + $notification->method('getApp')->willReturn('tables'); + $notification->method('getObjectType')->willReturn(ActivityManager::TABLES_OBJECT_ROW); + $notification->method('getSubject')->willReturn($subject); + $notification->method('getSubjectParameters')->willReturn($params); + $notification->method('getUser')->willReturn(self::RECIPIENT); + $notification->method('setIcon')->willReturnSelf(); + $notification->method('setLink')->willReturnSelf(); + $notification->method('setParsedSubject')->willReturnCallback(function (string $parsed) use ($notification): INotification { + $this->parsedSubject = $parsed; + return $notification; + }); + $notification->method('setRichSubject')->willReturnCallback(function (string $rich, array $richParams) use ($notification): INotification { + $this->richSubject = $rich; + $this->richParams = $richParams; + return $notification; + }); + + $this->notifier->prepare($notification, 'en'); + } + + private function tableParams(): array { + return [ + 'objectType' => ActivityManager::TABLES_OBJECT_ROW, + 'table' => ['id' => self::TABLE_ID, 'title' => 'Table'], + 'row' => ['id' => self::ROW_ID], + 'isViewContext' => false, + ]; + } + + private function viewParams(?int $labelColumnId): array { + return array_merge($this->tableParams(), [ + 'isViewContext' => true, + 'view' => ['id' => self::VIEW_ID, 'title' => 'View', 'labelColumnId' => $labelColumnId], + ]); + } + + private function mockView(array $columnIds): void { + $view = new View(); + $view->setId(self::VIEW_ID); + $view->setColumnsArray($columnIds); + $this->viewService->method('find')->willReturn($view); + } + + private function titleColumn(): Column { + $column = new Column(); + $column->setId(self::TITLE_COLUMN_ID); + $column->setType(Column::TYPE_TEXT); + return $column; + } + + private function mockTitleCell(string $value): void { + $this->columnMapper->method('find')->willReturn($this->titleColumn()); + $row = new Row2(); + $row->setId(self::ROW_ID); + $row->addCell(self::TITLE_COLUMN_ID, $value); + $this->row2Mapper->method('find')->willReturn($row); + } +} From f9e4be98540d727c1bd896b67e7203ca8d56bcba Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 19 Nov 2026 23:46:27 +0100 Subject: [PATCH 23/62] fix(Notifications): simplify view check conditions Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Arthur Schiwon --- lib/Notification/Notifier.php | 11 ++++++++--- tests/unit/Notification/NotifierTest.php | 23 +++++++++++++++++++++++ 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index e1549dbc1e..fb23c4e361 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -91,9 +91,14 @@ public function prepare(INotification $notification, string $languageCode): INot ]; } + // view-only recipients cannot read the table, the view permission is checked below instead + $checkViewPermission = $hasViewContext && isset($params['view']['id'], $params['view']['title']); + if ($hasViewContext && !$checkViewPermission) { + throw new UnknownNotificationException(); + } + if (isset($params['table']['id'], $params['table']['title'])) { - if (!$hasViewContext - && !isset($params['view']['id'], $params['view']['title']) + if (!$checkViewPermission && !$this->permissionsService->canAccessNodeById(Application::NODE_TYPE_TABLE, $params['table']['id']) ) { throw new UnknownNotificationException(); @@ -107,7 +112,7 @@ public function prepare(INotification $notification, string $languageCode): INot ]; } - if ($hasViewContext && isset($params['view']['id'], $params['view']['title'])) { + if ($checkViewPermission) { if (!$this->permissionsService->canAccessNodeById(Application::NODE_TYPE_VIEW, $params['view']['id'])) { throw new UnknownNotificationException(); } diff --git a/tests/unit/Notification/NotifierTest.php b/tests/unit/Notification/NotifierTest.php index 864e7d6e72..b796a76ef9 100644 --- a/tests/unit/Notification/NotifierTest.php +++ b/tests/unit/Notification/NotifierTest.php @@ -234,6 +234,29 @@ public function testRowFilteredOutOfViewDoesNotExposeValue(): void { $this->assertSame('You have been assigned in row #42 of view View by .', $this->parsedSubject); } + public function testViewContextWithoutViewIsRejected(): void { + $this->permissionsService->expects($this->never())->method('canAccessNodeById'); + + $params = $this->tableParams(); + $params['isViewContext'] = true; + + $this->expectException(UnknownNotificationException::class); + $this->prepare(ActivityManager::SUBJECT_ROW_UPDATE, $params); + } + + public function testTableContextWithViewParamsStillChecksTable(): void { + $this->permissionsService->expects($this->once()) + ->method('canAccessNodeById') + ->with(Application::NODE_TYPE_TABLE, self::TABLE_ID) + ->willReturn(false); + + $params = $this->viewParams(null); + $params['isViewContext'] = false; + + $this->expectException(UnknownNotificationException::class); + $this->prepare(ActivityManager::SUBJECT_ROW_UPDATE, $params); + } + private function prepare(string $subject, array $params): void { $notification = $this->createMock(INotification::class); $notification->method('getApp')->willReturn('tables'); From 73f9a69941c4f3c8502b7b594079ce7094407f5c Mon Sep 17 00:00:00 2001 From: Nextcloud bot Date: Fri, 20 Nov 2026 02:15:22 +0000 Subject: [PATCH 24/62] fix(l10n): Update translations from Transifex [skip ci] Signed-off-by: Nextcloud bot --- l10n/zh_HK.js | 280 ++++++++++++++++++++++++++++++++++++++++++++++++ l10n/zh_HK.json | 280 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 560 insertions(+) diff --git a/l10n/zh_HK.js b/l10n/zh_HK.js index e3599658f2..632a0d3f5f 100644 --- a/l10n/zh_HK.js +++ b/l10n/zh_HK.js @@ -660,6 +660,7 @@ OC.L10N.register( "Error" : "錯誤", "Could not load editor, text not available." : "無法加載編輯器,文本不可用。", "Icon {iconName} loading" : "正在載入圖示 {iconName}", + "Select icon {iconName}" : "選擇圖示 {iconName}", "Download" : "下載", "This is a public form." : "這是一個公開表單。", "Create rows" : "創建列", @@ -798,53 +799,332 @@ OC.L10N.register( "Could not remove share." : "無法移除分享。", "Could not update share." : "無法更新分享。", "Person" : "個人", + "Target circle" : "圓形靶心", + "Alarm clock" : "鬧鐘", + "Vinyl record" : "黑膠唱片", + "Warning triangle" : "警告三角形", + "Anchor" : "船錨", + "Android logo" : "Android 標誌", + "Stacked frames" : "堆疊框架", + "Antenna" : "天線", + "API symbol" : "API 符號", + "App grid" : "應用程式網格", + "Speech bubble with sparkle" : "帶閃光的對話氣泡", + "At sign" : "@ 符號", "ATM" : "ATM提款機", + "Horizontal paperclip" : "橫向萬字夾", + "Quad bike" : "四輪越野車", + "Clockwise circular arrows" : "順時針環形箭嘴", "Baby" : "嬰兒", + "Backspace key" : "退格鍵", + "Balcony" : "露台", + "Ballot paper" : "選票", + "Bandage" : "繃帶", + "Bank building" : "銀行大樓", + "Oil barrel" : "油桶", + "Shopping basket" : "購物籃", "Basketball" : "籃球", + "Bathtub" : "浴缸", "Battery" : "電量", + "Bed" : "床", + "Bee" : "蜜蜂", + "Bell" : "鈴鐺", + "Biathlon" : "冬季兩項", "Bicycle" : "單車", + "Blender" : "攪拌機", + "Blur dots" : "模糊圓點", "Book" : "書", "Bookmark" : "書籤", + "Boombox" : "手提音響", + "Briefcase" : "公事包", + "Broadcast signal" : "廣播訊號", + "Brush" : "畫筆", + "Bug" : "昆蟲", + "Bullhorn" : "擴音器", "Bus" : "巴士", + "Counterclockwise circular arrows" : "逆時針環形箭嘴", + "Cake" : "蛋糕", "Calendar" : "日曆", "Camera" : "相機", + "Prohibition sign" : "禁止標誌", "Candle" : "蠟燭", + "Car" : "汽車", + "Carabiner" : "攀山扣", + "Shopping cart" : "購物車", + "Casting screen" : "螢幕投放", + "Mobile phone" : "流動電話", + "Hand holding a heart" : "手托愛心", + "Check mark" : "剔號", + "Checkbook" : "支票簿", "Church" : "教堂", "City" : "城市", "Clock" : "時鐘", + "Cross mark" : "交叉符號", "Cloud" : "雲端", + "Coffee cup" : "咖啡杯", + "Gear" : "齒輪", + "Gears" : "多個齒輪", + "Collage" : "拼貼", + "Side-by-side panels" : "並排面板", + "Compass" : "指南針", + "Compost" : "堆肥", + "Contact card" : "聯絡人卡片", + "Game controller" : "遊戲控制器", + "Cookie" : "曲奇", + "Copyright symbol" : "版權符號", + "Kitchen counter" : "廚房枱面", "Cradle" : "搖籃", + "Sparkles" : "閃光", + "Cricket bat" : "板球拍", + "Crop marks" : "裁切標記", + "Crosshairs" : "十字準星", + "Crowd" : "人群", + "Trash can" : "垃圾桶", + "Triangle" : "三角形", + "Inverted triangle" : "倒三角形", + "Monitor, phone and watch" : "螢幕、電話及手錶", + "Keypad" : "數字鍵盤", + "Direction sign" : "方向指示牌", + "Dishwasher" : "洗碗碟機", "Diving" : "潛水", + "DNS servers" : "DNS 伺服器", + "Office building" : "辦公大樓", + "Download arrow" : "下載箭嘴", + "Dumbbell" : "啞鈴", + "Earth globe" : "地球儀", + "Eject symbol" : "退出符號", + "Envelope" : "信封", + "Smiley face" : "笑臉", + "Equalizer bars" : "等化器條棒", + "Eye" : "眼睛", + "Fax machine" : "傳真機", + "Fencing" : "劍擊", + "Ferry" : "渡輪", + "Document page" : "文件頁面", + "Film roll" : "菲林卷", + "Filmstrip" : "菲林條", + "Growth chart" : "增長圖表", "Fingerprint" : "指紋", + "Flame" : "火焰", + "Firebase logo" : "Firebase 標誌", "Flag" : "旗", + "Lens flare" : "鏡頭光暈", + "Lightning bolt" : "閃電", "Flower" : "花", "Folder" : "資料夾", + "Burger and drink" : "漢堡包及飲品", + "American football" : "美式足球", + "Forest" : "森林", + "Chat bubbles" : "聊天氣泡", + "Forward arrow" : "向前箭嘴", + "Fullscreen corners" : "全螢幕角框", + "Directional pad" : "方向鍵", + "Gauge" : "儀錶", + "Freehand line" : "手繪線條", + "Gmail logo" : "Gmail 標誌", "Golf" : "高爾夫球", + "Google logo" : "Google 標誌", + "Grain dots" : "顆粒圓點", + "Grass" : "草", "Grid" : "網格", + "Barbecue grill" : "燒烤爐", "Gymnastics" : "體操", + "Person hailing" : "揮手示意的人", + "Hammer" : "鎚仔", + "Handball" : "手球", + "HDR label" : "HDR 標籤", + "Headphones" : "耳筒", + "Headset with microphone" : "附咪高峰的耳筒", "Heart" : "愛心", "Hiking" : "遠足", + "Clock with counterclockwise arrow" : "帶逆時針箭嘴的時鐘", "House" : "家庭", + "Hub" : "集線器", + "Human figure" : "人形", + "Air vent" : "通風口", "Picture" : "圖片", + "Inbox tray" : "收件托盤", + "Information symbol" : "資訊符號", + "Clothes iron" : "熨斗", + "Kabaddi" : "卡巴迪", + "Karate" : "空手道", + "Kayaking" : "獨木舟運動", "Key" : "密鑰", "Keyboard" : "鍵盤", + "Kite" : "風箏", + "Kitesurfing" : "風箏滑浪", + "Label shape" : "標籤形狀", + "Ladybug" : "瓢蟲", + "Landslide" : "山泥傾瀉", + "Laptop" : "手提電腦", + "External link arrow" : "外部連結箭嘴", + "Stacked layers" : "堆疊圖層", + "Signal waves" : "訊號波紋", + "Person reading a book" : "看書的人", + "Award seal" : "獎章", + "Lightbulb" : "燈泡", + "Chain link" : "鏈環", + "Liquor bottle" : "烈酒瓶", + "Padlock" : "掛鎖", + "Sign-in arrow" : "登入箭嘴", + "Sign-out arrow" : "登出箭嘴", + "Rainbow" : "彩虹", + "Magnifying glass with plus" : "帶加號的放大鏡", + "Magnifying glass" : "放大鏡", "Map" : "地圖", + "Highlighter" : "螢光筆", + "Pill bottle" : "藥丸瓶", "Meditation" : "冥想", + "Memory chip" : "記憶體晶片", + "Menu lines" : "選單橫線", + "Merging arrows" : "合併箭嘴", + "Speech bubble" : "對話氣泡", "Microphone" : "米高風", + "Minus sign" : "減號", + "Computer monitor" : "電腦螢幕", + "Moped" : "輕型電單車", + "More options symbol" : "更多選項符號", + "Mosque" : "清真寺", + "Motion lines" : "動態線條", + "Motorbike" : "電單車", + "Computer mouse" : "滑鼠", + "Clapperboard" : "場記板", + "Mustache" : "鬍子", + "Tree" : "樹", + "Navigation arrow" : "導航箭嘴", + "Newspaper" : "報紙", + "Noodles" : "麵條", + "Half-filled drop" : "半填滿的水滴", + "Overscan frame" : "過掃描框架", + "Paint palette" : "調色板", + "Panorama photo" : "全景相片", + "Paperclip" : "萬字夾", + "Paragliding" : "滑翔傘運動", + "Parking sign" : "泊車標誌", "Pasta" : "義大利粉", + "Pause symbol" : "暫停符號", + "Pencil" : "鉛筆", + "Telephone" : "電話", + "Piano" : "鋼琴", + "Pushpin" : "圖釘", + "Pinwheel" : "風車", "Pizza" : "披薩", + "Play symbol" : "播放符號", + "Plus sign" : "加號", + "Podcast symbol" : "Podcast 符號", + "Polo" : "馬球", + "Blog post page" : "網誌文章頁面", + "Power symbol" : "電源符號", + "Printer" : "打印機", + "Arrow up to a bar" : "向上指向橫線的箭嘴", "Puzzle" : "智力遊戲", + "Racquetball" : "美式壁球", + "Radar screen" : "雷達螢幕", "Radio" : "單選框", + "RAW label" : "RAW 標籤", + "Redo arrow" : "重做箭嘴", + "Refresh arrow" : "重新整理箭嘴", + "String tied on a finger" : "綁在手指上的繩子", + "Remote control" : "遙控器", + "Pencil on a line" : "橫線上的鉛筆", + "Repeat arrows" : "重複箭嘴", + "Replay arrow" : "重播箭嘴", + "Reply arrow" : "回覆箭嘴", + "Restart arrow" : "重新啟動箭嘴", + "Restore arrow" : "還原箭嘴", + "Rewind symbol" : "倒帶符號", + "Ribbon" : "絲帶", + "Rocket" : "火箭", + "Rodent" : "齧齒動物", + "Rowing" : "賽艇", + "RSS feed symbol" : "RSS 訂閱符號", + "Rugby" : "欖球", + "Running person" : "跑步的人", + "Satellite" : "衛星", + "Saxophone" : "色士風", "Scanner" : "掃描器", + "Graduation cap" : "畢業帽", "Scooter" : "小型摩托車", + "SD card" : "SD 記憶卡", + "Chair" : "椅子", + "Shield" : "盾牌", + "Text segments" : "文字片段", + "Paper plane" : "紙飛機", + "Shapes" : "形狀", + "Share arrow" : "分享箭嘴", + "Shopping bag" : "購物袋", + "Shuffle arrows" : "隨機播放箭嘴", + "Sigma symbol" : "Sigma 符號", + "Fork and knife" : "刀叉", + "SIM card" : "SIM 卡", + "Ice skate" : "溜冰鞋", "Skateboard" : "滑板", + "Skateboarding" : "滑板運動", + "Skier" : "滑雪者", + "Sledding" : "雪橇運動", + "Sleep symbol" : "睡眠符號", + "Cigarette" : "香煙", + "Snowboard" : "滑雪板", + "Snowflake" : "雪花", "Snowmobile" : "摩托雪橇", + "Snowshoeing" : "雪鞋健行", + "Soccer ball" : "足球", + "Lotus flower" : "蓮花", "Speaker" : "喇叭", + "Spellcheck mark" : "拼字檢查標記", + "Stadium" : "運動場", "Star" : "星標", + "Steering wheel" : "軚盤", + "Stop symbol" : "停止符號", + "Storefront" : "店面", + "Subtitles box" : "字幕框", + "Subway train" : "地鐵列車", + "Surfing" : "滑浪", + "Synagogue" : "猶太會堂", + "Sync arrows" : "同步箭嘴", + "Browser tab" : "瀏覽器分頁", + "Tablet" : "平板電腦", + "Price tag" : "價錢牌", + "Taxi" : "的士", + "Tea" : "茶", + "Television" : "電視", + "Tennis" : "網球", "Mountains" : "山", + "Text lines" : "文字行", + "Texture pattern" : "紋理圖案", + "Thermostat" : "恆溫器", + "Ticket" : "票券", + "Timelapse circle" : "縮時攝影圓圈", + "Toolbox" : "工具箱", "Train" : "火車", + "Tram" : "電車", + "Transition shapes" : "轉場形狀", + "Translation symbol" : "翻譯符號", "Truck" : "貨車", + "Tsunami" : "海嘯", + "Slider controls" : "滑桿控制項", + "Undo arrow" : "復原箭嘴", + "Clock with clockwise arrow" : "帶順時針箭嘴的時鐘", + "Upload arrow" : "上傳箭嘴", + "USB symbol" : "USB 符號", + "Vacuum cleaner" : "吸塵機", + "Vibrating phone" : "震動中的電話", + "Video camera" : "攝錄機", + "Violin" : "小提琴", + "Voicemail symbol" : "留言信箱符號", + "Volcano" : "火山", + "Volleyball" : "排球", + "Ballot box" : "投票箱", + "Walking person" : "步行的人", + "Wallet" : "銀包", + "Wallpaper" : "桌布", + "Wristwatch" : "手錶", + "Water drop" : "水滴", "Watermark" : "水印", + "Web globe" : "網絡地球圖示", + "Widget blocks" : "小工具方塊", + "Wrench" : "士巴拿", + "YouTube logo" : "YouTube 標誌", "Could not update cell" : "無法更新儲存格", "Filter operator" : "過濾器運算符", "Contains items" : "包含項目", diff --git a/l10n/zh_HK.json b/l10n/zh_HK.json index 8e476ddb59..9b3bac397c 100644 --- a/l10n/zh_HK.json +++ b/l10n/zh_HK.json @@ -658,6 +658,7 @@ "Error" : "錯誤", "Could not load editor, text not available." : "無法加載編輯器,文本不可用。", "Icon {iconName} loading" : "正在載入圖示 {iconName}", + "Select icon {iconName}" : "選擇圖示 {iconName}", "Download" : "下載", "This is a public form." : "這是一個公開表單。", "Create rows" : "創建列", @@ -796,53 +797,332 @@ "Could not remove share." : "無法移除分享。", "Could not update share." : "無法更新分享。", "Person" : "個人", + "Target circle" : "圓形靶心", + "Alarm clock" : "鬧鐘", + "Vinyl record" : "黑膠唱片", + "Warning triangle" : "警告三角形", + "Anchor" : "船錨", + "Android logo" : "Android 標誌", + "Stacked frames" : "堆疊框架", + "Antenna" : "天線", + "API symbol" : "API 符號", + "App grid" : "應用程式網格", + "Speech bubble with sparkle" : "帶閃光的對話氣泡", + "At sign" : "@ 符號", "ATM" : "ATM提款機", + "Horizontal paperclip" : "橫向萬字夾", + "Quad bike" : "四輪越野車", + "Clockwise circular arrows" : "順時針環形箭嘴", "Baby" : "嬰兒", + "Backspace key" : "退格鍵", + "Balcony" : "露台", + "Ballot paper" : "選票", + "Bandage" : "繃帶", + "Bank building" : "銀行大樓", + "Oil barrel" : "油桶", + "Shopping basket" : "購物籃", "Basketball" : "籃球", + "Bathtub" : "浴缸", "Battery" : "電量", + "Bed" : "床", + "Bee" : "蜜蜂", + "Bell" : "鈴鐺", + "Biathlon" : "冬季兩項", "Bicycle" : "單車", + "Blender" : "攪拌機", + "Blur dots" : "模糊圓點", "Book" : "書", "Bookmark" : "書籤", + "Boombox" : "手提音響", + "Briefcase" : "公事包", + "Broadcast signal" : "廣播訊號", + "Brush" : "畫筆", + "Bug" : "昆蟲", + "Bullhorn" : "擴音器", "Bus" : "巴士", + "Counterclockwise circular arrows" : "逆時針環形箭嘴", + "Cake" : "蛋糕", "Calendar" : "日曆", "Camera" : "相機", + "Prohibition sign" : "禁止標誌", "Candle" : "蠟燭", + "Car" : "汽車", + "Carabiner" : "攀山扣", + "Shopping cart" : "購物車", + "Casting screen" : "螢幕投放", + "Mobile phone" : "流動電話", + "Hand holding a heart" : "手托愛心", + "Check mark" : "剔號", + "Checkbook" : "支票簿", "Church" : "教堂", "City" : "城市", "Clock" : "時鐘", + "Cross mark" : "交叉符號", "Cloud" : "雲端", + "Coffee cup" : "咖啡杯", + "Gear" : "齒輪", + "Gears" : "多個齒輪", + "Collage" : "拼貼", + "Side-by-side panels" : "並排面板", + "Compass" : "指南針", + "Compost" : "堆肥", + "Contact card" : "聯絡人卡片", + "Game controller" : "遊戲控制器", + "Cookie" : "曲奇", + "Copyright symbol" : "版權符號", + "Kitchen counter" : "廚房枱面", "Cradle" : "搖籃", + "Sparkles" : "閃光", + "Cricket bat" : "板球拍", + "Crop marks" : "裁切標記", + "Crosshairs" : "十字準星", + "Crowd" : "人群", + "Trash can" : "垃圾桶", + "Triangle" : "三角形", + "Inverted triangle" : "倒三角形", + "Monitor, phone and watch" : "螢幕、電話及手錶", + "Keypad" : "數字鍵盤", + "Direction sign" : "方向指示牌", + "Dishwasher" : "洗碗碟機", "Diving" : "潛水", + "DNS servers" : "DNS 伺服器", + "Office building" : "辦公大樓", + "Download arrow" : "下載箭嘴", + "Dumbbell" : "啞鈴", + "Earth globe" : "地球儀", + "Eject symbol" : "退出符號", + "Envelope" : "信封", + "Smiley face" : "笑臉", + "Equalizer bars" : "等化器條棒", + "Eye" : "眼睛", + "Fax machine" : "傳真機", + "Fencing" : "劍擊", + "Ferry" : "渡輪", + "Document page" : "文件頁面", + "Film roll" : "菲林卷", + "Filmstrip" : "菲林條", + "Growth chart" : "增長圖表", "Fingerprint" : "指紋", + "Flame" : "火焰", + "Firebase logo" : "Firebase 標誌", "Flag" : "旗", + "Lens flare" : "鏡頭光暈", + "Lightning bolt" : "閃電", "Flower" : "花", "Folder" : "資料夾", + "Burger and drink" : "漢堡包及飲品", + "American football" : "美式足球", + "Forest" : "森林", + "Chat bubbles" : "聊天氣泡", + "Forward arrow" : "向前箭嘴", + "Fullscreen corners" : "全螢幕角框", + "Directional pad" : "方向鍵", + "Gauge" : "儀錶", + "Freehand line" : "手繪線條", + "Gmail logo" : "Gmail 標誌", "Golf" : "高爾夫球", + "Google logo" : "Google 標誌", + "Grain dots" : "顆粒圓點", + "Grass" : "草", "Grid" : "網格", + "Barbecue grill" : "燒烤爐", "Gymnastics" : "體操", + "Person hailing" : "揮手示意的人", + "Hammer" : "鎚仔", + "Handball" : "手球", + "HDR label" : "HDR 標籤", + "Headphones" : "耳筒", + "Headset with microphone" : "附咪高峰的耳筒", "Heart" : "愛心", "Hiking" : "遠足", + "Clock with counterclockwise arrow" : "帶逆時針箭嘴的時鐘", "House" : "家庭", + "Hub" : "集線器", + "Human figure" : "人形", + "Air vent" : "通風口", "Picture" : "圖片", + "Inbox tray" : "收件托盤", + "Information symbol" : "資訊符號", + "Clothes iron" : "熨斗", + "Kabaddi" : "卡巴迪", + "Karate" : "空手道", + "Kayaking" : "獨木舟運動", "Key" : "密鑰", "Keyboard" : "鍵盤", + "Kite" : "風箏", + "Kitesurfing" : "風箏滑浪", + "Label shape" : "標籤形狀", + "Ladybug" : "瓢蟲", + "Landslide" : "山泥傾瀉", + "Laptop" : "手提電腦", + "External link arrow" : "外部連結箭嘴", + "Stacked layers" : "堆疊圖層", + "Signal waves" : "訊號波紋", + "Person reading a book" : "看書的人", + "Award seal" : "獎章", + "Lightbulb" : "燈泡", + "Chain link" : "鏈環", + "Liquor bottle" : "烈酒瓶", + "Padlock" : "掛鎖", + "Sign-in arrow" : "登入箭嘴", + "Sign-out arrow" : "登出箭嘴", + "Rainbow" : "彩虹", + "Magnifying glass with plus" : "帶加號的放大鏡", + "Magnifying glass" : "放大鏡", "Map" : "地圖", + "Highlighter" : "螢光筆", + "Pill bottle" : "藥丸瓶", "Meditation" : "冥想", + "Memory chip" : "記憶體晶片", + "Menu lines" : "選單橫線", + "Merging arrows" : "合併箭嘴", + "Speech bubble" : "對話氣泡", "Microphone" : "米高風", + "Minus sign" : "減號", + "Computer monitor" : "電腦螢幕", + "Moped" : "輕型電單車", + "More options symbol" : "更多選項符號", + "Mosque" : "清真寺", + "Motion lines" : "動態線條", + "Motorbike" : "電單車", + "Computer mouse" : "滑鼠", + "Clapperboard" : "場記板", + "Mustache" : "鬍子", + "Tree" : "樹", + "Navigation arrow" : "導航箭嘴", + "Newspaper" : "報紙", + "Noodles" : "麵條", + "Half-filled drop" : "半填滿的水滴", + "Overscan frame" : "過掃描框架", + "Paint palette" : "調色板", + "Panorama photo" : "全景相片", + "Paperclip" : "萬字夾", + "Paragliding" : "滑翔傘運動", + "Parking sign" : "泊車標誌", "Pasta" : "義大利粉", + "Pause symbol" : "暫停符號", + "Pencil" : "鉛筆", + "Telephone" : "電話", + "Piano" : "鋼琴", + "Pushpin" : "圖釘", + "Pinwheel" : "風車", "Pizza" : "披薩", + "Play symbol" : "播放符號", + "Plus sign" : "加號", + "Podcast symbol" : "Podcast 符號", + "Polo" : "馬球", + "Blog post page" : "網誌文章頁面", + "Power symbol" : "電源符號", + "Printer" : "打印機", + "Arrow up to a bar" : "向上指向橫線的箭嘴", "Puzzle" : "智力遊戲", + "Racquetball" : "美式壁球", + "Radar screen" : "雷達螢幕", "Radio" : "單選框", + "RAW label" : "RAW 標籤", + "Redo arrow" : "重做箭嘴", + "Refresh arrow" : "重新整理箭嘴", + "String tied on a finger" : "綁在手指上的繩子", + "Remote control" : "遙控器", + "Pencil on a line" : "橫線上的鉛筆", + "Repeat arrows" : "重複箭嘴", + "Replay arrow" : "重播箭嘴", + "Reply arrow" : "回覆箭嘴", + "Restart arrow" : "重新啟動箭嘴", + "Restore arrow" : "還原箭嘴", + "Rewind symbol" : "倒帶符號", + "Ribbon" : "絲帶", + "Rocket" : "火箭", + "Rodent" : "齧齒動物", + "Rowing" : "賽艇", + "RSS feed symbol" : "RSS 訂閱符號", + "Rugby" : "欖球", + "Running person" : "跑步的人", + "Satellite" : "衛星", + "Saxophone" : "色士風", "Scanner" : "掃描器", + "Graduation cap" : "畢業帽", "Scooter" : "小型摩托車", + "SD card" : "SD 記憶卡", + "Chair" : "椅子", + "Shield" : "盾牌", + "Text segments" : "文字片段", + "Paper plane" : "紙飛機", + "Shapes" : "形狀", + "Share arrow" : "分享箭嘴", + "Shopping bag" : "購物袋", + "Shuffle arrows" : "隨機播放箭嘴", + "Sigma symbol" : "Sigma 符號", + "Fork and knife" : "刀叉", + "SIM card" : "SIM 卡", + "Ice skate" : "溜冰鞋", "Skateboard" : "滑板", + "Skateboarding" : "滑板運動", + "Skier" : "滑雪者", + "Sledding" : "雪橇運動", + "Sleep symbol" : "睡眠符號", + "Cigarette" : "香煙", + "Snowboard" : "滑雪板", + "Snowflake" : "雪花", "Snowmobile" : "摩托雪橇", + "Snowshoeing" : "雪鞋健行", + "Soccer ball" : "足球", + "Lotus flower" : "蓮花", "Speaker" : "喇叭", + "Spellcheck mark" : "拼字檢查標記", + "Stadium" : "運動場", "Star" : "星標", + "Steering wheel" : "軚盤", + "Stop symbol" : "停止符號", + "Storefront" : "店面", + "Subtitles box" : "字幕框", + "Subway train" : "地鐵列車", + "Surfing" : "滑浪", + "Synagogue" : "猶太會堂", + "Sync arrows" : "同步箭嘴", + "Browser tab" : "瀏覽器分頁", + "Tablet" : "平板電腦", + "Price tag" : "價錢牌", + "Taxi" : "的士", + "Tea" : "茶", + "Television" : "電視", + "Tennis" : "網球", "Mountains" : "山", + "Text lines" : "文字行", + "Texture pattern" : "紋理圖案", + "Thermostat" : "恆溫器", + "Ticket" : "票券", + "Timelapse circle" : "縮時攝影圓圈", + "Toolbox" : "工具箱", "Train" : "火車", + "Tram" : "電車", + "Transition shapes" : "轉場形狀", + "Translation symbol" : "翻譯符號", "Truck" : "貨車", + "Tsunami" : "海嘯", + "Slider controls" : "滑桿控制項", + "Undo arrow" : "復原箭嘴", + "Clock with clockwise arrow" : "帶順時針箭嘴的時鐘", + "Upload arrow" : "上傳箭嘴", + "USB symbol" : "USB 符號", + "Vacuum cleaner" : "吸塵機", + "Vibrating phone" : "震動中的電話", + "Video camera" : "攝錄機", + "Violin" : "小提琴", + "Voicemail symbol" : "留言信箱符號", + "Volcano" : "火山", + "Volleyball" : "排球", + "Ballot box" : "投票箱", + "Walking person" : "步行的人", + "Wallet" : "銀包", + "Wallpaper" : "桌布", + "Wristwatch" : "手錶", + "Water drop" : "水滴", "Watermark" : "水印", + "Web globe" : "網絡地球圖示", + "Widget blocks" : "小工具方塊", + "Wrench" : "士巴拿", + "YouTube logo" : "YouTube 標誌", "Could not update cell" : "無法更新儲存格", "Filter operator" : "過濾器運算符", "Contains items" : "包含項目", From 70da7941fc1f1382fbd6227819b021f896a6c0d9 Mon Sep 17 00:00:00 2001 From: "Enjeck C." Date: Fri, 20 Nov 2026 05:46:55 +0000 Subject: [PATCH 25/62] fix(deps): revert @nextcloud/dialogs to v7 for NC < 35 support Signed-off-by: Enjeck C. --- package-lock.json | 24 ++++++------------- package.json | 2 +- renovate.json | 6 +++++ src/file-actions.js | 2 ++ .../main/partials/ColumnTypeSelection.vue | 1 + src/modules/modals/CreateColumn.vue | 1 + src/modules/modals/CreateContext.vue | 1 + src/modules/modals/CreateRow.vue | 1 + src/modules/modals/CreateTable.vue | 1 + src/modules/modals/DeleteColumn.vue | 1 + src/modules/modals/DeleteContext.vue | 1 + src/modules/modals/DeleteRows.vue | 1 + src/modules/modals/DeleteTable.vue | 1 + src/modules/modals/DeleteView.vue | 1 + src/modules/modals/EditColumn.vue | 1 + src/modules/modals/EditContext.vue | 1 + src/modules/modals/EditRow.vue | 1 + src/modules/modals/EditTable.vue | 1 + src/modules/modals/TransferContext.vue | 1 + src/modules/modals/TransferTable.vue | 1 + src/modules/modals/ViewSettings.vue | 1 + .../partials/NavigationContextItem.vue | 1 + .../partials/NavigationTableItem.vue | 1 + .../partials/NavigationViewItem.vue | 1 + src/modules/sidebar/mixins/shareAPI.js | 1 + src/modules/sidebar/partials/ShareList.vue | 1 + .../ncContextResource/ResourceSharees.vue | 1 + .../components/ncUserPicker/NcUserPicker.vue | 1 + src/shared/mixins/searchUserGroup.js | 1 + 29 files changed, 41 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index 40a1d2b280..f8cf39a7df 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "@nextcloud/auth": "^2.6.0", "@nextcloud/axios": "^2.6.0", "@nextcloud/capabilities": "^1.2.1", - "@nextcloud/dialogs": "^8.0.0", + "@nextcloud/dialogs": "^7.5.0", "@nextcloud/event-bus": "^3.3.3", "@nextcloud/files": "^4.1.1", "@nextcloud/initial-state": "^3.0.0", @@ -1618,9 +1618,9 @@ } }, "node_modules/@nextcloud/dialogs": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@nextcloud/dialogs/-/dialogs-8.0.0.tgz", - "integrity": "sha512-8uN59XKOMk7MVCh0Nxdd8hvZmZQxlVIRv8s1GrhC5+Ub0hD6yJ/8XyruF54lrkmGmBqh048/i/ZER93vwfRpDg==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/@nextcloud/dialogs/-/dialogs-7.6.0.tgz", + "integrity": "sha512-s6PZDNioK+iWbVm/Y2utlpWDCKqlxfh0oUaOkiQWaxZq8j5UQsh1iI1bKAnhCRFlNc/yKmj1EOVBMRQ2EDGkNQ==", "license": "AGPL-3.0-or-later", "dependencies": { "@mdi/js": "^7.4.47", @@ -1635,8 +1635,10 @@ "@nextcloud/router": "^3.2.0", "@nextcloud/sharing": "^0.4.0", "@nextcloud/vue": "^9.13.1", + "@types/toastify-js": "^1.12.4", "@vueuse/core": "^15.0.0", - "p-queue": "^10.0.0", + "p-queue": "^9.3.3", + "toastify-js": "^1.12.0", "vue": "^3.5.44", "webdav": "^5.11.0" }, @@ -1644,18 +1646,6 @@ "node": "^22.18 || ^24 || >=26" } }, - "node_modules/@nextcloud/dialogs/node_modules/p-queue": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-10.0.0.tgz", - "integrity": "sha512-P2wrCri3bhGLPo3kX7qYVXbo/5GvaVATU0DpO24CbeT53Y4z35t8JUWku04ERpXHUYB5rPMi3TkWE3fmJgx5rA==", - "license": "MIT", - "engines": { - "node": ">=22" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/@nextcloud/e2e-test-server": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/@nextcloud/e2e-test-server/-/e2e-test-server-0.6.1.tgz", diff --git a/package.json b/package.json index 6ee9a5477e..4913a5f82e 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "@nextcloud/auth": "^2.6.0", "@nextcloud/axios": "^2.6.0", "@nextcloud/capabilities": "^1.2.1", - "@nextcloud/dialogs": "^8.0.0", + "@nextcloud/dialogs": "^7.5.0", "@nextcloud/event-bus": "^3.3.3", "@nextcloud/files": "^4.1.1", "@nextcloud/initial-state": "^3.0.0", diff --git a/renovate.json b/renovate.json index 1a0b8d1cb0..0df0edbd8e 100644 --- a/renovate.json +++ b/renovate.json @@ -52,6 +52,12 @@ "matchPackageNames": ["@nextcloud/files"], "allowedVersions": "<4" }, + { + "description": "Hold @nextcloud/dialogs at v7 on main while Nextcloud 33 and 34 are supported (v8 needs Nextcloud 35+)", + "matchBaseBranches": ["main"], + "matchPackageNames": ["@nextcloud/dialogs"], + "allowedVersions": "<8" + }, { "matchPackageNames": ["typescript"], "allowedVersions": "<7", diff --git a/src/file-actions.js b/src/file-actions.js index a6454c3646..fc7516a13b 100644 --- a/src/file-actions.js +++ b/src/file-actions.js @@ -6,6 +6,8 @@ import { registerFileAction } from '@nextcloud/files' import { spawnDialog } from '@nextcloud/vue/functions/dialog' import tablesIcon from '@mdi/svg/svg/table-large.svg?raw' +import '@nextcloud/dialogs/style.css' + const validMimeTypes = [ 'text/csv', 'text/html', diff --git a/src/modules/main/partials/ColumnTypeSelection.vue b/src/modules/main/partials/ColumnTypeSelection.vue index 3b9dbd380e..9f861c91ab 100644 --- a/src/modules/main/partials/ColumnTypeSelection.vue +++ b/src/modules/main/partials/ColumnTypeSelection.vue @@ -43,6 +43,7 @@