-
Notifications
You must be signed in to change notification settings - Fork 316
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
Script Group counter #93
Comments
I totally forgot about that use case. Thanks. |
* This will probably be needed for ordered and decrementing mass removals down the line... and uncovered a few logic issues * Add some TODOs ... since this is a work in progress guestimating what should be done... final may be slightly different * Some STYLEGUIDE.md conformance * Add an error handler in `getFlaggedListForContent`... this will tell us if a flag has been found but no user in the non-long-term... Post OpenUserJS#643 fix in Moderation eyeball **NOTES** * Tested mostly on dev and some on local pro Applies to OpenUserJS#126, OpenUserJS#93 and trounces madly upon OpenUserJS#262 (comment) ... sawwy but tiz a boog.
Just a FYI here for this one... the code at OpenUserJS.org/libs/modelParser.js Lines 567 to 569 in 69e99bc
Although I have been noticing |
And if it's the only script in the group that's when it doesn't reset after the modified 10 second period. |
* Tested on dev and it zapped every empty group there during this period. * Make a more reasonable period for dev vs pro. Waiting 2 hours shouldn't be needed... set to 60 seconds in dev. Applies to #83 Auto-merge
NOTE: * Don't fully understand sizzle logic here with rating but this fixes `Size` and keeps the `Rating` at last known value until another script is added. `bongacams` has only `1` but never gets updated from `2`. Presume there is more. will have to go through them all again. Applies to OpenUserJS#93
NOTE: * Don't fully understand sizzle logic here with rating but this fixes `Size` and keeps the `Rating` at last known value until another script is added. `bongacams` has only `1` but never gets updated from `2`. Presume there is more. will have to go through them all again. Applies to #93 Auto-merge
* Referred to as a collective rating in the code... this value should be zero according to that routine. * That routine already has this but I assume it's a "double check?" since `aScripts` can change on the fly... anyhow... groups with 1 script should have a "collective rating" of zero according to the function... so mirroring Applies to OpenUserJS#93 and post OpenUserJS#1581
* Referred to as a collective rating in the code... this value should be zero according to that routine. * That routine already has this but I assume it's a "double check?" since `aScripts` can change on the fly... anyhow... groups with 1 script should have a "collective rating" of zero according to the function... so mirroring Applies to #93 and post #1581 Auto-merge
Applies to OpenUserJS#93
So here's a use case scenario... Add new script to group then delete; add new script to group, then delete; add new script to group, then delete; add new script to group, then delete; add new script to group, then delete; etc. ... causing lots of Script queries. While this can be indexed it's still consuming resources. Yes there has been precedence for this which is why the commit references are in this issue to curtail some of that. I think the two hour interval between resynching is the right way to go and is currently a post op on access (PPP, restful)... albeit that max value might be able to be tweaked a little. We'll see how this goes over the next long term period and see if it needs adjustment. :) Plus there is a pre op when adding... so that resynchs too. |
Closing from no further comments. Please leave a message if the issue resurges outside of that period. |
Group counter doesn't decrement after script was deleted.
The text was updated successfully, but these errors were encountered: