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

Restrict Admin from unlinking users from other district #1157

Merged
merged 14 commits into from
Dec 7, 2023

Conversation

Pranshu1902
Copy link
Contributor

@Pranshu1902 Pranshu1902 commented Jan 13, 2023

Fixes #1152
Ensure that the admin's district is same as that of the facility user's district being deleted and also able to home facilities only for users within same district.

@Pranshu1902 Pranshu1902 requested a review from a team as a code owner January 13, 2023 20:09
@codecov-commenter
Copy link

codecov-commenter commented Jan 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (033d085) 60.75% compared to head (465d8f8) 60.91%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1157      +/-   ##
==========================================
+ Coverage   60.75%   60.91%   +0.16%     
==========================================
  Files         210      210              
  Lines       11533    11535       +2     
  Branches     1644     1645       +1     
==========================================
+ Hits         7007     7027      +20     
+ Misses       4285     4259      -26     
- Partials      241      249       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

care/users/api/viewsets/users.py Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Jan 19, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sonarcloud
Copy link

sonarcloud bot commented Mar 15, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@siddnikh siddnikh left a comment

Choose a reason for hiding this comment

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

LGTM

care/users/api/viewsets/users.py Outdated Show resolved Hide resolved
Pranshu1902 and others added 2 commits June 25, 2023 16:40
@sainak
Copy link
Member

sainak commented Jun 25, 2023

@Pranshu1902 add test cases

@Pranshu1902
Copy link
Contributor Author

@sainak @vigneshhari please review and merge the PR. I have added tests cases

@sainak
Copy link
Member

sainak commented Nov 3, 2023

@Pranshu1902 the test are not catching the changes, try to assert the error message response

@Pranshu1902
Copy link
Contributor Author

@sainak done

Co-authored-by: Aakash Singh <mail@singhaakash.dev>
care/users/api/viewsets/users.py Outdated Show resolved Hide resolved
@vigneshhari vigneshhari merged commit 7663481 into coronasafe:master Dec 7, 2023
5 checks passed
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.

User facility unlink permission issue.
6 participants