From 1778e57baf390fa29fa43bbc01c016af76e4fe05 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 15 Feb 2021 06:14:53 +0000 Subject: [PATCH] Missing field in view --- database.sql | 1 + static/dbview.config.php | 1 + tests/datasets/api.fixture.php | 10 ++++++++++ 3 files changed, 12 insertions(+) diff --git a/database.sql b/database.sql index 3b53e76e05..01f81cb0d5 100644 --- a/database.sql +++ b/database.sql @@ -2152,6 +2152,7 @@ DROP VIEW IF EXISTS `tag-search-view`; CREATE VIEW `tag-search-view` AS SELECT `post-tag`.`uri-id` AS `uri-id`, `post-user`.`uid` AS `uid`, + `post-user`.`id` AS `iid`, `post-user`.`private` AS `private`, `post-user`.`wall` AS `wall`, `post-user`.`origin` AS `origin`, diff --git a/static/dbview.config.php b/static/dbview.config.php index 79a2407f4a..794d96659b 100644 --- a/static/dbview.config.php +++ b/static/dbview.config.php @@ -587,6 +587,7 @@ "fields" => [ "uri-id" => ["post-tag", "uri-id"], "uid" => ["post-user", "uid"], + "iid" => ["post-user", "id"], "private" => ["post-user", "private"], "wall" => ["post-user", "wall"], "origin" => ["post-user", "origin"], diff --git a/tests/datasets/api.fixture.php b/tests/datasets/api.fixture.php index 3a1ad6d6b3..3e80f7c551 100644 --- a/tests/datasets/api.fixture.php +++ b/tests/datasets/api.fixture.php @@ -50,6 +50,16 @@ return [ 'k' => 'worker_dont_fork', 'v' => '1', ], + [ + 'cat' => 'system', + 'k' => 'curl_timeout', + 'v' => '1', + ], + [ + 'cat' => 'system', + 'k' => 'xrd_timeout', + 'v' => '1', + ], ], 'user' => [ [