This is an automated email from the ASF dual-hosted git repository.
bessbd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/main by this push:
new 1062435 Fix _changes?filter=_design (#3430)
1062435 is described below
commit 1062435f50cf5bcc45cd37b0f89968d1d050c17e
Author: Bessenyei Balázs Donát <[email protected]>
AuthorDate: Tue Mar 16 16:48:24 2021 +0100
Fix _changes?filter=_design (#3430)
---
src/chttpd/src/chttpd_changes.erl | 9 ++++++++-
test/elixir/test/config/skip.elixir | 1 -
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/chttpd/src/chttpd_changes.erl
b/src/chttpd/src/chttpd_changes.erl
index 45c7d57..8bf33ec 100644
--- a/src/chttpd/src/chttpd_changes.erl
+++ b/src/chttpd/src/chttpd_changes.erl
@@ -466,7 +466,14 @@ send_changes_doc_ids(Db, StartSeq, Dir, Fun, Acc0,
{doc_ids, _Style, DocIds}) ->
send_changes_design_docs(Db, StartSeq, Dir, Fun, Acc0, {design_docs, _Style})
->
- FoldFun = fun(FDI, Acc) -> {ok, [FDI | Acc]} end,
+ FoldFun = fun(FDI, Acc) ->
+ case FDI of
+ {row, Row} ->
+ DocId = proplists:get_value(id, Row),
+ {ok, [fabric2_db:get_full_doc_info(Db, DocId) | Acc]};
+ _ -> {ok, Acc}
+ end
+ end,
Opts = [
include_deleted,
{start_key, <<"_design/">>},
diff --git a/test/elixir/test/config/skip.elixir
b/test/elixir/test/config/skip.elixir
index 8f446ee..bc581b6 100644
--- a/test/elixir/test/config/skip.elixir
+++ b/test/elixir/test/config/skip.elixir
@@ -38,7 +38,6 @@
"ChangesAsyncTest": [
],
"ChangesTest": [
- "changes filtering on design docs"
],
"CoffeeTest": [
"CoffeeScript basic functionality"