cheminfo / rest-on-couch

Interface to couchDB with user rights management
https://github.com/cheminfo/rest-on-couch/blob/main/API.md
MIT License
13 stars 2 forks source link

fix: make sure couchdb users can be edited from api with couchdb 3 #369

Closed stropitek closed 2 years ago

stropitek commented 2 years ago

In couchdb 3, it's no longer possible to add users to the _users collection This makes it only possible to add or edit couchdb users with a couchdb admin

codecov[bot] commented 2 years ago

Codecov Report

Merging #369 (0987213) into main (c2ea5ec) will decrease coverage by 0.94%. The diff coverage is 91.35%.

@@            Coverage Diff             @@
##             main     #369      +/-   ##
==========================================
- Coverage   91.76%   90.81%   -0.95%     
==========================================
  Files          61       61              
  Lines        6930     6923       -7     
  Branches      835      800      -35     
==========================================
- Hits         6359     6287      -72     
- Misses        569      631      +62     
- Partials        2        5       +3     
Impacted Files Coverage Δ
src/server/middleware/couch.js 87.68% <0.00%> (-0.65%) :arrow_down:
src/server/middleware/auth.js 84.03% <83.33%> (-4.67%) :arrow_down:
src/util/nanoShim.js 91.45% <83.33%> (-0.76%) :arrow_down:
src/config/config.js 93.75% <100.00%> (-0.10%) :arrow_down:
src/config/db.js 100.00% <100.00%> (ø)
src/couch/attachment.js 86.75% <100.00%> (+0.08%) :arrow_up:
src/couch/doc.js 84.61% <100.00%> (ø)
src/couch/group.js 90.68% <100.00%> (-2.67%) :arrow_down:
src/couch/index.js 98.30% <100.00%> (ø)
src/couch/init.js 89.47% <100.00%> (ø)
... and 23 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c2ea5ec...0987213. Read the comment docs.