Closed yatishTrootech closed 6 months ago
Date - 10-4-24 Server- surya.skordev.com User - [admin3@nuhs.org]-pass
----------
### Test Scenarios
Before Creating any post-loading time for all the posts
After creating 10 Posts for the last 3 months
Before Creating any post-loading time for all posts
After creating 10 Appreciation for the last 3 months
cc: @yatishTrootech @SteffiVinod5 @suryaiiit
Date -12-4-23 Server- skordev.com
Yatish made user naveen@parent1.com posts and appreciation to 9-9-23; therefore, there have not been any posts from them in the last three months, and I have made ten posts in thanks and posts for these three months.
[x] I verified the above scenarios on Skordev with the Nuhs app; it takes a loading time of less than 3 seconds and sometimes 5 seconds.
[x] But from Postman, it's taking less than 1 Sec to load
Appreciation Test Result: Appreciation with 10 posts for 3 months
curl --location 'https://skordev.com/feeds/api/user_feed/organization_recognitions/?user_id=48088' \
--header 'Authorization: Token 9be5fe4c40cd54472bb53e38dc11369f859e7c57' \
--header 'User-Agent: Skor/12 iOS |'
Posts Test Results: Post APi Time
curl --location 'https://skordev.com/feeds/api/user_feed/organization_recognitions/?post_polls=1&user_id=48088' \
--header 'Authorization: Token 9be5fe4c40cd54472bb53e38dc11369f859e7c57' \
--header 'User-Agent: Skor/12 iOS |'
My Org
My Dept
My job family
Custom post - with one child org and parent org and one job family
All nuhs Org
@suryaiiit I Verified all the scenarios on Skordev are working fine, Please check the loading time from the app side it's taking 3 to 5 seconds, and from Postman, less than 1 second.
cc: @suryaiiit @SteffiVinod5 @yatishTrootech
Date - 2-08-24 (2hrs) & 5-08-24 Server- akshay.skordev.com user - user1@nuhs.com/pass, admin3@nuhs.org
curl --location 'https://akshay.skordev.com/feeds/api/user_feed/organization_recognitions/?post_polls=1&post_polls_...t=1680&user_id=49102' \
--header 'Authorization: Token 810952f7358d1d917f5aa415b4ec03b99cf3163a' \
--header 'User-Agent: Skor/13 iOS'
curl --location 'https://akshay.skordev.com/feeds/api/user_feed/organization_recognitions/?post_polls=1&user_id=48088' \
--header 'Authorization: Token 810952f7358d1d917f5aa415b4ec03b99cf3163a' \
--header 'User-Agent: Skor/13 iOS'
Before Creating any post or poll -loading time for all the posts
Before fix its loading time is 2.46 sec
Before fix its loading time is 2.60 sec
Before fix starting it took 5.45 Sec and from next time 2.50 Sec
After creating 5 Posts for the last 2 months with existing user admin3@nuhs.org
Before fix - 0.23 milli sec
- > After Fix. - 0.1 milli sec Before fix -5.17 sec
---> After fix - 2.81 secBefore fix 5.8 seconds
--> After fix - 6 Sec After creating 5 Posts for the last 2 months with new user user1@nuhs.com
Before Creating any post-loading time for all posts
[x] 1. Login with the admin user [admin3@nuhs.org] Click on feeds, then click on appreciation, and verify the loading time: Before fix - 3.66 sec.
--> After Fix -2.50 sec
[x] 2. Switching from Post/poll to Appreciation - Before fix -(2.60 sec)
--> After fix 3 sec
[x] 3. Switching from appreciation to post/pol - Before fix 3.21 seconds
--> After fix - 6 sec
[x] 4. created 5 Appreciation and verified the loading time -Before fix 2.20 sec
----> After fix 1 sec
After creating 5 Appreciation for the last 2 months with user New user1@nuhs.com
[x] 1. created 5 Appreciation and verified the loading time - Before fix 2.20 sec
--> After fix 1 sec
[x] 2. Only the data for the last two months shows 10 posts on single page without loading the page. --Test Result
[x] 3. Switching from Post/poll to Appreciation -Before fix (2.60 sec)
---> After fix 2.2 sec
Before fix 3 seconds
---> After fix 5.2 sec from second it took 3 sec.My Org
My Dept
My job family
Custom post - with one child org dept, parent org dept and one job family
@yatishTrootech Verified the above changes and updated the feedback, post multi org scenarios are working as Expected
cc: @suryaiiit