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

LBAC-33 :Add one or more access locations to a user #57

Merged
merged 1 commit into from
Aug 13, 2019

Conversation

VANKINEENITAWRUN
Copy link
Contributor

@VANKINEENITAWRUN VANKINEENITAWRUN commented May 29, 2019

Description of what I changed

  • Made UI changes for the user to select a list of Locations.
  • Locations are stored as userproperty with location UUID's concatenated.
  • Made changes in Utils and in all ServiceInterceptorAdvice to remove those objects which do not belong to User's Location List.

Issue I worked on

see https://issues.openmrs.org/browse/LBAC-33

Checklist: I completed these to help reviewers :)

  • My pull request only contains ONE single commit

  • My IDE is configured to follow the code style of this project.

  • I have added tests to cover my changes. (If you refactored
    existing code that was well tested you do not have to add tests)

  • I ran mvn clean package right before creating this pull request and
    added all formatting changes to my commit.

  • All new and existing tests passed.

  • My pull request is based on the latest changes of the master branch.

@HerbertYiga
Copy link

Did you build the module and test these changes and found them working perfectly?

@VANKINEENITAWRUN
Copy link
Contributor Author

@HerbertYiga work on them need to make some changes in this to allow the user to login with multiple locations

@suthagar23
Copy link
Member

Can you deploy the changes to https://modules-refapp.openmrs.org , and let me know to test it?

@dkayiwa
Copy link
Member

dkayiwa commented Jun 11, 2019

@VANKINEENITAWRUN can you include the ticket id in your commit message as advised at? https://wiki.openmrs.org/display/docs/Pull+Request+Tips

@VANKINEENITAWRUN VANKINEENITAWRUN changed the title Add one or more access locations to a user LBAC-33 :Add one or more access locations to a user Jun 11, 2019
@suthagar23
Copy link
Member

One major concern here, In your ticket you have mentioned to work only for users. But this PR contains a lot of changes in other services (Patient/Encounter/..etc).

Did you verify that all other features of this module can work without any issues regarding these changes?

@VANKINEENITAWRUN
Copy link
Contributor Author

One major concern here, In your ticket you have mentioned to work only for users. But this PR contains a lot of changes in other services (Patient/Encounter/..etc).

Yes, As the User is Having multiple Locations Access, we get a list of Locations in every InterceptorAdvice of the User so there should be filtered accordingly using the List.

@dkayiwa
Copy link
Member

dkayiwa commented Jul 19, 2019

@suthagar23 any more comments for this?

@suthagar23
Copy link
Member

@dkayiwa Still some comments need to be addressed!

@VANKINEENITAWRUN Can you check the comments and follow JIRA guidelines also.
Fix the conflicts also

@VANKINEENITAWRUN
Copy link
Contributor Author

Fix the conflicts also

@suthagar23 fixed Merge Conflicts, can you please mention JIRA guidelines which I got missed so that I can catch up with them from next time.

@dkayiwa
Copy link
Member

dkayiwa commented Aug 5, 2019

@suthagar23 what do you think of this?

Copy link
Member

@suthagar23 suthagar23 left a comment

Choose a reason for hiding this comment

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

LGTM

@suthagar23 suthagar23 merged commit a3dacb1 into openmrs:master Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants