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

reworking updateStats() #984

Merged
merged 6 commits into from Nov 6, 2013
Merged

reworking updateStats() #984

merged 6 commits into from Nov 6, 2013

Conversation

Spuds
Copy link
Contributor

@Spuds Spuds commented Nov 6, 2013

This is the rework of the rework of updateStats #402 and #397

Nutshell ... it breaks down update stats function in Subs and moves the specific updating functions to messages/topics/members/group subs as appropriate.

It leaves the handler in Subs so the updateStats('') calls do not change.

It does change the calls inside the subs themselves to use the code moved to those subs, so inside of for example messages.subs it would call updateMessageStats(); since its internal (although updateStats('message') would still work, just not as clean).

joshuaadickerson and others added 5 commits November 5, 2013 23:04
Signed-off-by: Spuds <spuds@spudsdesign.com>
…tion to use it

Signed-off-by: Spuds <spuds@spudsdesign.com>
…o it as well

Signed-off-by: Spuds <spuds@spudsdesign.com>
… it as well

Signed-off-by: Spuds <spuds@spudsdesign.com>
@eurich
Copy link
Member

eurich commented Nov 6, 2013

oh that's interesting, travis build failed.. dunno if it's related to the former PR ( #982) and the db layer changes or just a broken test case?... @emanuele45 any ideas?

@emanuele45
Copy link
Contributor

Suggestion to read travis builds: when you click on Details, you have the list of builds that failed (at the moment the most important to use are the two at the top), you can click on the job id (17.1, 17.2, etc.), there you will see the output of the command line with all the errors.

In this case, the most important is:

E_NOTICE: Undefined variable: result in /var/www/sources/subs/Messages.subs.php on line 1118

That is a valid error:
https://github.com/elkarte/Elkarte/pull/984/files#diff-f55d183785b772dcd18dd61eddc37ee1R1108
the query doesn't assign the return to the variable.

@Spuds
Copy link
Contributor Author

Spuds commented Nov 6, 2013

Say, this travis thing is cool !

… we can use it

Signed-off-by: Spuds <spuds@spudsdesign.com>
@eurich
Copy link
Member

eurich commented Nov 6, 2013

oh, wow. that's really cool 👍 Thanks for the details, eman..

eurich added a commit that referenced this pull request Nov 6, 2013
reworking updateStats()
@eurich eurich merged commit 66fb617 into elkarte:master Nov 6, 2013
@Spuds Spuds mentioned this pull request Nov 6, 2013
@Spuds Spuds deleted the stats branch November 8, 2013 21:20
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.

None yet

5 participants