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

NUHS app post/polls List issue with self department and ORGANIZATION_DEPARTMENT Post #125

Closed
yatishTrootech opened this issue Mar 31, 2023 · 4 comments · Fixed by #126
Closed
Assignees

Comments

@yatishTrootech
Copy link
Contributor

yatishTrootech commented Mar 31, 2023

In NUHS app if a Post is created with self department then it is still showing to another department of the same ORG

@yatishTrootech yatishTrootech self-assigned this Mar 31, 2023
@qanaveen1111
Copy link

qanaveen1111 commented Mar 31, 2023

  • 1. when creating My department post --/feeds/api/posts/?page=1
  • 2. Like the post--/feeds/api/posts/2096/appreciate/
  • 3. comment to post --/feeds/api/posts/2096/comments/
  • 4. comment like --/feeds/api/comments/651/like/
  • 5.Edit the post--/feeds/api/posts/2096/
  • 6.Delete the post --/feeds/api/posts/2096/
  • 7.Report Abuse-/feeds/api/posts/2088/flag/
  • 8.Clap the comment -/feeds/api/posts/2088/appreciate/

@qanaveen1111
Copy link

qanaveen1111 commented Apr 3, 2023

Pass

Date-3-4-23 and 4-4-23
Server-Jack.skordev.com
Device-IOS

Tested Scenarios

Post to My Department

  • ORG-Parent (Post type -My department) -Created post from parent Org -user1@nuhs.edu.sg (pharmacy dept)and login with same Org but different dept user -user2@nuhs.org ( Dept Diagnostics) post is not displaying
  • ORG-Parent (Post type -My department) -Created post from parent Org -user1@nuhs.edu.sg (pharmacy dept)and login with same Org same dept user -user3@nuhs.org ( Dept Pharmacy) post is displaying
  • ORG-Child (Post type -My department) -Created post from child Org -nuhs@org.in (clinical dept)and login with same Org but different dept user -nuhs1@org.in ( Dept Cardiac ) post is not displaying
  • ORG-Child (Post type -My department) -Created post from child Org -nuhs@org.in (clinical dept)and login with same Org same dept user -nuhs2@org.in ( Dept Clinical) post is displaying
  • Org-Parent and child -Tested the post for like ,comment , report abuse, edit and delete

Post to My Org

  • ORG-Parent (Post type-My ORG) -Created post from parent Org -user1@nuhs.edu.sg (pharmacy dept)and login with same Org but different dept user -user2@nuhs.org ( Dept Diagnostics) post is displaying
  • [ ] ORG-Parent (Post type-My ORG) -Created post from parent Org -user1@nuhs.edu.sg (pharmacy dept)and login with same Org same dept user -user3@nuhs.org ( Dept Pharmacy) post is displaying
  • ORG-Child (Post type-My My ORG ) -Created post from child Org -nuhs@org.in (clinical dept)and login with same Org but different dept user -nuhs1@org.in ( Dept Cardiac ) post is displaying
  • ORG-Child (Post type -My ORG) -Created post from child Org -nuhs@org.in (clinical dept)and login with same Org same dept user -nuhs2@org.in ( Dept Clinical) post is displaying

Post to Custom

  • ORG-Parent (Post type-Custom) -Created post from parent Org -user1@nuhs.edu.sg (pharmacy dept) to Child Org Clinical Dept, login with Child Org -nuhs2@org.in ( Dept Clinical ) post is displaying and login with same Org different Dept Post is not displaying and tested with Parent Org user (dept pharmacy)user3@nuhs.org post is not displaying
  • Org-parent(Post type-Custom)- Created post from Nuhs Parent Org user [user3@nuhs.org] to child Org[Nuhs child Org] (2 dept in child org will see the post ) tested with users from child Org with same dept and different dept post is displaying and login with parent Org user post is not displaying
  • Org-Child (Post type-Custom)-Created post from child Org [nuhs@org.in] to Parent Org dept (Diagnosis dept) and login with child Org pharmacy dept post is not displaying and only displaying to diagnosis dept
  • ORG-Child (Post type-Custom)-Created post user [nuhs2@org.in] to Parent Org Nuhs Test Org and login with parent Org users post is displaying ,login with child Org users post is not displaying
  • ORG-Parent (Post type -Custom)- Created post from Parent Org user [user2@nuhs.org] to both Orgs Nuhs child and Nuhs Test Org ( now all depts in both Orgs can see the post ) tested with both Org and dept users post is displaying

Poll

Poll to My Org

  • ORG-Parent (poll type-My Org )-Created Poll from [admin1@nuhs.org] to My Org and login with same dept users poll is displaying , login with child Org dept users poll is not displaying and from child Org users poll is not displaying
  • ORG-Child (Poll type-My Org)-Created poll from child org [admin@nuhs.org] to My Org and login with same dept users poll is displaying , login with Parent Org dept users poll is not displaying and from child Org users poll is not displaying

Poll to My Dept

  • Org-Parent (Poll type- My Dept)- Created poll from [admin1@nuhs.org] (Pharmacy dept )to My dept and login with diagnosis dept poll is not displaying poll is displaying for only Pharmacy dept
  • Org-Child (Poll type- My Dept)- Created poll from [admin@nuhs.org] (Clinical dept )to My dept and login with Cardic dept poll is not displaying poll is displaying for only Clinical dept

Poll to Custom

  • ORG-parent (poll type -Custom)-Created poll from [admin1@nuhs.org] to child Org (dept cardic ) login with child Org clinical dept user poll is not showing and login with child org cardiac user poll is showing and login with parent Org user poll is not showing
  • Org-child (Poll type -Custom)-Created poll form [admin@nuhs.org] to parent Org (dept pharmacy) login with Parent Org Diagnostics dept poll is not showing , login with pharmacy dept poll is showing and login with child Org users poll is not showing.
  • Org-Parent (Poll type-custom )-Created post from [admin1@nuhs.org] to Nuhs test Org and Nuhs child Org (All users in both departments can see the post) login with Parent and child Org with all depts poll is showing to all depts

@suryaiiit @yatishTrootech @SteffiVinod5

@yatishTrootech
Copy link
Contributor Author

yatishTrootech commented Apr 6, 2023

org1 - dept1 = user1, user2
org2 - dept2 = user3, user4
if user 1 create a polls having org1 and choose custom option(organization department) select dept2

polls ORG = org1 (should be null)
polls dept = dept 2
shared_with=ORG_DEPT

user2 can access the polls which is wrong

polls Shared with ORG_DEPT is not working

@suryaiiit @qanaveen1111

@yatishTrootech
Copy link
Contributor Author

On Hold Reason : #122 (comment)

@yatishTrootech yatishTrootech changed the title NUHS app post/polls List issue with self department Post NUHS app post/polls List issue with self department and ORGANIZATION_DEPARTMENT Post Apr 10, 2023
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 a pull request may close this issue.

2 participants