Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(general): allow listing and confirming users manually. Fixes MA-77 #152

Merged
merged 3 commits into from
Oct 21, 2020

Conversation

serge1peshcoff
Copy link
Member

a) added 2 endpoints:

  1. /members/unconfirmed - list unconfirmed users
  2. /members/:id/confirm - confirm users
    b) added permissions for seeding
    c) added tests

@codecov-io
Copy link

codecov-io commented Oct 21, 2020

Codecov Report

Merging #152 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #152   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           42        42           
  Lines         1309      1321   +12     
  Branches       200       202    +2     
=========================================
+ Hits          1309      1321   +12     
Impacted Files Coverage Δ
lib/server.js 100.00% <100.00%> (ø)
middlewares/members.js 100.00% <100.00%> (ø)

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 a940a42...3a84dd0. Read the comment docs.

const user = await generator.createUser({ superadmin: true });
const token = await generator.createAccessToken({}, user);

await generator.createPermission({ scope: 'local', action: 'confirm', object: 'member' });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the scope of the permission local?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yeah, accessing it with local permission doesn't make sense, as the listing is only accessed with the local one

Copy link
Member

@WikiRik WikiRik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left one question, but lgtm

@serge1peshcoff serge1peshcoff merged commit 8b5fd16 into master Oct 21, 2020
@serge1peshcoff serge1peshcoff deleted the allow-confirming-users branch October 21, 2020 20:18
serge1peshcoff pushed a commit that referenced this pull request Oct 21, 2020
# [1.30.0](1.29.0...1.30.0) (2020-10-21)

### Features

* **general:** allow listing and confirming users manually. Fixes MA-77 ([#152](#152)) ([8b5fd16](8b5fd16))
@serge1peshcoff
Copy link
Member Author

🎉 This PR is included in version 1.30.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants