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

SC-9017; SC-9003 - adds to /me service school info and user permissions #2502

Closed
wants to merge 3 commits into from

Conversation

virgilchiriac
Copy link
Contributor

@virgilchiriac virgilchiriac commented May 3, 2021

Description

This allows nuxt client to call only one endpoint instead of 3.
This allows the other endpoints to be protected for direct access.

Links to Tickets or other pull requests

https://ticketsystem.hpi-schul-cloud.org/browse/SC-9017
hpi-schul-cloud/nuxt-client#1762

Changes

Datasecurity details on Confluence

Deployment

New Repos, NPM pakages or vendor scripts

Approval for review

  • All points were discussed with the ticket creator, support-team or product owner. The code upholds all quality guidelines from the PR-template.

Notice: Please remove the WIP label if the PR is ready to review, otherwise nobody will review it.

Link to Definition of Done

More and detailed information on the definition of done can be found on Confluence

…rmissions

This allows nuxt client to call only one endpoint instead of 3.
This allows the other endpoints to be protected for direct access.
@mergify mergify bot added the WIP This feature branch is in progress, do not merge into master. label May 3, 2021
@codecov
Copy link

codecov bot commented May 3, 2021

Codecov Report

Merging #2502 (fe688be) into develop (3afe7b4) will decrease coverage by 0.07%.
The diff coverage is 100.00%.

❗ Current head fe688be differs from pull request most recent head 5131afb. Consider uploading reports for the commit 5131afb to get more accurate results
Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2502      +/-   ##
===========================================
- Coverage    76.16%   76.08%   -0.08%     
===========================================
  Files          513      513              
  Lines        14176    14179       +3     
===========================================
- Hits         10797    10788       -9     
- Misses        3379     3391      +12     
Impacted Files Coverage Δ
src/services/me/index.js 84.21% <100.00%> (+1.35%) ⬆️
src/services/user-group/services/classSuccessor.js 85.00% <0.00%> (-8.34%) ⬇️
src/services/user/utils/aggregations.js 82.75% <0.00%> (-6.90%) ⬇️
src/services/user/services/AdminUsers.js 84.12% <0.00%> (-2.39%) ⬇️
src/hooks/index.js 75.93% <0.00%> (+0.25%) ⬆️
src/services/school/hooks/index.js 86.20% <0.00%> (+0.68%) ⬆️

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 3afe7b4...5131afb. Read the comment docs.

@CeEv CeEv added the Status? Status unklar label Jun 11, 2021
@@ -33,9 +33,14 @@ class Service {
throw new Forbidden('Your access token is not valid.');
}
user.accountId = params.account._id;

const roles = await this.app.service('/roles/user').get(userId, params);
Copy link
Contributor

Choose a reason for hiding this comment

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

They go over the user services with populate roles and the users services resolve all permissions if the roles are populated.

@CeEv CeEv added waiting for review and removed WIP This feature branch is in progress, do not merge into master. labels Jun 11, 2021
@Loki-Afro Loki-Afro closed this Jul 8, 2021
@Loki-Afro Loki-Afro deleted the branch develop July 8, 2021 14:23
@CeEv CeEv deleted the feature/SC-9017-reduce-nuxt-endpoints branch April 12, 2022 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants