<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/couchdb.git, branch erlfmt-3.x</title>
<subtitle>github.com: apache/couchdb.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/'/>
<entry>
<title>Apply erlfmt formatting to source tree</title>
<updated>2021-11-20T07:09:48+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@gmail.com</email>
</author>
<published>2021-11-20T06:00:08+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=97f47c59e1ec8154ac6b4870f73e4821acb22ce2'/>
<id>97f47c59e1ec8154ac6b4870f73e4821acb22ce2</id>
<content type='text'>
These exceptions from main were ported over to 3.x

```
--- a/src/chttpd/src/chttpd.erl
+++ b/src/chttpd/src/chttpd.erl
@@ -491,6 +491,7 @@ extract_cookie(#httpd{mochi_req = MochiReq}) -&gt;
     end.
 %%% end hack

+%% erlfmt-ignore
 set_auth_handlers() -&gt;
     AuthenticationDefault =  "{chttpd_auth, cookie_authentication_handler},
```

```
--- a/src/couch/src/couch_debug.erl
+++ b/src/couch/src/couch_debug.erl
@@ -49,6 +49,7 @@ help() -&gt;
     ].

 -spec help(Function :: atom()) -&gt; ok.
+%% erlfmt-ignore
 help(opened_files) -&gt;
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These exceptions from main were ported over to 3.x

```
--- a/src/chttpd/src/chttpd.erl
+++ b/src/chttpd/src/chttpd.erl
@@ -491,6 +491,7 @@ extract_cookie(#httpd{mochi_req = MochiReq}) -&gt;
     end.
 %%% end hack

+%% erlfmt-ignore
 set_auth_handlers() -&gt;
     AuthenticationDefault =  "{chttpd_auth, cookie_authentication_handler},
```

```
--- a/src/couch/src/couch_debug.erl
+++ b/src/couch/src/couch_debug.erl
@@ -49,6 +49,7 @@ help() -&gt;
     ].

 -spec help(Function :: atom()) -&gt; ok.
+%% erlfmt-ignore
 help(opened_files) -&gt;
```
</pre>
</div>
</content>
</entry>
<entry>
<title>Port erlfmt formatting to 3.x</title>
<updated>2021-11-20T07:08:28+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@gmail.com</email>
</author>
<published>2021-11-17T20:35:56+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=29640aa456897da539287f8bf6f66b7b66e48207'/>
<id>29640aa456897da539287f8bf6f66b7b66e48207</id>
<content type='text'>
From PR: #3568

A few changes to the formatting logic compared to `main`:

  * rebar3 and `erlfmt` don't work with Erlang 20, so added an OTP version
    check to skip formatting for Erlang 20

  * `make erlfmt-*` commands are faster. Instead of spawning an `erlfmt`
    process per-file, spawn one per `directory/*.erl` pattern.

  * Remove the non-0 return code work-around. `erlfmt` was returning an error
    on `main` because the line width option used for formatting was different
    than the one used during format checking. Making both the default removed
    all the spurious non-0 exits with the current version of `erlfmt`. Thanks
    to Adam Kocoloski for pointing out the issue.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
From PR: #3568

A few changes to the formatting logic compared to `main`:

  * rebar3 and `erlfmt` don't work with Erlang 20, so added an OTP version
    check to skip formatting for Erlang 20

  * `make erlfmt-*` commands are faster. Instead of spawning an `erlfmt`
    process per-file, spawn one per `directory/*.erl` pattern.

  * Remove the non-0 return code work-around. `erlfmt` was returning an error
    on `main` because the line width option used for formatting was different
    than the one used during format checking. Making both the default removed
    all the spurious non-0 exits with the current version of `erlfmt`. Thanks
    to Adam Kocoloski for pointing out the issue.
</pre>
</div>
</content>
</entry>
<entry>
<title>Reduce skipped integration tests</title>
<updated>2021-11-14T16:01:34+00:00</updated>
<author>
<name>Jay Doane</name>
<email>jaydoane@apache.org</email>
</author>
<published>2021-11-11T21:46:24+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=1a411abe0b12bb81ed2560bee5d94b21069472c0'/>
<id>1a411abe0b12bb81ed2560bee5d94b21069472c0</id>
<content type='text'>
The `skip.elixir` file was ported [1] from FDB-based main branch but
contains more exclusions than necessary for 3.x.

This removes tests from `skip.elixir` that pass on 3.x.

[1] https://github.com/apache/couchdb/commit/65fbc6cfdb29bab1072a42f4d6005da452a7fa65#diff-d9485d6f3162015017bc09c9db3f87df0ca489d961c44347241a035854eb8044
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The `skip.elixir` file was ported [1] from FDB-based main branch but
contains more exclusions than necessary for 3.x.

This removes tests from `skip.elixir` that pass on 3.x.

[1] https://github.com/apache/couchdb/commit/65fbc6cfdb29bab1072a42f4d6005da452a7fa65#diff-d9485d6f3162015017bc09c9db3f87df0ca489d961c44347241a035854eb8044
</pre>
</div>
</content>
</entry>
<entry>
<title>Eliminate elixir test compiler warnings</title>
<updated>2021-11-10T21:04:39+00:00</updated>
<author>
<name>Jay Doane</name>
<email>jaydoane@apache.org</email>
</author>
<published>2021-11-09T23:43:21+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=93ec4570e87568a4bc2d22125df0377776768a45'/>
<id>93ec4570e87568a4bc2d22125df0377776768a45</id>
<content type='text'>
Eliminates the following:

warning: variable "epoch" is unused (if the variable is not meant to be used, prefix it with an underscore)
  src/couchdb/test/elixir/test/replication_test.exs:1756: ReplicationTest.seq_to_shards/1

warning: variable "uuid" is unused (if the variable is not meant to be used, prefix it with an underscore)
  src/couchdb/test/elixir/test/replication_test.exs:1756: ReplicationTest.seq_to_shards/1

warning: variable "string" is unused (if the variable is not meant to be used, prefix it with an underscore)
  src/couchdb/test/elixir/test/utf8_test.exs:32: UTF8Test."test UTF8 support"/1

warning: variable "repeated_view_offset_test_fun" does not exist and is being expanded to "repeated_view_offset_test_fun()", please use parentheses to remove the ambiguity or change the variable name
  src/couchdb/test/elixir/test/view_offsets_test.exs:63: ViewOffsetTest."test repeated view offsets"/1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Eliminates the following:

warning: variable "epoch" is unused (if the variable is not meant to be used, prefix it with an underscore)
  src/couchdb/test/elixir/test/replication_test.exs:1756: ReplicationTest.seq_to_shards/1

warning: variable "uuid" is unused (if the variable is not meant to be used, prefix it with an underscore)
  src/couchdb/test/elixir/test/replication_test.exs:1756: ReplicationTest.seq_to_shards/1

warning: variable "string" is unused (if the variable is not meant to be used, prefix it with an underscore)
  src/couchdb/test/elixir/test/utf8_test.exs:32: UTF8Test."test UTF8 support"/1

warning: variable "repeated_view_offset_test_fun" does not exist and is being expanded to "repeated_view_offset_test_fun()", please use parentheses to remove the ambiguity or change the variable name
  src/couchdb/test/elixir/test/view_offsets_test.exs:63: ViewOffsetTest."test repeated view offsets"/1
</pre>
</div>
</content>
</entry>
<entry>
<title>Using _bulk_docs with new_edits false and without _rev should responds 400 Bad Request</title>
<updated>2021-11-08T19:29:35+00:00</updated>
<author>
<name>jiahuili</name>
<email>Jiahui.Li@ibm.com</email>
</author>
<published>2021-11-03T04:42:39+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=990b4944f50ab9c6a50a3c05ffa6cf41a07745da'/>
<id>990b4944f50ab9c6a50a3c05ffa6cf41a07745da</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use `weatherreport_check_nodes_connected:check/1`</title>
<updated>2021-11-06T16:28:01+00:00</updated>
<author>
<name>Jay Doane</name>
<email>jaydoane@apache.org</email>
</author>
<published>2021-10-27T20:29:47+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=283159f7be1f6c1aea3d5d73f075e76d84d02778'/>
<id>283159f7be1f6c1aea3d5d73f075e76d84d02778</id>
<content type='text'>
The arity 0 version does not exist.

Fixes dialyzer warning:

{warn_callgraph,{"src/weatherreport_node.erl",126},
                {call_to_missing,[weatherreport_check_nodes_connected,check,
                                  0]}}
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The arity 0 version does not exist.

Fixes dialyzer warning:

{warn_callgraph,{"src/weatherreport_node.erl",126},
                {call_to_missing,[weatherreport_check_nodes_connected,check,
                                  0]}}
</pre>
</div>
</content>
</entry>
<entry>
<title>Bump version to 3.2.1 and update dependencies</title>
<updated>2021-11-03T01:01:20+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@gmail.com</email>
</author>
<published>2021-11-03T00:33:06+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=244d428afe01a746b012f3dc4ec4865935ea8ad3'/>
<id>244d428afe01a746b012f3dc4ec4865935ea8ad3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix reduce view row collation with unicode equivalent keys</title>
<updated>2021-11-01T15:47:31+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2021-10-13T05:52:00+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=77b44024f5058dc44074ac0a67de0a8a39c90ccc'/>
<id>77b44024f5058dc44074ac0a67de0a8a39c90ccc</id>
<content type='text'>
Previously, view reduce collation with keys relied on the keys in the
rows returned from the view shards to exactly match (=:=) the keys
specified in the args. However, in the case when there are multiple
rows which compare equal with the unicode collator, that may not
always be the case.

In that case when the rows are fetched from the row dict by key, they
should be matched using the same collation algorithm as the one used
on the view shards.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, view reduce collation with keys relied on the keys in the
rows returned from the view shards to exactly match (=:=) the keys
specified in the args. However, in the case when there are multiple
rows which compare equal with the unicode collator, that may not
always be the case.

In that case when the rows are fetched from the row dict by key, they
should be matched using the same collation algorithm as the one used
on the view shards.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(local.ini): straggling s/couch_httpd_auth/chttpd_auth/</title>
<updated>2021-10-30T20:08:41+00:00</updated>
<author>
<name>Jay Doane</name>
<email>jaydoane@apache.org</email>
</author>
<published>2021-10-30T18:49:49+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=5a7f1d40c4f0f9327a9f4b19ce8c33a672fe818d'/>
<id>5a7f1d40c4f0f9327a9f4b19ce8c33a672fe818d</id>
<content type='text'>
The appropriately named `hack_local_ini` function in dev/run lives up
to its name by adding a random `secret` to the end of whichever
section contains the line `"; require_valid_user = false\n"`.

Recent commits [1] updated the `setup` application from
`couch_httpd_auth` to `chttpd_auth` without also changing this line
in local.ini, which had the fun effect of causing `setup` to fail with
this error:

```
[error] 2021-10-30T18:50:15.019274Z node1@127.0.0.1 &lt;0.817.0&gt; 85d0421b9c setup sync_admin results [{badrpc,{'EXIT',{function_clause,[{config,set,["chttpd_auth","secret",undefined,true,nil],[{file,"src/config.erl"},{line,189}]},{rpc,'-handle_call_call/6-fun-0-',5,[{file,"rpc.erl"},{line,197}]}]}}},{badrpc,{'EXIT',{function_clause,[{config,set,["chttpd_auth","secret",undefined,true,nil],[{file,"src/config.erl"},{line,189}]},{rpc,'-handle_call_call/6-fun-0-',5,[{file,"rpc.erl"},{line,197}]}]}}}] errors []
[notice] 2021-10-30T18:50:15.019530Z node1@127.0.0.1 &lt;0.817.0&gt; 85d0421b9c 127.0.0.1:15984 127.0.0.1 adm POST /_cluster_setup 500 ok 12
```

This change "fixes" dev/run by also updating the straggling section
name in local.ini.

[1] https://github.com/apache/couchdb/pull/3808
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The appropriately named `hack_local_ini` function in dev/run lives up
to its name by adding a random `secret` to the end of whichever
section contains the line `"; require_valid_user = false\n"`.

Recent commits [1] updated the `setup` application from
`couch_httpd_auth` to `chttpd_auth` without also changing this line
in local.ini, which had the fun effect of causing `setup` to fail with
this error:

```
[error] 2021-10-30T18:50:15.019274Z node1@127.0.0.1 &lt;0.817.0&gt; 85d0421b9c setup sync_admin results [{badrpc,{'EXIT',{function_clause,[{config,set,["chttpd_auth","secret",undefined,true,nil],[{file,"src/config.erl"},{line,189}]},{rpc,'-handle_call_call/6-fun-0-',5,[{file,"rpc.erl"},{line,197}]}]}}},{badrpc,{'EXIT',{function_clause,[{config,set,["chttpd_auth","secret",undefined,true,nil],[{file,"src/config.erl"},{line,189}]},{rpc,'-handle_call_call/6-fun-0-',5,[{file,"rpc.erl"},{line,197}]}]}}}] errors []
[notice] 2021-10-30T18:50:15.019530Z node1@127.0.0.1 &lt;0.817.0&gt; 85d0421b9c 127.0.0.1:15984 127.0.0.1 adm POST /_cluster_setup 500 ok 12
```

This change "fixes" dev/run by also updating the straggling section
name in local.ini.

[1] https://github.com/apache/couchdb/pull/3808
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(prometheus): allow users with _metrics role to read</title>
<updated>2021-10-30T18:30:03+00:00</updated>
<author>
<name>Jan Lehnardt</name>
<email>jan@apache.org</email>
</author>
<published>2021-10-30T09:06:08+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=9c2de4e725f014fb56d3ffd71d5f592cf0fecc67'/>
<id>9c2de4e725f014fb56d3ffd71d5f592cf0fecc67</id>
<content type='text'>
Closes #3801
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #3801
</pre>
</div>
</content>
</entry>
</feed>
