-
Notifications
You must be signed in to change notification settings - Fork 0
[$40] 'Watching' count doesn't tally with actual watch list #523
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
Comments
Challenge https://www.topcoder.com/challenges/45c758f7-5f58-4d34-af71-1ed91b7ef3fa has been created for this ticket. |
Challenge https://www.topcoder.com/challenges/45c758f7-5f58-4d34-af71-1ed91b7ef3fa has been assigned to obog. |
** User sdguntcqa** We've fixed count of bookmarks after unregistering from challenges in 17 December (#299 (comment)). Using REST API should fix the count of Bookmarks. (add
** User sdgunvfor ** Updated: I've checked sql query, no errors. I couldn't reproduce it locally. @jmgasper Please apply PR-#531. Thanks. I'll verify it after deploying. Count of watched categories should be recalculated if the column value is null. |
@jmgasper Vanilla hasn't been started after deploying. I don't see any errors in logs:
Please apply PR-#532. I commented a sql query. This query should be run before Vanilla bootstrap. I am not sure but it might cause an issue. |
@atelomycterus - Deploying now |
@atelomycterus - The deploy is done and the app is working agin. |
This ticket was not processed for payment. If you would like to process it for payment, please reopen it, add the |
Challenge https://www.topcoder.com/challenges/ee1ce89c-adb8-41f7-bdbc-067fc2389896 has been created for this ticket. |
@jmgasper I am verifying this issue. The CountWatchedCategories wasn't updated. I noticed you applied PR, deployed, reverted the commit and deployed again. Vanilla Bootstrap is done once on the first request. I checked Vanilla logs, there were no requests between 2 deploys, so the update sql wasn't executed. Please let me know if there were some reasons/issues to revert it. |
@atelomycterus - After deploying the first time (before the revert), the app failed to respond to requests - it just constantly threw 500 errors in dev. I reverted that commit, redeployed and it worked. Not sure why 🤷 |
@atelomycterus Can you please provide me the Rest API details to add/remove this user? |
@jmgasper I've updated Debug plugin. Please apply -topcoder-platform/forums-plugins#83. Thanks!
The update query caused the 500 error. TRADITIONAL SQL mode converts all sql warnings to errors. So we get the 500 error when executing the update sql query. It might be due to some sql modes (NO_UNSIGNED_SUBTRACTION and others). It looks like my local DB settings are different from DEV. The initial value of CountWatchedCategories should be calculated once for users. Need to parse the preferences keys from string to int. |
I've added |
Payment task has been updated: https://www.topcoder.com/challenges/ee1ce89c-adb8-41f7-bdbc-067fc2389896 |
Verified with multiple users in Dev, the watching list is showing the counts correct. |
Verified in production with user CustomerUser, the counts tally with the list. |
Steps
Log in as sdguntcqa or adgunvfor users or from any user
Go to watching page
Check the number of watching categories and the actual count
'Watching' count doesn't tally with actual watch list
also for some users, it takes some time to update the count after first log in
The text was updated successfully, but these errors were encountered: